/* ===========================
   CONSTRUCTEUR GARAGE BOIS
   styles.css — Design System
=========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* ─── CSS Variables ─── */
:root {
  --green-dark:    #1a4a0a;
  --green:         #3a7d1e;
  --green-mid:     #4e9c2a;
  --green-light:   #6abf3c;
  --green-pale:    #edf7e4;
  --wood:          #c07a1a;
  --wood-light:    #e09a30;
  --wood-pale:     #fef8ec;
  --brown:         #7a4a18;
  --white:         #ffffff;
  --off-white:     #f8f5f0;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-400:      #9ca3af;
  --gray-600:      #4b5563;
  --gray-800:      #1f2937;
  --text:          #1a2012;
  --text-muted:    #5a6a4a;
  --star-color:    #FFD700;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(58,125,30,.10), 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:     0 10px 40px rgba(58,125,30,.15), 0 4px 16px rgba(0,0,0,.10);
  --shadow-xl:     0 20px 60px rgba(58,125,30,.18);
  --transition:    .25s cubic-bezier(.4,0,.2,1);
  --font-head:     'Montserrat', sans-serif;
  --font-body:     'Lato', sans-serif;
  --max-width:     1280px;
  --header-h:      72px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.6rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { line-height: 1.75; }

/* ─── Container ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none; transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 4px 16px rgba(58,125,30,.30);
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(58,125,30,.35); }
.btn-wood {
  background: var(--wood); color: var(--white);
  box-shadow: 0 4px 16px rgba(192,122,26,.35);
}
.btn-wood:hover { background: var(--wood-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ─── Section Spacing ─── */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 100px 0; }

/* ─── Section Titles ─── */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .eyebrow {
  display: inline-block; background: var(--green-pale); color: var(--green);
  font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}
.section-title h2 { margin-bottom: 16px; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Desktop : une seule ligne */
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
  flex-wrap: nowrap;
}

.site-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px; background: var(--green);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { color: white; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.logo-text span { color: var(--green); display: block; }
.logo-text em { color: var(--wood); font-style: normal; font-size: .75rem; font-weight: 600; }

/* Search in header — desktop */
.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--gray-50);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.header-search input::placeholder { color: var(--gray-400); }
.header-search input:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 3px rgba(58,125,30,.10); }
.header-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); pointer-events: none;
}

/* ─── Shared search dropdown (header + hero) ─── */
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #ffffff !important; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.10);
  max-height: 380px; overflow-y: auto;
  display: none; z-index: 99999;
}
.search-dropdown.active { display: block; }

.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; transition: background var(--transition);
  border-bottom: 1px solid var(--gray-100);
  background: #ffffff;
  text-decoration: none;
  color: var(--text) !important;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--green-pale) !important; }

.search-item-type {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 100px;
  flex-shrink: 0; white-space: nowrap;
}
.type-ville   { background: var(--green-pale); color: var(--green) !important; }
.type-dept    { background: var(--wood-pale);  color: var(--wood) !important; }
.type-region  { background: #e8f4fd;           color: #0077b6 !important; }

.search-item-name {
  font-weight: 700; font-size: .95rem;
  color: var(--gray-800) !important;
  line-height: 1.3;
}
.search-item-info {
  font-size: .8rem;
  color: var(--text-muted) !important;
  margin-top: 2px;
}
.search-no-results { padding: 24px; text-align: center; color: var(--text-muted); font-size: .9rem; background: #fff; }

/* Header nav */
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.header-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--gray-600);
  transition: var(--transition); white-space: nowrap;
}
.header-nav a:hover { color: var(--green); background: var(--green-pale); }
.header-nav .btn { padding: 10px 20px; font-size: .85rem; }

/* ─── Burger ─── */
.burger {
  display: none;
  background: none;
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  padding: 6px 7px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: white; border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg); padding: 20px 24px; z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; font-weight: 600;
  border-bottom: 1px solid var(--gray-100); color: var(--text);
}

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-mid) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.pexels.com/photos/8830257/pexels-photo-8830257.jpeg?auto=compress&cs=tinysrgb&h=900') center/cover no-repeat;
  opacity: .25;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image: repeating-linear-gradient(45deg, white 0, white 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
}
.hero-content {
  position: relative; z-index: 2; color: white; max-width: 760px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 100px;
  padding: 8px 16px; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { color: white; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hero h1 span { color: var(--wood-light); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .9; margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat .num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--wood-light);
}
.hero-stat .label { font-size: .85rem; opacity: .8; }

/* Hero search bar */
.hero-search-wrap {
  background: rgba(255,255,255,.12); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-xl);
  padding: 24px 28px; margin-bottom: 36px; max-width: 580px;
  position: relative; z-index: 10;
}
.hero-search-wrap h3 { color: white; font-size: 1.1rem; margin-bottom: 14px; }
.hero-search-inner { display: flex; gap: 10px; }
.hero-search-inner input {
  flex: 1; padding: 14px 20px; border-radius: var(--radius-md); border: none;
  font-family: var(--font-body); font-size: 1rem; outline: none;
  box-shadow: var(--shadow-sm);
  background: #ffffff !important;
  color: var(--gray-800) !important;
}
.hero-search-inner input::placeholder { color: var(--gray-400) !important; }
.hero-search-inner button { border-radius: var(--radius-md); flex-shrink: 0; }

