/* 
 * JS AMBIANCE PEINTURE - UI PREMIUM V2.0
 * Design System pour les pages Villes (Gen A & B)
 * Approche : Lumière, Espace, Luxe Artisan
 */

/* ==========================================================
   1. TOKENS & RESET
   ========================================================== */
:root {
  --c-bg: #FAF8F5; /* Crème doux - Fond principal */
  --c-bg-alt: #FFFFFF; /* Blanc pur - Cartes */
  --c-dark: #1A1918; /* Charbon élégant */
  --c-dark-muted: #302E2D;
  --c-accent: #B59A6D; /* Or patiné */
  --c-accent-hover: #9E855D;
  --c-text: #5A5754; /* Gris chaud pour lisibilité optimale */
  --c-border: rgba(26, 25, 24, 0.08); /* Bordure ultra douce */
  
  --shadow-sm: 0 4px 15px rgba(26, 25, 24, 0.03);
  --shadow-lg: 0 10px 40px -10px rgba(26, 25, 24, 0.08);
  --shadow-hover: 0 15px 50px -10px rgba(181, 154, 109, 0.2);
  
  --radius: 12px; /* Radius moderne */
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --ff-display: 'Cormorant Garamond', serif;
  --ff-body: 'DM Sans', sans-serif;
  --max-w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--ff-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
h1, h2, h3, h4 { margin: 0; padding: 0; font-family: var(--ff-display); color: var(--c-dark); font-weight: 500; }
p { margin: 0 0 1.2rem; }

/* ==========================================================
   2. HEADER & NAVIGATION
   ========================================================== */
header[role="banner"] {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-dark);
  letter-spacing: 0.02em;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-dark);
  color: #FFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  border: 1px solid var(--c-dark);
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(181, 154, 109, 0.3);
}

/* ==========================================================
   3. HERO SECTION (Haut de page)
   ========================================================== */
.page-hero {
  background: linear-gradient(135deg, #1C1B1A 0%, #2F2A25 100%);
  color: #FFF;
  padding: 6rem 2rem 5rem; /* Beaucoup d'espace */
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(181, 154, 109, 0.15), transparent 70%);
}
.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.s-label--light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: #FFF;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================
   4. ENCARTS (Cartes Sous-Hero)
   ========================================================== */
.encarts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: -3rem auto 3rem; /* Remonte sur le hero */
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}
.encart {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.encart:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-hover);
}
.encart-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}
.encart strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: 0.8rem;
}
.encart p { margin: 0; font-size: 0.95rem; color: var(--c-text); }

/* ==========================================================
   5. SECTIONS COMMUNES
   ========================================================== */
.content-section, .services-section, .method-section, .local-section, .zones-section, .faq-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem;
}
.services-section, .local-section, .faq-section { background: var(--c-bg-alt); max-width: 100%; border-radius: 20px;}
.services-section > *, .local-section > *, .faq-section > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

/* Titres de sections */
.content-section h2, .services-section h2, .method-section h2, .local-section h2, .zones-section h2, .faq-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
/* Petit point doré sous le titre */
.method-section h2::after, .local-section h2::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 50%;
  margin: 1rem auto 0;
}

/* ==========================================================
   6. METHODES (Process Numéroté)
   ========================================================== */
.method-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mstep {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}
.mstep:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}
.mstep-num {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: var(--c-accent);
  font-weight: 400;
  border-right: 1px solid var(--c-border);
  padding-right: 1.5rem;
  min-width: 80px;
}
.mstep-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

/* ==========================================================
   7. VILLES A PROXIMITE (Tags)
   ========================================================== */
.autres-villes { padding: 4rem 2rem; text-align: center; }
.autres-villes h2 { font-size: 1.6rem; margin-bottom: 2rem; }
.villes-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.ville-link {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  display: inline-block;
}
.ville-link:hover {
  background: var(--c-dark);
  color: #FFF;
  border-color: var(--c-dark);
  transform: translateY(-2px);
}
.ville-link-home { border-color: var(--c-accent); color: var(--c-dark); }

/* ==========================================================
   8. FOOTER ET RESPONSIVE
   ========================================================== */
.cta-band {
  background: var(--c-dark);
  color: #FFF;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: calc(var(--max-w) - 2rem);
}
.cta-band-text h2 { color: #FFF; margin-bottom: 1rem; }

@media (max-width: 768px) {
  .page-hero { padding: 4rem 1.5rem 3rem; }
  .content-section, .services-section, .method-section, .local-section, .zones-section, .faq-section, .section { padding: 4rem 1.5rem; }
  .encarts { margin-top: -1.5rem; }
  .btn-primary { width: 100%; }
  
  /* Sticky Mobile Bar */
  .contact-bar-mobile {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(26, 25, 24, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem;
    display: flex;
    justify-content: center;
    z-index: 999;
  }
}

/* ==========================================================
   9. MAPPING GEN B (Compatibilité HTML Standard)
   Couverture des 51 pages Villes au format standard pour les aligner 
   sur le design Premium Gen A.
   ========================================================== */

/* Hero Gen B */
section.hero {
  background: linear-gradient(135deg, #1A1918 0%, #302E2D 100%);
  color: #FFF;
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
section.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: #FFF;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
p.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections Gen B */
.section { padding: 8rem 2rem; max-width: var(--max-w); margin: 0 auto; }
.section-alt { background: var(--c-bg-alt); max-width: 100%; border-radius: 20px;}
.container { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.2rem;
  text-align: center;
  width: 100%;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 50%;
  margin: 1rem auto 0;
}

/* Grille Services Gen B & Partic Box */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-hover);
}
.service-card h3 {
  font-size: 1.3rem;
  color: var(--c-dark);
  margin-bottom: 0.8rem;
}

.partic-box {
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-accent);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

/* FAQ Gen B */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-alt);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(181, 154, 109, 0.05); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer.open { max-height: 500px; }
.faq-answer-inner { padding: 0 2rem 1.5rem; color: var(--c-text); }


/* === NATIVE ACCORDION (GEN A) === */
details.faq-item summary {
  padding: 1.5rem 2rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-dark);
  cursor: pointer;
  list-style: none; /* Hide default triangle */
  position: relative;
  transition: background var(--transition);
  outline: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary:hover {
  background: rgba(181, 154, 109, 0.05);
}
details.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--c-accent);
  transition: transform 0.3s;
}
details.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
details.faq-item[open] summary {
  border-bottom: 1px solid var(--c-border);
}
details.faq-item .faq-answer-inner {
  padding: 1.5rem 2rem;
  color: var(--c-text);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
