/* ------------------------------ */
/* 1) VARIABLES & GLOBAL RESET    */
/* ------------------------------ */
:root {
  --brand-color: #FF6F61;
  --brand-color-dark: #E65B50;
  --text-color: #2E2E2E;
  --light-text-color: #8D8D8D;
  --bg-color: #F7F7F7;
  --container-bg: #FFFFFF;
  --transition-speed: 0.3s;
}


html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevents horizontal scroll on small screens */
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

img {
  max-width: 100%;
  display: block;
}

/* ------------------------------ */
/* 2) HEADER / NAVBAR             */
/* ------------------------------ */
/* ------------------------------ */
/* 2) HEADER / NAVBAR             */
/* ------------------------------ */

header {
  background: linear-gradient(90deg, var(--brand-color), var(--brand-color-dark));
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

/* NAVBAR container */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

/* NAV LINKS (desktop by default) */
.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;
}

.nav-links li a {
  text-decoration: none;
  color: #f4f4f4;
  font-weight: 400;
  padding: 8px 12px;
  transition: color var(--transition-speed) ease;

}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: #fce4d6; /* a lighter, subtle tone */
}

/* HAMBURGER MENU (hidden by default on desktop) */
.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;
}

/* MEDIA QUERY FOR MOBILE */
@media (max-width: 768px) {
  /* Show hamburger, hide nav links by default */
  .hamburger {
    display: flex;
  }

  /* Make nav-links appear off-canvas initially */
  .nav-links {
    position: absolute;
    top: 60px; 
    right: 0;
    flex-direction: column;
    background-color: var(--brand-color-dark);
    width: 200px;
    padding: 1rem;
    gap: 1rem;
    
    /* Start hidden off the screen */
    transform: translateX(100%);
  }
  
  /* When we add .nav-active, slide in the menu */
  .nav-links.nav-active {
    transform: translateX(0);
  }
}

/* Burger menu (for mobile) */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger span {
  height: 3px;
  width: 25px;
  background: #fff;
  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 #eee;
}

.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: #ffece6;
}

.dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------ */
/* 4) HERO SECTION                */
/* ------------------------------ */
/* Full-width hero with side-by-side image & text */
.hero {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #FF6F61, #FFECE6);
  padding: 60px 0;
  box-sizing: border-box;
  margin: 0;
}

.hero-img {
  flex: 1 1 50%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
}

.hero-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-content {
  flex: 1 1 50%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
  color: var(--text-color);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero-button {
  display: inline-block;
  background-color: var(--brand-color);
  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: var(--brand-color-dark);
  transform: translateY(-3px);
}

/* Responsive tweaks for tablets & phones */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 40px 0;
  }
  .hero-img,
  .hero-content {
    flex: 1 1 100%;
    max-width: 90%;
    margin: 0 auto 20px;
    text-align: center;
  }
  .hero-content {
    padding: 0;
  }
  .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;
}

.alt-bg {
  background-color: #f0f0f0;
}

/* ------------------------------ */
/* 6) CARDS GRID (Prestations)    */
/* ------------------------------ */
/* Slider Wrapper to position navigation arrows */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: visible; /* Ensure arrows/cards aren't cut off */
}
.slider-btn.prev {
  left: 10px;
}
.slider-btn:hover {
  opacity: 1;
}
.slider-btn.next {
  right: 10px;
}
/* Navigation arrow buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-4%);
  transform: translateX(-2%);
  z-index: 2;
  background: var(--brand-color);
  border: none;
  color: #FCF;
  font-size: 0.5rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  opacity: 40.8;
  transition: opacity 0.3sease;
}
/* Horizontal slider container using scroll snapping */
.cards-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Allow the slider to take full width between buttons */
  flex-grow: 1;
}

/* Hide scrollbar for cleaner look */
.cards-slider::-webkit-scrollbar {
  display: none;
}

/* Card style adjustments for slider */
.card {
  flex: 0 0 auto;
  width: 300px; /* Fixed width for slider effect */
  scroll-snap-align: center;
  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;
  position: relative;
}

.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;
}

.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 {
  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 #ccc;
}

.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: 'Roboto', sans-serif;
  font-size: 1rem;
  background-color: #fff;
  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 #ccc;
  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: 48px;
    right: 0px;
    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;
    left: 270px;
  }
}

/* ------------------------------ */
/* 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: 'Roboto', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  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);
  list-style: none;
}

/* ------------------------------ */
/* Payment Methods                */
/* ------------------------------ */
.payment-methods {
  margin-top: 50px;
  padding: 60px 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: 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;
}
