/* ========================================
   DÉPANNAGE EXPRESS - Style CSS
   Thème industriel sombre avec accents rouges
   ======================================== */

/* Variables CSS */
:root {
  --color-background: hsl(220, 15%, 8%);
  --color-foreground: hsl(40, 10%, 92%);
  --color-card: hsl(220, 12%, 12%);
  --color-card-foreground: hsl(40, 10%, 92%);
  --color-primary: hsl(0, 85%, 50%);
  --color-primary-dark: hsl(0, 80%, 40%);
  --color-primary-foreground: hsl(0, 0%, 100%);
  --color-secondary: hsl(220, 10%, 18%);
  --color-muted: hsl(220, 8%, 55%);
  --color-border: hsl(220, 10%, 20%);
  --color-success: hsl(142, 70%, 45%);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 800px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(14, 17, 23, 0.98);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(235, 230, 220, 0.8);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    gap: 0.75rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 0;
  }

  .menu-toggle {
    display: block;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-primary-foreground);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(220, 38, 38, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-block {
  width: 100%;
  margin-top: 1.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-background) 0%,
    rgba(14, 17, 23, 0.8) 50%,
    rgba(14, 17, 23, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 5rem;
  max-width: 900px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(235, 230, 220, 0.8);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 2rem;
  }
}

.section-alt {
  background-color: rgba(30, 35, 45, 0.3);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ========================================
   SERVICES
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.service-card:hover {
  border-color: rgba(220, 38, 38, 0.5);
}

.service-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 1.5rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(220, 38, 38, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 0.2s ease;
}

.service-card:hover .service-icon {
  background-color: rgba(220, 38, 38, 0.2);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 1.125rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ========================================
   TRUST
   ======================================== */
ul.trust-list {
  list-style: none;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.trust-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(220, 38, 38, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.trust-item span {
  font-weight: 500;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.pricing-featured {
  border: 2px solid var(--color-primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.pricing-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pricing-header svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.pricing-header h3 {
  font-size: 1.125rem;
  text-transform: uppercase;
}

.pricing-subtitle {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.price {
  font-weight: 600;
  color: var(--color-primary);
}

.price-free {
  color: var(--color-success);
}

.pricing-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.pricing-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 1.5rem;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  cursor: pointer;
  background: none;
  padding: 0;
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s ease;
}

.gallery-item:hover {
  border-color: rgba(220, 38, 38, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(220, 38, 38, 0);
  transition: background 0.2s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(220, 38, 38, 0.08);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 640px) {
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-foreground);
  margin-bottom: 0.75rem;
  cursor: default;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-left: 0;
}

/* ========================================
   CONFIANCE IMAGE
   ======================================== */
.confiance-img-container {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.confiance-img {
  width: 100%;
  height: 523px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* ========================================
   ZONE IMAGE
   ======================================== */
.zone-img-container {
  max-width: 800px;
  margin: 2rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.zone-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========================================
   OUVERTURE IMAGE
   ======================================== */
.ouverture-img-container {
  max-width: 800px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ouverture-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========================================
   MAP
   ======================================== */
.map-container {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.star-filled {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  fill: var(--color-primary);
}

.review-text {
  font-size: 0.875rem;
  color: rgba(235, 230, 220, 0.9);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-author {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.125rem;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-link svg {
  width: 20px;
  height: 20px;
}

.contact-separator {
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .contact-separator {
    display: none;
  }
  .contact-info {
    flex-direction: column;
  }
}

.contact-form {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 2rem;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background-color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-group textarea {
  resize: none;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--color-card);
  padding: 3rem 1rem 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-logo-img {
  height: 50px;
  width: auto;
}
.footer-description {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-col ul li a:hover {
  color: var(--color-primary);
}
.footer-col ul li a svg {
  width: 14px;
  height: 14px;
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-muted);
}