/*
Theme Name: Emplacement Pro
Theme URI: https://www.emplacement.pro/
Author: Emplacement Pro
Description: Thème sur mesure d'emplacement.pro — cartes économiques, géomarketing et zones de chalandise.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: emplacement
*/

:root {
  --ink: #16243A;
  --ink-2: #2B3B55;
  --teal: #0E7C86;
  --teal-2: #0A5F67;
  --teal-soft: #E3F1F2;
  --pin: #E4572E;
  --pin-soft: #FCE9E3;
  --paper: #F6F4EF;
  --line: #DDE3E8;
  --muted: #5B6778;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,36,58,.06), 0 8px 24px rgba(22,36,58,.07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 800; margin-top: 1.6em; }
[id] { scroll-margin-top: 84px; }
h3 { font-size: 1.22rem; font-weight: 700; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1.1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu .menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-menu .menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.brand span, .nav-cta { white-space: nowrap; }
.nav-menu .menu a:hover, .nav-menu .menu .current-menu-item > a { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Boutons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .96rem; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--pin); color: var(--white); }
.btn-primary:hover { background: #C9461F; color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nav-cta { padding: 9px 18px; font-size: .9rem; }

/* Héros d'accueil */
.hero { background: var(--paper); padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 54ch; }
.hero-map { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); background: var(--white); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }

/* En-tête de page */
.page-hero { background: var(--paper); padding: 52px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero .lead { font-size: 1.14rem; color: var(--ink-2); max-width: 66ch; margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--teal); }
.card .more { color: var(--teal); font-weight: 700; font-size: .92rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--teal); letter-spacing: -.02em; }
.kpi span { font-size: .9rem; color: var(--muted); }

/* Contenu éditorial */
.entry { padding: 48px 0 72px; }
.entry h2:first-child { margin-top: 0; }
.entry ul li, .entry ol li { margin-bottom: .4em; }
.note { background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 26px 0; }
.note.pin { background: var(--pin-soft); border-left-color: var(--pin); }
.note p:last-child { margin-bottom: 0; }
.toc { background: var(--paper); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 32px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 22px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--paper); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.source { font-size: .84rem; color: var(--muted); }
figure { margin: 28px 0; }
figure svg { width: 100%; height: auto; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; background: var(--white); }
details summary { font-weight: 700; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 18px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 800; display: grid; place-items: center; }

/* Bandeau d'appel */
.cta-band { background: var(--ink); color: var(--white); padding: 60px 0; }
.cta-band h2 { color: var(--white); margin-top: 0; }
.cta-band p { color: #C9D3E0; max-width: 60ch; }
.entry .cta-band { border-radius: 18px; padding: 34px; margin: 40px 0 0; }

/* Formulaire */
.ep-form label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.ep-form input[type=text], .ep-form input[type=email], .ep-form input[type=tel], .ep-form select, .ep-form textarea { width: 100%; padding: 11px 13px; border: 1px solid #C5CEd8; border-radius: 10px; font: inherit; background: var(--white); }
.ep-form input:focus, .ep-form select:focus, .ep-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.ep-form button { background: var(--pin); color: var(--white); border: 0; border-radius: 999px; padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.ep-form button:hover { background: #C9461F; }
.ep-form .grid-2 { gap: 0 18px; }

/* Pied de page */
.site-footer { background: #0F1A2B; color: #B7C2D0; padding: 56px 0 28px; font-size: .94rem; }
.site-footer a { color: #DCE4EE; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-bottom { border-top: 1px solid #25334A; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand small { color: #8FA0B5; }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 14px 20px 20px; gap: 14px; }
  .nav-menu.open { display: flex; }
  .nav-menu .menu { flex-direction: column; gap: 12px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 48px; }
  th, td { padding: 8px 10px; }
}