/* Hero dropdown spécifique */
#heroSearchDropdown {
  background: #ffffff !important;
  border: 2px solid var(--green);
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
#heroSearchDropdown .search-item {
  background: #ffffff !important;
  color: var(--text) !important;
}
#heroSearchDropdown .search-item:hover {
  background: var(--green-pale) !important;
}
#heroSearchDropdown .search-item-name {
  color: var(--gray-800) !important;
}
#heroSearchDropdown .search-item-info {
  color: var(--text-muted) !important;
}
#heroSearchDropdown .search-no-results {
  background: #ffffff !important;
  color: var(--text-muted) !important;
}

/* ─── USP Strip ─── */
.usp-strip {
  background: var(--green-dark); color: white;
}
.usp-strip .container {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  padding-top: 0; padding-bottom: 0;
}
.usp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 32px; border-right: 1px solid rgba(255,255,255,.1);
  font-size: .9rem; font-weight: 600;
}
.usp-item:last-child { border-right: none; }
.usp-item svg { color: var(--wood-light); flex-shrink: 0; }

/* ─── Services ─── */
.services { background: var(--off-white); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px;
}
.service-card {
  background: white; border-radius: var(--radius-lg);
  padding: 36px 28px; box-shadow: var(--shadow-md);
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--wood));
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px; background: var(--green-pale); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--green);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 20px; }
.service-card .price {
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--green);
}
.service-card .price span { font-size: .85rem; font-weight: 500; color: var(--text-muted); }

/* ─── Réalisations / Galerie ─── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,74,10,.7) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay p { color: white; font-weight: 600; font-size: .95rem; }
.gallery-item.large { grid-column: span 2; }

/* ─── Reviews ─── */
.reviews-section { background: var(--off-white); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.review-card {
  background: white; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md); position: relative;
  transition: transform var(--transition);
}
.review-card:hover { transform: translateY(-4px); }

.stars {
  display: flex; gap: 3px; margin-bottom: 14px;
}
.star {
  color: var(--star-color);
  font-size: 1.2rem;
  line-height: 1;
}
.star.half { opacity: .4; }
.review-text { font-size: .95rem; line-height: 1.7; color: var(--gray-600); margin-bottom: 20px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--gray-100); padding-top: 16px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: var(--green); font-size: .85rem;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: .9rem; }
.reviewer-city { font-size: .8rem; color: var(--text-muted); }
.reviewer-date { font-size: .78rem; color: var(--gray-400); margin-left: auto; }

/* Trust banner */
.trust-banner {
  background: var(--green-pale); border-radius: var(--radius-lg);
  padding: 32px 40px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-top: 48px;
}
.trust-stat { text-align: center; }
.trust-stat .val {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--green);
  display: block;
}
.trust-stat .lbl { font-size: .85rem; color: var(--text-muted); font-weight: 600; }

/* ─── Process ─── */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step {
  text-align: center; padding: 32px 24px; position: relative;
}
.step-num {
  width: 56px; height: 56px; background: var(--green); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  margin: 0 auto 20px;
}
.step h4 { margin-bottom: 10px; }
.step p { font-size: .9rem; color: var(--text-muted); }

