/*
Theme Name: Africaplaisir
Theme URI: https://africaplaisir.com
Author: Africaplaisir
Description: Thème du site de petites annonces Africaplaisir : rouge du logo, gris anthracite, fond sable. À utiliser avec l'extension « Africaplaisir Annonces », qui fournit les annonces, les comptes, la messagerie et la modération.
Version: 1.4.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: africaplaisir
*/

:root {
  --red: #D90617; --red-d: #A8050F; --red-soft: #FCE9E7;
  --ink: #221C18; --grey: #4A4A4A; --muted: #6B615A;
  --bg: #FBF7F2; --card: #FFFFFF; --sand: #F4EBE1; --line: #E8DCD0;
  --green: #1F7A4D; --yellow: #F4B740;
  --head: "Bricolage Grotesque", "Nunito Sans", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Montserrat", "Nunito Sans", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--red-d); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(26px, 3.2vw, 36px); }
h2 { font-size: 22px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #F4B740; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.ap-page { padding-block: 28px 56px; display: flex; flex-direction: column; gap: 32px; }
.grow { flex: 1; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, monospace; letter-spacing: .05em; }
.note { background: var(--sand); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--grey); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--card); color: var(--ink); white-space: nowrap; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-d); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--line); background: var(--card); }
.btn.ghost:hover { border-color: #CDBEB0; }
.btn.danger { border-color: #F0C3BF; color: var(--red-d); background: #fff; }
.btn.green { background: var(--green); color: #fff; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); }

/* En-tête */
.stripe { height: 5px; background: repeating-linear-gradient(90deg, var(--red) 0 28px, var(--grey) 28px 42px, #fff 42px 48px, var(--yellow) 48px 56px, var(--ink) 56px 62px); }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { height: 48px; width: auto; }
.foot .logo img { height: 52px; }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-family: var(--logo); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.logo .r { color: var(--red); }
.logo .g { color: var(--grey); }
.logo small { font-family: var(--logo); font-weight: 600; font-size: 8.5px; letter-spacing: .26em; color: var(--muted); margin-top: 4px; }
.pays select { max-width: 170px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; }
.acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lnk { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lnk:hover { background: var(--sand); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font: 700 12px/1 var(--body); font-style: normal; }
.lnk .badge { position: absolute; top: 2px; left: 22px; }


/* Pied de page */
.foot { background: var(--ink); color: #D9D2CC; margin-top: 20px; }
.fgrid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding-block: 40px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot nav b { color: #fff; }
.foot a { color: #D9D2CC; text-decoration: none; }
.foot a:hover { color: #fff; }
.fbrand { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.foot .logo .g { color: #fff; }
.foot .logo small { color: #A99F97; }
.copy { padding-block: 16px; border-top: 1px solid #3A322D; font-size: 13px; color: #A99F97; }


/* Lien d'accès direct au contenu */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { left: 12px; }
.top .wrap.bar { padding-inline: 20px; }
.pays { margin: 0; }

/* Pages de contenu (À propos, Règles, etc.) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose .entry > * + * { margin-top: 14px; }
.prose .entry ul, .prose .entry ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.prose .entry h2 { margin-top: 26px; }
.prose .entry em { color: var(--muted); }
.prose .entry img { height: auto; border-radius: 14px; }
.alignleft { float: left; margin: 0 16px 12px 0; }
.alignright { float: right; margin: 0 0 12px 16px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; text-align: center; }

@media (max-width: 860px) {
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .top .wrap.bar { padding-inline: 16px; }
  .bar { gap: 8px; }
  .logo b { font-size: 18px; }
  .logo img { height: 30px; }
  .logo small { display: none; }
  .pays { order: 2; margin-left: auto; }
  .pays select { max-width: 140px; height: 38px; font-size: 14px; }
  .bar > .grow { display: none; }
  .top { position: static; }
  .acts { order: 4; width: 100%; justify-content: space-between; }
  .acts .lnk span { display: none; }
  .acts .btn.ghost { flex: 1; }
  .acts .btn.red { flex: 1; min-height: 42px; }
  .acts .lnk { min-height: 42px; }
  .fgrid { grid-template-columns: 1fr; }
}
.shops-lnk .cnt { font-weight: 600; color: var(--muted); }
@media (max-width: 1100px) { .shops-lnk .cnt { display: none; } }
@media (min-width: 641px) and (max-width: 1300px) {
  .bar { gap: 10px; }
  .acts { gap: 2px; }
  .lnk { padding: 0 8px; font-size: 15px; }
  .logo img { height: 42px; }
}
@media (min-width: 641px) and (max-width: 1180px) {
  .acts .lnk > span { display: none; }
}

/* v1.4.1 : nouveau logo officiel Africaplaisir, sans déformation */
.logo img {height:auto;max-height:60px;width:auto;max-width:min(100%,340px);object-fit:contain;display:block;}
@media(max-width:700px){.logo img{height:auto;max-height:42px;max-width:190px;}}
