/* 1) VARIABLES & GLOBAL RESET */
:root {
  --brand-color: #4ca2a2;
  --brand-color-dark: #3b8282;
  --text-color: #333;
  --light-text-color: #555;
  --bg-color: #f9f9f9;
  --white: #fff;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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: 0 15px;
}

img {
  max-width: 100%;
  display: block;
}

/* 2) HEADER / NAVBAR */
header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-color);
}

/* Single-line nav */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  position: relative; /* For the dropdown positioning */
  transition: transform var(--transition-speed) ease;
  align-items: baseline;
}

/* Navbar link styling */
.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  padding: 8px 12px;
  transition: color var(--transition-speed) ease;
}

.nav-links li a:hover {
  color: var(--brand-color);
}

/* Burger menu (for mobile) */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger span {
  height: 2px;
  width: 22px;
  background: var(--text-color);
  margin-bottom: 4px;
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

/* 3) DROPDOWN MENUS (iPhone & Samsung) */
.dropdown {
  position: relative;
}

/* The sub-menu is hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 150px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
}

.dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

/* Show the dropdown when parent <li> has .active */
.dropdown.active .dropdown-menu {
  display: block;
}

/* 4) HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  margin-top: 30px;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}

.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  max-width: 700px;
  width: 90%;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-content p {
  margin-bottom: 1.5rem;
  color: #eee;
}

.hero-button {
  display: inline-block;
  background: var(--brand-color);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background var(--transition-speed) ease;
}

.hero-button:hover {
  background: var(--brand-color-dark);
}

/* 5) SECTIONS */
.section {
  padding: 50px 0;
  text-align: center;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--brand-color);
  font-weight: 500;
}

.section p {
  line-height: 1.7;
  color: var(--light-text-color);
  max-width: 700px;
  margin: 0 auto;
}

/* Alternate background for variety */
.alt-bg {
  background-color: #f0f0f0;
}

/* 6) CARDS GRID (Prestations) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 30px;
}

.card {
  background-color: var(--white);
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-color);
}

.card p,
.card ol {
  font-size: 0.95rem;
  color: var(--light-text-color);
  line-height: 1.5;
  margin-bottom: 15px;
}

.card .btn {
  background-color: var(--brand-color);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  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(--white);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition-speed) ease;
}

.btnn:hover {
  background-color: var(--brand-color-dark);
}

/* 7) CONTACT SECTION */
.contact-section {
  background-color: var(--white);
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 30px auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.contact-form button {
  align-self: flex-start;
}

/* 8) FOOTER */
/* FOOTER WRAPPER */
footer {
  background-color: var(--white);
  padding: 30px 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.06);
  margin-top: 40px; /* Space above footer if needed */
}

.footer-content {
  color: var(--light-text-color);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 20px; /* spacing between top-row & bottom-row */
}

/* FOOTER ROWS */
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 40px; /* spacing between columns/items */
  flex-wrap: wrap; /* allows wrapping on small screens */
}

/* TOP ROW - TWO COLUMNS */
.footer-col {
  flex: 1;          /* each column grows equally */
  min-width: 200px; /* ensures columns don’t get too narrow */
}

.footer-col h3 {
  font-size: 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 - disclaimers, address, etc. */
.bottom-row p {
  margin-bottom: 8px; /* spacing between lines */
  flex: 1;            /* each <p> can share space horizontally if wide enough */
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column; /* stack columns/items on smaller screens */
    gap: 20px;
  }
  .footer-col,
  .bottom-row p {
    min-width: auto; /* let them shrink as needed */
  }
  /* Center text if you prefer on mobile */
  .footer-row,
  .footer-col ul,
  .bottom-row {
    text-align: center;
  }
}


/* 9) RESPONSIVE MEDIA QUERIES */
@media screen and (max-width: 768px) {
  /* Show burger, hide nav by default on mobile */
  .burger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    width: 200px;
    transform: translateX(100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding-top: 15px;
    gap: 0;
  }
  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
  .nav-links.nav-active {
    transform: translateX(0%);
    transition: transform var(--transition-speed) ease;
  }

  .hero {
    height: 50vh;
    margin-top: 0;
  }
}

/* Additional small adjustments if needed */
@media screen and (max-width: 992px) {
  .nav-links {
    gap: 0.8rem;
  }
}
/* Minimal hero for the Devis page */
.hero-devis {
  position: relative;
  width: 100%;
  min-height: 20vh; /* Increase if you want a taller hero (e.g., 40vh) */
  background-color: #f5f5f5; /* Light background or your brand color */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 30px; /* Space below the header if you have a sticky nav */
}

