/* CampnouTravaux - Annuaire Menuiserie */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:wght@500;700;900&display=swap');

:root {
  --primary: #0077B6;
  --primary-dark: #005a8c;
  --primary-light: #90E0EF;
  --secondary: #90E0EF;
  --wood: #B07842;
  --wood-dark: #8B5A2B;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --bg-cream: #fdf8f1;
  --text: #1a2536;
  --text-muted: #5a6b7e;
  --border: #e3e8ef;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 20px rgba(0, 119, 182, .08);
  --shadow-lg: 0 20px 50px rgba(0, 119, 182, .15);
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.4rem;
  color: var(--text);
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--wood));
  display: grid; place-items: center; color: white;
}
.nav-links {
  display: flex; gap: 28px; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--text); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { color: var(--primary); }
.btn-cta {
  background: var(--primary); color: white !important;
  padding: 10px 20px; border-radius: 100px; font-weight: 600;
  transition: all .2s;
  display: inline-block;
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 100px; font-weight: 600;
  background: white; color: var(--primary); border: 1.5px solid var(--primary-light);
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--primary); background: var(--bg-alt); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: white; flex-direction: column; gap: 0;
    padding: 16px 24px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
}

/* HERO */
.hero {
  position: relative; padding: 80px 24px 100px;
  background:
    radial-gradient(circle at 20% 10%, rgba(144, 224, 239, .35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(176, 120, 66, .12), transparent 50%),
    linear-gradient(180deg, #fdf8f1 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 540px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-family: 'Fraunces', serif; font-size: 2rem; color: var(--primary); font-weight: 800; }
.stat span { color: var(--text-muted); font-size: .9rem; }

.search-card {
  background: white; padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.search-card h3 { margin-bottom: 20px; font-size: 1.3rem; }
.search-card form { display: flex; flex-direction: column; gap: 14px; }
.search-card label { font-size: .85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.search-card input, .search-card select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 1rem; font-family: inherit;
  background: var(--bg-alt); transition: border .2s;
}
.search-card input:focus, .search-card select:focus { outline: none; border-color: var(--primary); background: white; }
.search-card button {
  background: var(--primary); color: white; border: none; padding: 16px;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all .2s; margin-top: 8px;
}
.search-card button:hover { background: var(--primary-dark); transform: translateY(-1px); }

@media (max-width: 860px) {
  .hero { padding: 50px 24px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* SECTIONS */
section { padding: 80px 24px; }
section.alt { background: var(--bg-alt); }
section.cream { background: var(--bg-cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin-top: 12px; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: var(--maxw); margin: 0 auto; }
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .25s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), white);
  display: grid; place-items: center; color: var(--primary);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  color: var(--primary); font-weight: 600; font-size: .9rem;
}

/* SERVICES (alternance Z) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: var(--maxw); margin: 0 auto 80px; }
.split:nth-child(even) .split-text { order: 2; }
.split-visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--wood));
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.split-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 2px, transparent 2px 22px);
}
.split-visual svg { position: relative; width: 60%; height: auto; color: white; opacity: .92; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--text-muted); margin-bottom: 16px; }
.split ul { list-style: none; }
.split ul li { padding: 8px 0 8px 28px; position: relative; color: var(--text); }
.split ul li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; background: var(--primary); color: white;
  border-radius: 50%; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split:nth-child(even) .split-text { order: 0; }
}

/* CTA BLOCK */
.cta-block {
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--wood-dark));
  border-radius: var(--radius-lg); padding: 60px 40px;
  color: white; text-align: center;
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.15), transparent 60%);
}
.cta-block h2 { color: white; margin-bottom: 14px; position: relative; }
.cta-block p { font-size: 1.1rem; opacity: .95; margin-bottom: 28px; position: relative; }
.btn-white {
  display: inline-block; background: white; color: var(--primary);
  padding: 14px 32px; border-radius: 100px; font-weight: 700;
  position: relative; transition: all .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); color: var(--primary-dark); }

/* LIST RÉGIONS / DÉPARTEMENTS / VILLES */
.list-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; max-width: var(--maxw); margin: 0 auto;
}
.list-item {
  background: white; padding: 16px 18px; border: 1px solid var(--border);
  border-radius: 10px; transition: all .2s; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.list-item:hover { border-color: var(--primary); color: var(--primary); transform: translateX(2px); }
.list-item small { color: var(--text-muted); font-size: .8rem; }

/* CITY GRID (chips compactes) */
.city-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px; max-width: var(--maxw); margin: 0 auto;
}
.city-chip {
  background: white; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; transition: all .2s; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: .92rem;
}
.city-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-alt); }
.city-chip small { color: var(--text-muted); font-size: .78rem; font-family: 'JetBrains Mono', monospace; }

/* BREADCRUMB */
.breadcrumb {
  max-width: var(--maxw); margin: 24px auto; padding: 0 24px;
  font-size: .9rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* PAGE HEADER (intérieures) */
.page-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(144, 224, 239, .4), transparent 50%),
    linear-gradient(180deg, var(--bg-cream), white);
  padding: 60px 24px 40px;
}
.page-hero .container { display: grid; gap: 14px; }
.page-hero .eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 100px;
  background: var(--primary); color: white; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; width: fit-content;
}
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 720px; }

