/*
Theme Name: Reprise d'entreprise
Theme URI: https://www.reprise-entreprise.pro/
Author: Reprise-entreprise.pro
Description: Thème sur mesure de reprise-entreprise.pro — guides du repreneur : racheter une entreprise, un fonds de commerce, une société, une franchise.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: re
*/

/* Carnet du repreneur : indigo (l'étude, le sérieux), safran (l'élan de la reprise), papier clair. */
:root {
  --ink: #15232F;
  --ink-2: #2C3E4F;
  --green: #2B2D6E;
  --green-2: #1D1F52;
  --green-soft: #E8E8F4;
  --copper: #9A610E;
  --copper-2: #7C4E0B;
  --copper-soft: #FBF0DA;
  --paper: #F6F5F1;
  --line: #DCE1E5;
  --muted: #5A6674;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21,35,47,.06), 0 8px 24px rgba(21,35,47,.07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", 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(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; }
h2 { font-family: var(--serif); font-size: clamp(1.45rem, 2.7vw, 1.95rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.18rem; font-weight: 700; margin-top: 1.4em; }
[id] { scroll-margin-top: 84px; }
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; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); 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.1rem; white-space: nowrap; }
.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: 18px; }
.nav-menu .menu { display: flex; gap: 18px; 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; }
.nav-menu .menu a:hover, .nav-menu .menu .current-menu-item > a { color: var(--green); }
.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; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn-primary, button[type=submit] { background: var(--copper); color: var(--white); border: 2px solid var(--copper); }
.btn-primary:hover, button[type=submit]:hover { background: var(--copper-2); border-color: var(--copper-2); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-2); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.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: 24px; }
.nav-cta { padding: 9px 18px; font-size: .9rem; }
.nav-account { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-account:hover { text-decoration: underline; }
button[type=submit] { padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: .98rem; }

/* Héros d'accueil */
.hero { background: var(--paper); padding: 60px 0 68px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero .lead { font-size: 1.16rem; color: var(--ink-2); max-width: 56ch; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; }
.paths { display: grid; gap: 14px; }
.path { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.path:hover { border-color: var(--green); color: var(--ink); }
.path strong { display: block; font-size: 1.12rem; margin-bottom: 4px; }
.path span { color: var(--muted); font-size: .96rem; }
.path .go { color: var(--copper); font-weight: 700; font-size: .92rem; margin-top: 8px; display: inline-block; }

/* Bandeau de chiffres */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.fact { border-left: 3px solid var(--green); padding: 2px 0 2px 14px; }
.fact b { display: block; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head h2 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--green); color: var(--ink); }
.card h3 { margin-top: 0; }
.card .more { color: var(--copper); font-weight: 700; font-size: .92rem; }
.card .tag { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* En-tête de page */
.page-hero { background: var(--paper); padding: 50px 0 42px; border-bottom: 1px solid var(--line); }
.page-hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 66ch; margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Contenu */
.entry { padding: 44px 0 64px; }
.entry h2 { border-top: 1px solid var(--line); padding-top: 1.1em; }
.entry table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .95rem; }
.entry th { background: var(--ink); color: #fff; text-align: left; padding: 10px 12px; font-weight: 700; }
.entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry td.num, .entry th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.tldr { background: var(--green-soft); border-left: 4px solid var(--green); padding: 16px 20px; border-radius: 8px; margin: 22px 0; }
.tldr p:last-child, .tldr ul:last-child { margin-bottom: 0; }
.note { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 22px 0; }
.note p:last-child { margin-bottom: 0; }
.note.warn { background: var(--copper-soft); border-color: #EED9AE; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; background: var(--white); }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }
.source { font-size: .85rem; color: var(--muted); }

/* Formulaires */
.re-form label { display: block; font-weight: 700; font-size: .92rem; margin: 14px 0 6px; }
.re-form input[type=text], .re-form input[type=email], .re-form input[type=tel], .re-form input[type=number], .re-form select, .re-form textarea { width: 100%; padding: 11px 13px; border: 1px solid #C9D0D6; border-radius: 9px; font: inherit; font-size: .97rem; background: #fff; color: var(--ink); }
.re-form textarea { min-height: 130px; }
.re-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 6px 18px 18px; margin: 20px 0; }
.re-form legend { font-weight: 800; padding: 0 6px; }
.re-form .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: 10px; margin: 14px 0; }
.alert-ok { background: var(--green-soft); border: 1px solid #C9C9E6; }
.alert-err { background: var(--copper-soft); border: 1px solid #EED9AE; }

/* Annonces */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.filters label { font-size: .82rem; font-weight: 700; display: block; margin-bottom: 4px; }
.filters input, .filters select { width: 100%; padding: 9px 11px; border: 1px solid #C9D0D6; border-radius: 8px; font: inherit; font-size: .93rem; }
.annonces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.annonce { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink); display: block; }
a.annonce:hover { border-color: var(--green); color: var(--ink); }
.annonce h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.annonce .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); }
.annonce .prix { font-weight: 800; font-size: 1.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 40px 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.fiche { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: start; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.fiche dt { font-weight: 700; color: var(--muted); font-size: .92rem; }
.fiche dd { margin: 0; font-variant-numeric: tabular-nums; }
.side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; position: sticky; top: 90px; }

/* Bandeau d'appel */
.cta-band { background: var(--green); color: #fff; padding: 52px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #D9DAF0; max-width: 64ch; }

/* Pied de page */
.site-footer { background: var(--ink); color: #C5CED6; padding: 52px 0 26px; font-size: .94rem; }
.site-footer a { color: #E4EAF0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #9FB0BF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid #2B3B4A; margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; color: #9FB0BF; }

/* Bandeau cookies */
.re-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; font-size: .92rem; }
.re-consent .btn-row { margin-top: 10px; }
.re-consent .btn { padding: 8px 16px; font-size: .9rem; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 12px; }
  .nav-menu.open { display: flex; }
  .nav-menu .menu { flex-direction: column; gap: 10px; }
}
@media (max-width: 900px) {
  .hero-grid, .fiche { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .annonces, .facts, .footer-grid, .filters { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