/* ─── FAQ ─── */
.faq-section { background: var(--off-white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item {
  background: white; border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200); overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--green); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-align: left;
  color: var(--text); gap: 16px;
}
.faq-q .arrow {
  flex-shrink: 0; width: 28px; height: 28px; background: var(--green-pale);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--green); transition: transform var(--transition);
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); background: var(--green); color: white; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .2s; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 24px 20px; font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Regions Grid ─── */
.regions-section { background: white; }
.regions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.region-card {
  background: var(--off-white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: var(--transition); text-decoration: none; color: var(--text);
  cursor: pointer;
}
.region-card:hover { border-color: var(--green); background: var(--green-pale); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.region-card svg { color: var(--green); }
.region-card .name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.region-card .count { font-size: .8rem; color: var(--text-muted); }

/* ─── CTA Banner ─── */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { opacity: .85; max-width: 520px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.btn-white { background: white; color: var(--green); font-weight: 700; }
.btn-white:hover { background: var(--wood-pale); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: white; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--green-dark); color: rgba(255,255,255,.8); padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-text span { color: var(--wood-light); }
.footer-col p { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; opacity: .75; }
.footer-col h5 { color: white; font-family: var(--font-head); font-weight: 700; font-size: .9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a { display: block; font-size: .88rem; padding: 5px 0; opacity: .7; transition: opacity var(--transition); }
.footer-col a:hover { opacity: 1; color: var(--wood-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; opacity: .6;
}

/* ─── DIRECTORY PAGES ─── */

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0; font-size: .85rem; color: var(--text-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li::after { content: '›'; margin-left: 6px; opacity: .4; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--green); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* Page Hero (villes/depts) */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: white; padding: 48px 0 40px;
}
.page-hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,.15);
  border-radius: 100px; padding: 5px 14px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 { color: white; font-size: clamp(1.4rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { opacity: .85; max-width: 600px; font-size: 1rem; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.page-hero-meta span { display: flex; align-items: center; gap: 6px; font-size: .85rem; opacity: .85; }

/* ─── Hero title + CTA inline (pages villes) ─── */
.hero-title-cta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-title-cta h1 {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.hero-inline-cta {
  flex-shrink: 0;
  align-self: center;
  background: var(--wood-light) !important;
  color: white !important;
  font-size: .85rem !important;
  padding: 12px 20px !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 16px rgba(192,122,26,.4);
  white-space: nowrap;
}
.hero-inline-cta:hover {
  background: var(--wood) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,122,26,.45);
}

/* Content Layout */
.page-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px;
  padding: 40px 0;
  align-items: start;
}
.page-main { min-width: 0; }
.page-sidebar { min-width: 0; }

/* Article content */
.article-section { margin-bottom: 36px; }
.article-section h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 14px; color: var(--green-dark); }
.article-section h3 { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 10px; color: var(--green); }
.article-section p { margin-bottom: 12px; color: var(--gray-600); }
.article-section ul { padding-left: 18px; color: var(--gray-600); }
.article-section ul li { margin-bottom: 8px; list-style: disc; }

/* Grid interne 2 cols dans article → 1 col sur mobile */
.article-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Sidebar boxes */
.sidebar-box {
  background: white; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box.green-box { background: var(--green); color: white; border-color: transparent; }
.sidebar-box.green-box h4 { color: white; margin-bottom: 16px; }
.sidebar-box.wood-box { background: var(--wood-pale); border-color: var(--wood); }
.sidebar-box h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 14px; color: var(--text); }
.sidebar-box .price-tag {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  color: white; margin-bottom: 8px;
}

/* Cities list */
.cities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.city-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--off-white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: var(--text);
  transition: var(--transition); text-decoration: none;
  word-break: break-word;
}
.city-chip:hover { background: var(--green-pale); border-color: var(--green); color: var(--green); }
.city-chip svg { color: var(--green); flex-shrink: 0; }

/* Departments list */
.depts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dept-link {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--off-white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600;
  text-decoration: none; color: var(--text); transition: var(--transition);
  word-break: break-word;
}
.dept-link:hover { background: var(--green-pale); border-color: var(--green); color: var(--green); }
.dept-code { font-family: var(--font-head); font-size: .75rem; font-weight: 700; color: var(--wood); }

/* Nearby cities */
.nearby-list { display: flex; flex-direction: column; gap: 8px; }
.nearby-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--off-white);
  border-radius: var(--radius-sm); font-size: .88rem;
  text-decoration: none; color: var(--text); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.nearby-item:hover { background: var(--green-pale); border-color: var(--green); color: var(--green); }
.nearby-dist { font-size: .78rem; color: var(--text-muted); }

/* Search page */
.search-results { padding: 48px 0; }
.search-header { margin-bottom: 32px; }
.search-header h1 { margin-bottom: 8px; }
.search-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 18px; border-radius: 100px; font-size: .85rem; font-weight: 600;
  border: 2px solid var(--gray-200); background: white; cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--green); background: var(--green-pale); color: var(--green); }
.result-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: white; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); margin-bottom: 12px;
  transition: var(--transition); text-decoration: none; color: var(--text);
}
.result-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }
.result-card .type-badge {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}