.hero-devis .hero-content h1 {
  font-size: 2rem;
  margin: 20px;
  color: var(--brand-color);
  font-weight: 500;
}

/* Devis section styling */
.devis-section {
  text-align: center;
}

/* Center the form and style it similarly to your contact form */
.devis-form {
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Spacing between form fields */
.form-group {
  margin-bottom: 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* The submit button matches your .btnn style */
.devis-form .btnn {
  display: inline-block;
  background-color: var(--brand-color);
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.devis-form .btnn:hover {
  background-color: var(--brand-color-dark);
}

/* Tarifs Section (if needed) */
.tarifs-section {
  text-align: center;
}

/* Table styling */
.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  text-align: left; /* Align text on the left side */
}

.tarifs-table th,
.tarifs-table td {
  border: 1px solid #ddd;
  padding: 10px;
}

.tarifs-table th {
  background-color: #f0f0f0;
  color: var(--text-color);
  font-weight: 500;
}
/* Basic PC section styling if needed */
.pc-section {
  text-align: center; /* Matches your main sections */
}

/* For bullet lists in .pc-section (optional) */
.pc-section ul {
  line-height: 1.7;
  color: var(--light-text-color);
}
.payment-methods {
  margin-top: 40px; /* Space above the payment section */
}

/* Two-column layout for desktop, stacked for mobile */
.payment-content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between; /* Helps distribute space on larger screens */
}

/* Left column: image */
.payment-image {
  flex: 1;
  max-width: 400px; /* or remove if you want a fluid image */
}

/* Make sure the image is responsive */
.payment-image img {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

/* Right column: text */
.payment-text {
  flex: 1;
  /* Add optional spacing or max-width here if you like:
     max-width: 600px; margin: 0 auto; */
}

.payment-text h3 {
  margin-top: 15px;
  font-size: 1.1rem;
  color: var(--brand-color);
}

.payment-text p {
  line-height: 1.5;
  margin-top: 5px;
  color: var(--light-text-color);
}

/* RESPONSIVE FIX FOR SMALL SCREENS */
@media (max-width: 768px) {
  .payment-content {
    flex-direction: column;  /* stack vertically */
    text-align: center;      /* center text and image */
  }
  
  /* Give some space between image and text */
  .payment-image {
    margin-bottom: 20px;
    max-width: 80%;         /* narrower image for mobile */
  }
  
  .payment-image img {
    width: 100%;            /* ensures it fills the .payment-image container */
    margin: 0 auto;
  }

  .payment-text {
    max-width: 90%;         /* narrower text block for readability */
    margin: 0 auto;
  }
}
/* Minimal device hero at top */
/* Minimal device hero */
.device-hero {
  background-color: #000; /* or any color you prefer */
  text-align: center;
  padding: 40px 0;
  margin-top: 30px; /* if you have a sticky nav */
}

.device-hero h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
}

/* Device Cards Section */
.device-cards .container {
  max-width: 700px; /* narrower container for better reading */
  margin: 0 auto;
}

/* Common card styling */
.device-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #fff; /* default text color for dark/teal backgrounds */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* subtle shadow */
}

/* Dark background card */
.device-card.dark {
  background-color: #212121; /* or #333 for a blackish look */
}

/* Teal background card */
.device-card.teal {
  background-color: var(--brand-color); /* #4ca2a2 by default */
}

/* Icon block */
.card-icon {
  font-size: 2rem;
  margin-right: 15px;
  display: flex;
  align-items: center;
}

/* Card info (title, desc, price) */
.card-info {
  flex: 1;
}

.card-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.card-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: white;
  line-height: 1.5;
}

/* Price styling */
.card-price {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Responsive layout for the cards */
@media screen and (max-width: 768px) {
  .device-card {
    flex-direction: column;
    text-align: center;
  }
  .card-icon {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

/* Big heading style for "Comment ça marche?" page */
.big-heading {
  font-size: 2rem;       /* Large font size */
  margin-bottom: 20px;
  color: var(--brand-color);  /* or #333, etc. */
  font-weight: 600;
}

/* Additional styling for .phone-howto if desired */
.phone-howto {
  text-align: center;
  padding: 50px 0;  /* match your other sections spacing */
}
