/* =============================================
   FEVLY — style.css
   Palette : crème #FAFAF8, brun-charbon #1A1A1A,
             ambre #C97B3E
   ============================================= */

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

:root {
  --cream: #FAFAF8;
  --charcoal: #1A1A1A;
  --amber: #C97B3E;
  --amber-light: #FDF0E4;
  --amber-mid: #E8A96A;
  --gray-light: #F1EFE8;
  --gray-mid: #D3D1C7;
  --gray-text: #6B6A65;
  --green-light: #EAF3DE;
  --blue-light: #E6F1FB;
  --pink-light: #FBEAF0;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-nav: 0 1px 0 rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--gray-mid);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--gray-text);
  transition: color 0.15s;
}

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

.btn-primary {
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover { background: #333; }
.btn-primary:active { transform: scale(0.98); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 2rem 1.25rem;
  border-top: 0.5px solid var(--gray-mid);
}

.nav-mobile a {
  font-size: 15px;
  color: var(--gray-text);
  padding: 0.65rem 0;
  border-bottom: 0.5px solid var(--gray-light);
}

.nav-mobile a.btn-primary {
  margin-top: 0.75rem;
  text-align: center;
  border-bottom: none;
}

.nav-mobile.open { display: flex; }

/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-light);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
}

.hero-title em {
  font-style: italic;
  color: var(--amber);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* =============================================
   SEARCH BAR
   ============================================= */

.search-bar {
  background: #fff;
  border: 0.5px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 580px;
  margin: 0 auto 1.25rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.search-icon { color: var(--gray-text); flex-shrink: 0; }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--charcoal);
  min-width: 0;
}

.search-input::placeholder { color: #AAA8A0; }

.search-city {
  flex: 0 0 110px;
  border-left: 0.5px solid var(--gray-mid);
  padding-left: 10px;
}

.search-divider {
  width: 0.5px;
  height: 22px;
  background: var(--gray-mid);
  flex-shrink: 0;
}

.search-btn {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.search-btn:hover { background: #b56c33; }
.search-btn:active { transform: scale(0.98); }

.search-hints {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hint-label {
  font-size: 12px;
  color: var(--gray-text);
}

.hint-pill {
  font-size: 12px;
  color: var(--gray-text);
  background: var(--gray-light);
  border: 0.5px solid var(--gray-mid);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.hint-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* =============================================
   STATS
   ============================================= */

.stats {
  border-top: 0.5px solid var(--gray-mid);
  border-bottom: 0.5px solid var(--gray-mid);
  padding: 2rem;
  margin: 2rem 0;
}

.stats-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.1;
}

.stat-num span {
  font-size: 18px;
  color: var(--amber);
}

.stat-label {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 4px;
}

.stat-sep {
  width: 0.5px;
  height: 48px;
  background: var(--gray-mid);
  flex-shrink: 0;
}

/* =============================================
   SECTIONS (layout commun)
   ============================================= */

.section { padding: 3rem 2rem; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.5px;
}

.section-title.centered { text-align: center; }

.section-sub {
  color: var(--gray-text);
  font-size: 15px;
  margin-top: 0.4rem;
  margin-bottom: 2.5rem;
}

.section-sub.centered { text-align: center; }

.section-link {
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
  transition: opacity 0.15s;
}

.section-link:hover { opacity: 0.75; }

/* =============================================
   CATÉGORIES
   ============================================= */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cat-card {
  display: block;
  background: #fff;
  border: 0.5px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.cat-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.cat-card-all { border-style: dashed; }

.cat-icon {
  font-size: 30px;
  margin-bottom: 0.7rem;
  display: block;
  line-height: 1;
}

.cat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.cat-count {
  font-size: 11px;
  color: var(--gray-text);
}

/* =============================================
   PRESTATAIRES
   ============================================= */

.prest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prest-card {
  background: #fff;
  border: 0.5px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.prest-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.prest-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.prest-img-amber { background: var(--amber-light); }
.prest-img-green { background: var(--green-light); }
.prest-img-blue  { background: var(--blue-light); }
.prest-img-pink  { background: var(--pink-light); }

.prest-body { padding: 1rem 1.1rem 1.1rem; }

.prest-badge {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: var(--amber-light);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 8px;
}

.prest-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
  line-height: 1.35;
}

.prest-loc {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.prest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prest-rating { display: flex; align-items: center; gap: 5px; }

.stars { font-size: 12px; color: var(--amber); letter-spacing: 1px; }

.rating-num { font-size: 12px; color: var(--gray-text); }

.btn-devis {
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal);
  border: 0.5px solid var(--gray-mid);
  background: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-block;
}

.btn-devis:hover {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

/* =============================================
   COMMENT ÇA MARCHE
   ============================================= */

.comment {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  margin: 0 2rem;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--amber);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.6;
}

.step-arrow {
  font-size: 22px;
  color: var(--amber);
  opacity: 0.4;
  padding-top: 10px;
  flex-shrink: 0;
}

.steps-cta { text-align: center; }

.btn-dark {
  display: inline-block;
  background: var(--charcoal);
  color: var(--cream);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
}

.btn-dark:hover { background: #333; }
.btn-dark:active { transform: scale(0.98); }

/* =============================================
   CTA DOUBLE
   ============================================= */

.cta-double { padding: 3rem 2rem; }

.cta-double-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.cta-dark {
  background: var(--charcoal);
  color: var(--cream);
}

.cta-light {
  background: var(--amber-light);
  color: var(--charcoal);
  border: 0.5px solid var(--gray-mid);
}

.cta-icon { font-size: 36px; margin-bottom: 1rem; }

.cta-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.cta-dark h3 { color: var(--cream); }
.cta-light h3 { color: var(--charcoal); }

.cta-card p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.cta-dark p { color: #888780; }
.cta-light p { color: var(--gray-text); }

.btn-light-cta {
  display: inline-block;
  background: var(--cream);
  color: var(--charcoal);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-light-cta:hover { opacity: 0.88; }
.btn-light-cta:active { transform: scale(0.98); }

.btn-dark-cta {
  display: inline-block;
  background: var(--charcoal);
  color: var(--cream);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
}

.btn-dark-cta:hover { background: #333; }
.btn-dark-cta:active { transform: scale(0.98); }

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

.footer {
  background: var(--charcoal);
  color: var(--cream);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.footer-brand { flex: 0 0 220px; }

.footer-brand .logo { margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 13px;
  color: #888780;
  line-height: 1.65;
  font-weight: 300;
}

.footer-cols {
  flex: 1;
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888780;
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 13px;
  color: #B4B2A9;
  transition: color 0.15s;
}

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

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 0.5px solid #2C2C2A;
}

.footer-bottom p { font-size: 12px; color: #5F5E5A; }

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

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .prest-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-double-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-brand { flex: unset; }
  .footer-cols { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prest-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; gap: 2rem; }
  .step-arrow { display: none; }
  .stats-inner { flex-wrap: wrap; }
  .stat { flex: 0 0 45%; }
  .stat-sep { display: none; }
  .comment { margin: 0 1rem; }
  .cta-double { padding: 2rem 1.5rem; }
  .search-bar { flex-wrap: wrap; }
  .search-city { border-left: none; border-top: 0.5px solid var(--gray-mid); padding: 8px 0 0; }
}
