/* =========================================================
   Yakeki — feuille de style v2
   Style institutionnel : marine / bleu / rouge, blocs pleins,
   boutons pilule, aucun gradient, aucune ombre douce.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --navy: #0A2A5E;
  --blue: #3B82C4;
  --red: #E53935;
  --white: #FFFFFF;
  --lightgray: #F5F7FA;
  --text-main: #1A1A1A;
  --text-secondary: #4B5563;
  --line: #E5E7EB;
  --success: #1E7E4C;
  --success-tint: #E6F4ED;
  --danger-tint: #FBE7E6;
  --warn-tint: #FFF3D6;
  --warn-text: #92610C;
  --radius-block: 10px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Sans', sans-serif; /* utilisé pour les libellés/chiffres, pas de police mono ici */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .4em;
  letter-spacing: -.01em;
}
h1 { font-weight: 800; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar fine ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  font-size: .85rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { text-decoration: none; color: rgba(255,255,255,.9); }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__group { display: flex; align-items: center; gap: 20px; }

/* ---------- Header principal blanc ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  color: var(--navy);
  text-decoration: none;
}
.header-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s ease;
}
.icon-btn:hover { border-color: var(--navy); }
.icon-btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.icon-btn--red:hover { opacity: .9; border-color: var(--red); }

/* Sous-navigation fine */
.subnav { border-top: 1px solid var(--line); }
.subnav__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
}
.subnav a {
  display: inline-block;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.subnav a:hover, .subnav a.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn--sm { padding: 9px 18px; font-size: .74rem; }
.btn--block { width: 100%; }

.btn--navy-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--navy-outline:hover { background: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #082249; }

.btn--white-outline { background: transparent; color: #fff; border-color: #fff; }
.btn--white-outline:hover { background: #fff; }
.btn--white-outline.on-red:hover { color: var(--red); }
.btn--white-outline.on-blue:hover { color: var(--blue); }

.btn--white { background: #fff; color: var(--red); border-color: #fff; }
.btn--white:hover { background: rgba(255,255,255,.9); }

.btn--ghost { background: transparent; color: var(--text-main); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { opacity: .9; }

/* ---------- Blocs colorés pleine largeur (hero, business, cta) ---------- */
.block-wrap { padding: 0 24px; }
.block-wrap .container-inner { max-width: 1180px; margin: 0 auto; }

.block {
  border-radius: var(--radius-block);
  padding: 72px 32px;
  text-align: center;
  color: #fff;
}
.block--red { background: var(--red); }
.block--blue { background: var(--blue); }
.block--navy { background: var(--navy); }
.block h1, .block h2 { color: #fff; }
.block .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.block .lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.92);
  max-width: 620px;
  margin: 18px auto 0;
}
.block .actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.badge-pill-dark {
  display: inline-block;
  background: var(--text-main);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* Barre de recherche sur bloc coloré */
.search-card {
  background: #fff;
  border-radius: var(--radius-block);
  padding: 16px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  text-align: left;
}
@media (max-width: 700px) { .search-card { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--gray { background: var(--lightgray); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow-red {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--red);
  margin-bottom: 12px;
}
.section-head.text-left { text-align: left; margin: 0 0 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: none; }
.section-head p { color: var(--text-secondary); margin: 10px 0 0; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature { text-align: center; }
.feature__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: var(--radius-block);
  background: var(--lightgray);
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--text-secondary); font-size: .9rem; margin: 0; }

/* ---------- Grille de catégories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-block);
  padding: 24px;
  text-decoration: none;
  color: var(--text-main);
  transition: border-color .15s ease;
}
.cat-card:hover { border-color: var(--navy); }
.cat-card__icon { font-size: 1.7rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cat-card p { color: var(--text-secondary); font-size: .84rem; margin: 0; }

/* ---------- Bandeau de chiffres ---------- */
.stats-bar { background: var(--navy); padding: 56px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: #fff; }
.stat__label { color: rgba(255,255,255,.7); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 8px; }

/* ---------- Pro card ---------- */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pro-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pro-grid { grid-template-columns: 1fr; } }

.pro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-block);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  display: block;
  position: relative;
  transition: border-color .15s ease;
}
.pro-card:hover { border-color: var(--navy); }
.pro-card--avant { border: 2px solid var(--red); }
.pro-card__ribbon {
  position: absolute; top: 14px; right: 14px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 11px; border-radius: 999px;
}
.pro-card__photo {
  height: 150px;
  background: var(--lightgray) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--navy);
}
.pro-card__body { padding: 18px 20px 20px; }
.pro-card__cat {
  font-family: var(--font-display); font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--red);
}
.pro-card h3 { font-size: 1.06rem; margin: 6px 0 2px; }
.pro-card__ville { color: var(--text-secondary); font-size: .87rem; margin-bottom: 10px; }
.pro-card__rating { display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.pro-card__rating .count { color: var(--text-secondary); font-size: .78rem; }

/* Étoiles */
.star { color: var(--line); font-size: 1rem; }
.star--full, .star--half { color: var(--red); }

/* Badge "mis en avant" générique */
.badge-avant {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--red); background: var(--danger-tint);
  border-radius: 999px; padding: 5px 12px;
}

/* ---------- Badges statut ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lightgray);
  color: var(--text-secondary);
}
.badge--ok { background: var(--success-tint); color: var(--success); }
.badge--warn { background: var(--warn-tint); color: var(--warn-text); }
.badge--danger { background: var(--danger-tint); color: var(--red); }

/* ---------- Formules pro (pricing) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-block);
  padding: 32px;
}
.price-card--highlight { background: var(--blue); border-color: var(--blue); color: #fff; }
.price-card--highlight p, .price-card--highlight li { color: rgba(255,255,255,.9); }
.price-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.price-card .price { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin: 18px 0; }
.price-card .price small { font-size: 1rem; font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: .9rem; color: var(--text-secondary); }

/* ---------- Fiche pro (page publique) ---------- */
.pro-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 44px;
}
@media (max-width: 720px) { .pro-header { grid-template-columns: 1fr; } }
.pro-header__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-block);
  background: var(--lightgray) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--navy);
}
.pro-header h1 { font-size: 1.9rem; }
.pro-header__meta { color: var(--text-secondary); margin-bottom: 14px; }
.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rating-row .num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

/* ---------- Cards / formulaires (admin & pro) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-block);
  padding: 28px;
  margin-bottom: 24px;
}
.card h2 { font-size: 1.15rem; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: .85rem; font-weight: 700; color: var(--text-main); font-family: var(--font-display); }
.form-row .hint { font-size: .78rem; color: var(--text-secondary); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="file"], select, textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  width: 100%;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,42,94,.1); }

/* ---------- Tables (admin) ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font-display); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); }
table.data tr:hover td { background: var(--lightgray); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Alerts / flash ---------- */
.alert { padding: 15px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; }
.alert--success { background: var(--success-tint); color: var(--success); }
.alert--error { background: var(--danger-tint); color: var(--red); }
.alert--info { background: #E9F1F9; color: var(--navy); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-secondary); }
.empty-state h3 { color: var(--text-main); }

/* ---------- Avis ---------- */
.review { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review:last-child { border-bottom: none; }
.review__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.review__author { font-weight: 700; font-family: var(--font-display); }
.review__date { font-size: .76rem; color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px;
}
.footer-grid .brand { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.footer-grid ul a { text-decoration: none; color: rgba(255,255,255,.72); }
.footer-grid ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: rgba(255,255,255,.55);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.auth-shell { max-width: 440px; margin: 64px auto; }

.muted { color: var(--text-secondary); }
.stack { display: grid; gap: 14px; }
