/* 1) VARIABLES & GLOBAL RESET */
:root {
  --brand-color: #FF6F61;       /* vibrant coral */
  --brand-color-dark: #E84A39;  /* deeper coral */
  --text-color: #ffffff;        /* pure white */
  --light-text-color: #dcdcdc;  /* light grey */
  --bg-color: #1e1e1e;          /* dark background */
  --white: #2a2a2a;             /* dark grey (used in containers) */
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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: 0 15px;
}

img {
  max-width: 100%;
  display: block;
}

/* 2) HEADER / NAVBAR */
header {
  background: linear-gradient(135deg, var(--brand-color), var(--brand-color-dark));
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
}

/* Single-line nav */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  position: relative;
  transition: transform var(--transition-speed) ease;
  align-items: baseline;
}

/* Navbar link styling with animated underline */
.nav-links li a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  padding: 8px 12px;
  transition: color var(--transition-speed) ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: 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: 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;
}

.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.5);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
}

.dropdown-menu li {
  border-bottom: 1px solid #444;
}

.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: var(--brand-color-dark);
}

.dropdown.active .dropdown-menu {
  display: block;
}

/* 4) HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 80vh; /* Base height for larger screens */
  overflow: hidden;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  animation: zoomPulse 20s ease-in-out infinite;
}

@keyframes zoomPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative; /* stays above overlay */
  z-index: 3;
  text-align: center;
  padding: 20px;
  color: #ffffff;
  max-width: 700px; 
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

.hero-button {
  display: inline-block;
  background: #ff6f61;
  color: #ffffff;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-button:hover {
  background: #e84a39;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* MEDIA QUERY FOR MOBILE */
@media screen and (max-width: 600px) {
  .hero {
    height: 55vh; /* Reduce hero height on phones */
  }
  
  .hero-content {
    max-width: 320px; /* Constrain text width on small screens */
    margin: 0 auto;   /* Center horizontally */
    padding: 10px;    /* Less padding for tight spaces */
  }
  
  .hero-content h1 {
    font-size: 2rem;         /* Smaller heading */
    margin-bottom: 0.8rem;
    letter-spacing: 0;       /* Remove extra spacing for better fit */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  }
  
  .hero-content p {
    font-size: 1rem;         /* Scale down paragraph */
    margin-bottom: 1.2rem;
  }
  
  .hero-button {
    font-size: 1rem;         /* Slightly smaller button text */
    padding: 0.6rem 1.2rem;  /* Adjust padding to match new font size */
    letter-spacing: 1px;
  }
}




/* 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: #2c2c2c;
}

/* 6) CARDS GRID (Prestations) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 30px;
}

.card {
  position: relative;
  background-color: var(--white);
  padding: 24px 20px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--brand-color);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.8);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--brand-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(--text-color);
  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(--text-color);
  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;
  padding: 50px 0;
}

.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 #555;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  background-color: #3a3a3a;
  color: var(--text-color);
}

.contact-form button {
  align-self: flex-start;
}

/* 8) FOOTER */
footer {
  background-color: var(--white);
  padding: 30px 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.6);
  margin-top: 40px;
}

.footer-content {
  color: var(--light-text-color);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.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 p {
  margin-bottom: 8px;
  flex: 1;
}

@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    gap: 20px;
  }
  .footer-col,
  .bottom-row p {
    min-width: auto;
  }
  .footer-row,
  .footer-col ul,
  .bottom-row {
    text-align: center;
  }
}

/* RESPONSIVE MEDIA QUERIES */
@media screen and (max-width: 768px) {
  .burger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .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.5);
    padding-top: 15px;
    gap: 0;
    z-index: 999;
    transition: transform var(--transition-speed) ease;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-links.nav-active {
    transform: translateX(0%);
  }

  .hero {
    height: 50vh;
    margin-top: 0;
  }
}

@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;
  background-color: var(--brand-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 30px;
}

.hero-devis .hero-content h1 {
  font-size: 2rem;
  margin: 20px;
  color: var(--text-color);
  font-weight: 500;
}

/* Devis section styling */
.devis-section {
  text-align: center;
}

.devis-form {
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.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 #555;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  background-color: #3a3a3a;
  color: var(--text-color);
}

.devis-form .btnn {
  display: inline-block;
  background-color: var(--brand-color);
  color: var(--text-color);
  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 */
.tarifs-section {
  text-align: center;
}

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  text-align: left;
}

.tarifs-table th,
.tarifs-table td {
  border: 1px solid #444;
  padding: 10px;
}

.tarifs-table th {
  background-color: #3a3a3a;
  color: var(--text-color);
  font-weight: 500;
}

/* Basic PC section styling */
.pc-section {
  text-align: center;
}

.pc-section ul {
  line-height: 1.7;
  color: var(--light-text-color);
}

/* Payment Methods */
.payment-methods {
  margin-top: 40px;
}

.payment-content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.payment-image {
  flex: 1;
  max-width: 400px;
}

.payment-image img {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.payment-text {
  flex: 1;
}

.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);
}

@media (max-width: 768px) {
  .payment-content {
    flex-direction: column;
    text-align: center;
  }
  
  .payment-image {
    margin-bottom: 20px;
    max-width: 80%;
  }
  
  .payment-image img {
    width: 100%;
    margin: 0 auto;
  }

  .payment-text {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Minimal device hero */
.device-hero {
  background: linear-gradient(135deg, var(--brand-color), var(--brand-color-dark));
  text-align: center;
  padding: 40px 0;
  margin-top: 30px;
}

.device-hero h1 {
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 600;
}

/* Device Cards Section */
.device-cards .container {
  max-width: 700px;
  margin: 0 auto;
}

.device-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.device-card.dark {
  background-color: #3c3c3c;
}

.device-card.teal {
  background-color: var(--brand-color);
}

.card-icon {
  font-size: 2rem;
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.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: var(--light-text-color);
  line-height: 1.5;
}

.card-price {
  font-weight: 600;
  font-size: 0.95rem;
}

@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;
  margin-bottom: 20px;
  color: var(--brand-color);
  font-weight: 600;
}

.phone-howto {
  text-align: center;
  padding: 50px 0;
}