/* FOOTER */
.site-footer {
  background: #0d2030; color: #b6c2d2; padding: 60px 24px 24px; margin-top: 60px;
}
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-grid h4 { color: white; margin-bottom: 18px; font-size: 1rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #b6c2d2; font-size: .92rem; }
.footer-grid a:hover { color: var(--primary-light); }
.footer-bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ESTIMATEUR */
.estimator {
  background: white; border-radius: var(--radius-lg); padding: 36px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  max-width: 720px; margin: 0 auto;
}
.estimator h3 { margin-bottom: 8px; }
.estimator-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.estimator label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.estimator select, .estimator input {
  width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg-alt); font-family: inherit; font-size: .95rem;
}
.estimator-result {
  margin-top: 24px; padding: 24px;
  background: linear-gradient(135deg, var(--primary), var(--wood-dark));
  border-radius: var(--radius); color: white; text-align: center;
}
.estimator-result .price { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 800; display: block; margin: 6px 0; }
.estimator-result small { opacity: .85; }

@media (max-width: 600px) {
  .estimator-row { grid-template-columns: 1fr; }
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 12px; padding: 18px 22px; cursor: pointer;
}
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--text-muted); }

/* FORMS */
.form-card {
  background: white; border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  max-width: 680px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 1rem;
  background: var(--bg-alt);
}
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card button {
  background: var(--primary); color: white; border: none; padding: 16px 32px;
  border-radius: 100px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all .2s; margin-top: 10px;
}
.form-card button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.form-card .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* TAG / BADGE */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px; font-size: .78rem; color: var(--text-muted);
  font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); border-color: transparent; }

/* PROSE */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; margin-bottom: 16px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose p { margin-bottom: 16px; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }

/* REVEAL ON SCROLL */
.reveal-on-scroll {
  opacity: 0; transform: translateY(20px);
  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;
}
.pagination a, .pagination span {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: .9rem;
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .disabled { opacity: .4; cursor: not-allowed; }

/* PROS GRID (Sirene) */
.pros-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px; max-width: var(--maxw); margin: 0 auto;
}
.pro-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: all .25s; display: flex; flex-direction: column; gap: 14px;
}
.pro-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); transform: translateY(-2px); }
.pro-head { display: flex; align-items: flex-start; gap: 14px; }
.pro-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--wood));
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 1.25rem;
  font-family: 'Fraunces', serif;
}
.pro-name { flex: 1; min-width: 0; }
.pro-name h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.pro-name h3 a { color: var(--text); }
.pro-name h3 a:hover { color: var(--primary); }
.pro-meta { color: var(--text-muted); font-size: .85rem; }
.pro-info { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--text-muted); }
.pro-info li { display: flex; align-items: flex-start; gap: 8px; }
.pro-info li i, .pro-info li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.pro-info .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .82rem; }
.pro-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.btn-small {
  padding: 8px 14px; border-radius: 8px; font-size: .85rem; font-weight: 600;
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.btn-small:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-cta-mini { background: var(--primary); color: white !important; border-color: var(--primary); }
.btn-cta-mini:hover { background: var(--primary-dark); }

/* EMPTY STATE */
.empty-state {
  text-align: center; max-width: 560px; margin: 0 auto;
  padding: 50px 24px; background: var(--bg-alt); border-radius: var(--radius-lg);
}
.empty-state svg, .empty-state i { color: var(--primary); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; font-family: 'Plus Jakarta Sans', sans-serif; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

/* ENTREPRISE PAGE */
.entreprise-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(144, 224, 239, .4), transparent 50%),
    linear-gradient(180deg, var(--bg-cream), white);
  padding: 50px 24px 40px;
}
.entreprise-head {
  display: flex; align-items: center; gap: 24px; margin-bottom: 24px;
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
}
.entreprise-avatar {
  width: 88px; height: 88px; border-radius: 22px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--wood));
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 1.8rem;
  font-family: 'Fraunces', serif; box-shadow: var(--shadow);
}
.entreprise-actions {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.entreprise-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.entreprise-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.entreprise-card h2 { font-size: 1.3rem; margin-bottom: 16px; font-family: 'Plus Jakarta Sans', sans-serif; }

.data-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: .92rem; }
.data-list dt { color: var(--text-muted); font-weight: 600; }
.data-list dd { color: var(--text); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .92em; }

.adresse-block { font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.info-note {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 14px; background: var(--bg-cream); border-radius: 8px;
  font-size: .9rem; color: var(--text-muted); margin-bottom: 12px;
}
.info-note svg, .info-note i { color: var(--wood-dark); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 760px) {
  .entreprise-grid { grid-template-columns: 1fr; }
  .entreprise-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .entreprise-avatar { width: 64px; height: 64px; font-size: 1.3rem; }
}