/* ─── Reveal animations ─── */
.reveal-on-scroll {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* ─── Pagination ─── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border-radius: 50%; font-size: .9rem; font-weight: 700;
  border: 2px solid var(--gray-200); background: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
  text-decoration: none; color: var(--text);
}
.page-btn:hover, .page-btn.active { border-color: var(--green); background: var(--green); color: white; }
.page-btn.ellipsis { border: none; background: none; cursor: default; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */

/* ── Tablet 1024px ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large { grid-column: span 1; }
  .faq-grid { grid-template-columns: 1fr; }
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }
  .page-sidebar { order: -1; }
}

/* ── Mobile 768px ── */
@media (max-width: 768px) {
  :root { --header-h: auto; }

  /* Prevent overflow */
  * { max-width: 100%; }
  table { display: block; overflow-x: auto; }

  .site-header {
    position: sticky; top: 0; z-index: 1000;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  .site-logo {
    flex: 1;
    min-width: 0;
  }

  .logo-text em { display: none; }

  .burger {
    display: flex;
    width: 32px;
    height: 32px;
    padding: 5px 6px;
    gap: 3px;
  }
  .burger span {
    width: 14px;
    height: 2px;
  }

  .header-nav { display: none; }

  .header-search {
    width: 100%;
    max-width: 100%;
    order: 20;
    flex: none;
  }

  .header-search input {
    font-size: 1rem;
    padding: 13px 18px 13px 46px;
    border-radius: 12px;
  }

  .search-dropdown {
    left: 0;
    right: 0;
    max-height: 60vh;
    box-shadow: 0 8px 32px rgba(0,0,0,.20);
  }

  .mobile-menu {
    top: 0;
    position: relative;
    box-shadow: none;
  }

  /* Hero */
  .hero { min-height: 70vh; padding: 40px 0; }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-search-wrap { padding: 18px 16px; border-radius: var(--radius-lg); }
  .hero-search-inner { flex-direction: column; }
  .hero-search-inner input { padding: 14px 16px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Hero title CTA → colonne sur mobile */
  .hero-title-cta {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .hero-inline-cta {
    width: 100% !important;
    justify-content: center;
  }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Process */
  .process-steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step { padding: 20px 16px; }

  /* Trust */
  .trust-banner { flex-direction: column; text-align: center; padding: 24px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* USP */
  .usp-strip .container { flex-direction: column; }
  .usp-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 20px; }

  /* Cities/regions grids */
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .depts-list { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .regions-grid { grid-template-columns: 1fr 1fr; }

  /* Directory pages */
  .page-hero { padding: 32px 0 28px; }
  .page-hero-meta { gap: 10px; }
  .page-hero-meta span { font-size: .8rem; }

  /* Article grids → 1 col sur mobile */
  .article-grid-2 { grid-template-columns: 1fr !important; }

  /* Inline styles overrides pour les grids dans ville.php */
  [style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* Sidebar boxes sur mobile */
  .sidebar-box { padding: 18px 16px; }
  .sidebar-box .price-tag { font-size: 1.6rem; }

  /* Nearby items */
  .nearby-item { padding: 10px 12px; font-size: .85rem; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }
  .faq-q { padding: 16px 18px; font-size: .9rem; }
  .faq-a p { padding: 0 18px 16px; font-size: .88rem; }

  /* CTA section */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section p { font-size: .95rem; }

  /* Pagination */
  .page-btn { width: 36px; height: 36px; font-size: .85rem; }
}

/* ── Très petit 480px ── */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }

  .btn { padding: 12px 20px; font-size: .9rem; }
  .btn-lg { padding: 14px 24px; font-size: .95rem; }

  .process-steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .regions-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
  .depts-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }

  .burger {
    width: 30px;
    height: 30px;
    padding: 5px;
  }
  .burger span { width: 13px; }

  .header-search input {
    font-size: .95rem;
    padding: 12px 16px 12px 44px;
  }

  .search-item { padding: 12px 12px; gap: 8px; }
  .search-item-name { font-size: .88rem; }
  .search-item-type { font-size: .68rem; padding: 2px 6px; }

  /* Page hero compact */
  .page-hero h1 { font-size: 1.3rem; }
  .page-hero p { font-size: .9rem; }
  .page-hero-meta { flex-direction: column; gap: 8px; }

  /* Hero title CTA très petit */
  .hero-title-cta { gap: 10px; }
  .hero-inline-cta { font-size: .82rem !important; padding: 10px 16px !important; }

  /* Article */
  .article-section { margin-bottom: 24px; }
  .article-section h2 { font-size: 1.1rem; }
  .article-section h3 { font-size: 1rem; }
  .article-section p, .article-section li { font-size: .9rem; }

  /* Review cards */
  .review-card { padding: 18px 16px; }
  .review-text { font-size: .9rem; }

  /* Breadcrumb compact */
  .breadcrumb { font-size: .8rem; }

  /* Trust stat */
  .trust-stat .val { font-size: 1.8rem; }

  /* Service card */
  .service-card { padding: 24px 18px; }
  .service-card .price { font-size: 1.2rem; }
}