/* ============================================
   FEUILLE DE STYLE UNIFIÉE - MOBILE FIRST
   Site web avec page d'accueil + pages locales
   ============================================ */

/* === 1. RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === 2. VARIABLES CSS === */
:root {
  --primary: #0066cc;
  --primary-dark: #004c99;
  --secondary: #00a86b;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e1e8ed;
}

/* === 3. TYPOGRAPHIE & BODY === */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  color: var(--primary-dark);
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 2rem 0 1rem;
  color: var(--primary);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* === 4. ACCESSIBILITÉ === */
.visually-hidden {
  position: absolute !important;
  height: 1px; 
  width: 1px;
  overflow: hidden; 
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; 
  border: 0; 
  padding: 0; 
  margin: -1px;
}

.skip-link {
  position: absolute; 
  left: -9999px; 
  top: auto; 
  width: 1px; 
  height: 1px; 
  overflow: hidden;
}

.skip-link:focus {
  position: static; 
  width: auto; 
  height: auto; 
  padding: 1rem 1.5rem; 
  background: #000; 
  color: #fff;
  z-index: 9999;
}

/* === 5. HEADER & NAVIGATION === */
header {
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--primary);
  color: white;
}

/* === 6. HERO SECTION === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.95);
}

.hero-cta {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* === 7. MAIN CONTENT === */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* === 8. SERVICES GRID (commun) === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}




/* Images dans service-card (page d'accueil) */
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-card-content {
  padding: 1.5rem;
}

/* Service card sans image (pages locales) */
.service-card:not(:has(img)) {
  padding: 1.5rem;
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}


.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* === 9. BENEFITS SECTION === */

/* Version page d'accueil (avec background) */
.benefits {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Version pages locales (avec background blanc sur chaque item) */
.benefits-grid .benefit-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.benefit-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.benefit-text p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === 10. TABLE (page d'accueil) === */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  font-size: 0.9rem;
}

caption {
  text-align: left;
  font-weight: 600;
  padding: 1rem;
  background: var(--bg-light);
  font-size: 1.1rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

thead th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

tbody th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--primary-dark);
}

tbody tr:hover {
  background: var(--bg-light);
}

/* === 11. CTA BOX (commun) === */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,102,204,0.3);
}

.cta-box p {
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  color: white;
}

.cta-box a {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.cta-box a:hover {
  transform: scale(1.05);
}

/* === 12. FAQ SECTION (page d'accueil - simple) === */
.faq-section {
  background: white;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-section h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

/* === 13. FAQ ÉLABORÉE (pages locales) === */
section[aria-labelledby="faq-title"] {
  background: var(--bg-light);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  margin: 2.5rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

section[aria-labelledby="faq-title"] h2 {
  color: var(--primary-dark);
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

section[aria-labelledby="faq-title"] details {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

section[aria-labelledby="faq-title"] details:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

section[aria-labelledby="faq-title"] summary {
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

section[aria-labelledby="faq-title"] summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  color: var(--secondary);
  transition: transform 0.3s ease;
}

section[aria-labelledby="faq-title"] details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

section[aria-labelledby="faq-title"] details p {
  margin-top: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}

section[aria-labelledby="faq-title"] details[open] summary + p {
  animation: faqFadeIn 0.3s ease-in-out;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 14. LOCAL HIGHLIGHT (pages locales) === */
.local-highlight {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--secondary);
  margin: 2rem 0;
}

/* === 15. NEIGHBORHOODS (pages locales) === */
.neighborhoods {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.neighborhoods ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.neighborhoods li {
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border-left: 3px solid var(--secondary);
}

.neighborhoods li::before {
  content: "📍 ";
  margin-right: 0.5rem;
}

/* === 16. NEARBY SERVICE (pages locales) === */
.nearby-service {
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
  border: 2px solid var(--border);
  border-left: 5px solid var(--secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.nearby-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
  border-left-color: var(--primary);
}

.nearby-service-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.nearby-icon {
  background: var(--secondary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.nearby-service h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.nearby-service p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

.nearby-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,102,204,0.25);
}

.nearby-link:hover {
  background: var(--primary-dark);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0,102,204,0.35);
}

.nearby-link::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.nearby-link:hover::after {
  transform: translateX(3px);
}

/* === 17. FORMULAIRE CONTACT === */
#contact .contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

#contact .contact-info {
  text-align: center;
}

#contact .form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 750px;
  margin: 0 auto;
}

#contact .form-card h3 {
  margin: 0 0 1rem 0;
  color: var(--primary-dark);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
}

#contact .form-grid {
  display: grid;
  gap: 0.75rem;
}

#contact .form-grid.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact select,
#contact textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: box-shadow .2s, border-color .2s;
  font: inherit;
}

#contact select { 
  appearance: none; 
}

#contact textarea { 
  resize: vertical; 
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
}

#contact .consent {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: var(--text-light);
}

#contact button[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

#contact button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,102,204,0.22);
}

#contact #form-hint {
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* === 18. FOOTER === */
footer {
  background: var(--bg-light);
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--primary);
}

footer p {
  max-width: 1200px;
  margin: 0.75rem auto;
  text-align: center;
  color: var(--text-light);
}

footer strong {
  color: var(--primary-dark);
  font-size: 1.2rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* ============================================
   MEDIA QUERIES - MOBILE FIRST
   ============================================ */

/* === TABLETTES (768px+) === */
@media (min-width: 768px) {
  nav ul {
    gap: 1rem;
  }

  nav a {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  .hero {
    padding: 4rem 2rem;
  }

  main {
    padding: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

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

  .neighborhoods ul {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .cta-box {
    padding: 2rem;
  }

  .cta-box p {
    font-size: 1.2rem;
  }

  .faq-section {
    padding: 1.5rem;
  }

  .nearby-service {
    padding: 2rem;
  }

  .nearby-service-header {
    flex-direction: row;
    align-items: center;
  }

  .nearby-service h3 {
    font-size: 1.4rem;
  }

  section[aria-labelledby="faq-title"] {
    padding: 2rem;
  }

  table {
    font-size: 1rem;
  }

  th, td {
    padding: 1rem;
  }
}

/* === DESKTOP (900px+) === */
@media (min-width: 900px) {
  #contact .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  #contact .form-grid.two { 
    grid-template-columns: 1fr 1fr; 
  }
}