/* ============================================================================
   VARIABLES & RESET
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary:        #1e3a5f;   /* Bleu nuit */
  --primary-hover:  #162d4a;   /* Bleu foncé hover */
  --accent:         #f97316;   /* Orange vif */
  --accent-hover:   #ea6a00;   /* Orange foncé hover */
  --surface:        #f8fafc;   /* Gris très clair */
  --surface-2:      #f1f5f9;   /* Gris moyen */
  --text:           #1a202c;   /* Corps texte */
  --text-muted:     #64748b;   /* Texte secondaire */
  --border:         #e2e8f0;   /* Bordures */
  --white:          #ffffff;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.10);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  overflow-x: hidden;
}

/* ============================================================================
   CALL BAR
   ============================================================================ */

.call-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: var(--text);
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.call-bar span {
  font-weight: 500;
}

.call-link {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.call-link:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-md) 0;
  position: relative;
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-md);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
}

.navbar .logo:hover {
  color: var(--accent);
}

.logo-icon {
  font-size: 1.5rem;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
}

.navbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.navbar a:hover::after {
  width: 100%;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ============================================================================
   MAIN CONTENT & SECTION BACKGROUNDS
   ============================================================================ */

main {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 0;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

section:nth-child(odd) {
  background: var(--white);
}

section:nth-child(even) {
  background: var(--surface);
}

/* Alternating section backgrounds for visual rhythm */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #152f4f 100%);
  color: var(--white);
}

.service-section, .why-us, .services, .cities {
  padding: var(--spacing-xl) var(--spacing-md);
}

.why-us {
  background: var(--surface);
}

.services {
  background: var(--white);
}

.cities {
  background: var(--surface-2);
}

.devis-form-section {
  background: var(--primary);
  color: var(--white);
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  line-height: 1.3;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
}

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

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

/* ============================================================================
   HERO & INTRO SECTIONS
   ============================================================================ */

.hero, .hero-city {
  background: linear-gradient(135deg, var(--primary) 0%, #152f4f 100%);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.hero h1, .hero-city h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 2.8rem;
}

.hero p, .hero-city p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-md);
}

/* Hero CTA buttons */
.hero-cta, .hero-city-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.hero-cta a, .hero-city-cta a {
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
  display: inline-block;
}

.hero-cta a.btn-primary, .hero-city-cta a.btn-primary {
  background: var(--accent);
  color: var(--text);
}

.hero-cta a.btn-primary:hover, .hero-city-cta a.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-cta a.btn-secondary, .hero-city-cta a.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.hero-cta a.btn-secondary:hover, .hero-city-cta a.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================================================
   TRUST BAR
   ============================================================================ */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.trust-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ============================================================================
   SERVICE & CITY CARDS
   ============================================================================ */

.services ul, .cities ul, .city-services ul {
  list-style: none;
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.services li, .cities li, .city-services li {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.services li:hover, .cities li:hover, .city-services li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.services a, .cities a, .city-services a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  transition: color 0.2s;
}

.services a:hover, .cities a:hover, .city-services a:hover {
  color: var(--accent);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.devis-form-section {
  background: var(--surface);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.devis-form-section h2 {
  color: var(--primary);
}

.devis-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  max-width: 100%;
}

.devis-form label {
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

.devis-form input,
.devis-form select,
.devis-form textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--white);
  color: var(--text);
}

.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.devis-form button {
  grid-column: 1 / -1;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.devis-form button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.devis-form button:active {
  transform: translateY(0);
}

.form-message {
  grid-column: 1 / -1;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  display: none;
  font-weight: 500;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* ============================================================================
   FAQ / ACCORDION
   ============================================================================ */

.faq-local, .faq-section {
  margin-bottom: var(--spacing-xl);
}

details {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  background: var(--surface);
  transition: all 0.2s;
}

details:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

details summary {
  font-weight: 600;
  color: var(--primary);
  user-select: none;
  padding-right: var(--spacing-md);
  position: relative;
  display: flex;
  align-items: center;
}

details summary::before {
  content: '▶';
  position: absolute;
  right: 0;
  transition: transform 0.3s;
  font-size: 0.8rem;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary:hover {
  color: var(--accent);
}

details[open] summary {
  margin-bottom: var(--spacing-md);
}

details p {
  margin-bottom: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  background: var(--primary);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto var(--spacing-xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: var(--spacing-md);
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-md);
}

.footer-col ul {
  list-style: none;
  margin-left: 0;
}

.footer-col li {
  margin-bottom: var(--spacing-sm);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-tel {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-tel:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ============================================================================
   FAB (FLOATING ACTION BUTTON)
   ============================================================================ */

.fab-call {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  transition: all 0.3s;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.fab-call:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   IMAGE PLACEHOLDERS & HERO VISUAL
   ============================================================================ */

.hero-image {
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.image-placeholder {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: opacity(0.85);
  transition: filter 0.3s;
}

.hero-image:hover .image-placeholder {
  filter: opacity(1);
}

/* ============================================================================
   CARD ENHANCEMENTS
   ============================================================================ */

.cards-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 0.05;
}

.card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}

.card a:hover {
  color: var(--accent);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media screen and (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero h1, .hero-city h1 {
    font-size: 2rem;
  }

  main {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .services ul, .cities ul, .city-services ul {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .call-bar {
    flex-direction: column;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
    text-align: center;
  }

  .navbar {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--surface);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .hero h1, .hero-city h1 {
    font-size: 1.5rem;
  }

  .hero, .hero-city {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }

  .services ul, .cities ul, .city-services ul {
    grid-template-columns: 1fr;
  }

  .devis-form {
    grid-template-columns: 1fr;
  }

  main {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .fab-call {
    display: flex;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta, .hero-city-cta {
    flex-direction: column;
  }

  .hero-cta a, .hero-city-cta a {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 479px) {
  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .fab-call {
    bottom: 10px;
    right: 10px;
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }

  .call-bar span {
    font-size: 0.8rem;
  }

  .call-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  main {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .hero, .hero-city {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .hero-cta a, .hero-city-cta a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .devis-form-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.required {
  color: var(--accent);
  font-weight: 700;
}

.badge {
  display: inline-block;
  background: var(--surface-2);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

/* ============================================================================
   TRUST INDICATORS & SERVICE CARDS
   ============================================================================ */

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.trust-item {
  text-align: center;
  padding: var(--spacing-md);
}

.trust-item-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

.trust-item-stat {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.trust-item-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 320px;
  display: flex;
  align-items: flex-end;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.service-card-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(to top, rgba(30,58,95,0.95), rgba(30,58,95,0.7));
  padding: var(--spacing-lg);
  color: white;
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.service-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
}

.service-card-link {
  display: inline-block;
  margin-top: var(--spacing-md);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.service-card-link:hover {
  color: var(--accent-hover);
}

/* Hero section background image support */
.hero-section {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30,58,95,0.4);
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

/* ============================================================================
   MOBILE RESPONSIVE - SERVICE CARDS
   ============================================================================ */

@media (max-width: 767px) {
  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .trust-item-stat {
    font-size: 1.5rem;
  }

  .service-card {
    height: 280px;
  }
}
