/*
Theme Name: AURA Annuaire
Theme URI: https://exemple.fr
Author: AURA
Description: Thème annuaire de créatrices OnlyFans & MYM. CPT « Créatrice » + taxonomie « Plateforme », contenu pilotable par Google Sheet (API REST), SEO géré par Rank Math. Header/footer/logo modulables via le Customizer et les menus.
Version: 1.9.4
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: aura-annuaire
*/

/* =========================================================================
   ANNUAIRE CRÉATRICES — "clair + coloré, bleu OnlyFans"
   Fond blanc, titres SANS moderne, accents bleu OnlyFans / rose-rouge MYM,
   CTA vifs (VIP + Telegram). Propre pour Google, look du genre sans être
   un template IA. Source unique injectée par build.mjs.
   ========================================================================= */

:root {
  --bg:      #ffffff;
  --bg-2:    #eef5fb;   /* sections teintées (bleu très clair) */
  --panel:   #ffffff;
  --line:    rgba(16,28,44,.10);
  --line-2:  rgba(16,28,44,.20);
  --ink:     #141b26;
  --muted:   #566372;
  --muted-2: #8b98a8;
  --of:      #00aff0;   /* bleu OnlyFans */
  --accent:  #0a84c4;   /* bleu interactif lisible */
  --accent-d:#0a6a9e;
  --mym:     #e0245e;   /* MYM rose-rouge */
  --tg:      #229ed9;   /* Telegram */
  --vip1:    #ff2d78; --vip2: #ff6a3d;   /* CTA VIP (dégradé) */

  --display: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans:    system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gap: 20px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
h1,h2,h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.022em; color: var(--ink); line-height: 1.12; }
.t-of  { color: var(--of); }
.t-mym { color: var(--mym); }

/* ---------- Boutons génériques ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans);
  font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 10px;
  border: 1px solid transparent; background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(10,132,196,.55); transition: background .18s, transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-2); }
.btn--wide { padding: 14px 34px; }

/* ---------- CTA vifs (VIP + Telegram) ---------- */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--display); font-weight: 800; font-size: 15.5px; letter-spacing: .03em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 12px; color: #fff; cursor: pointer; border: 0;
  transition: transform .16s var(--ease), filter .18s, box-shadow .18s;
}
.cta svg { width: 21px; height: 21px; }
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.cta--vip { background: linear-gradient(135deg, var(--vip1), var(--vip2)); box-shadow: 0 12px 28px -10px rgba(255,45,120,.6); }
.cta--tg  { background: var(--tg); box-shadow: 0 12px 28px -10px rgba(34,158,217,.6); }

/* ---------- Bandeau 18+ ---------- */
.age-strip { font-size: 12.5px; color: var(--muted); text-align: center; padding: 8px 16px; background: #0e1826; }
.age-strip, .age-strip a { color: #b9c6d6; }
.age-strip b { color: #ff97b5; font-weight: 700; }

/* ---------- En-tête / nav ---------- */
.nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.nav__in { display: flex; align-items: center; height: 68px; gap: 26px; }
.brand { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.brand span { color: var(--of); }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--muted); padding: 4px 0; position: relative; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { content:""; position:absolute; left:0; right:0; bottom:-24px; height:3px; border-radius:3px 3px 0 0; background: var(--of); }

/* ---------- Bandes pleine largeur ---------- */
.hero-band { background: linear-gradient(180deg, #e7f4ff 0%, #f4faff 55%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.section { padding: 50px 0; }
.section--tint { background: var(--bg-2); }

/* ---------- Bannière promo ---------- */
.promo {
  display: block; margin: 26px 0 4px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(0,60,120,.18); box-shadow: 0 16px 38px -18px rgba(0,70,130,.55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.promo:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(0,70,130,.65); }
.promo img { width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero { padding: 30px 0 40px; max-width: 820px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin: 0 0 18px; }
.hero p { font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- En-têtes de section ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 33px); margin: 0; position: relative; padding-left: 15px; }
.sec-head h2::before { content:""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 5px; border-radius: 3px; background: var(--accent); }
.sec-head--of  h2::before { background: var(--of); }
.sec-head--mym h2::before { background: var(--mym); }
.sec-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.sec-head a { font-size: 14.5px; color: var(--accent); font-weight: 700; white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color .18s; }
.sec-head a:hover { border-color: var(--accent); }
.sec-head a svg { width: 15px; height: 15px; vertical-align: -2px; margin-left: 2px; }

/* ---------- Grille + fiches ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  display: flex; flex-direction: column;
}
.card.is-hidden { display: none; }
.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 36px -16px rgba(10,60,110,.4); }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grad); flex-shrink: 0; }
.card__initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 74px; color: rgba(255,255,255,.85); text-shadow: 0 2px 14px rgba(20,40,70,.25); }
.card__media::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,25,45,.28)); }
.pill { position: absolute; top: 11px; left: 11px; z-index: 2; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 4px 11px; border-radius: 999px; background: #fff; color: var(--pc); box-shadow: 0 2px 8px rgba(10,40,70,.2); }
.pill--of  { --pc: var(--of); }
.pill--mym { --pc: var(--mym); }
.verif { position: absolute; top: 11px; right: 11px; z-index: 2; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--of); color: #fff; box-shadow: 0 2px 8px rgba(0,90,150,.4); }
.verif svg { width: 13px; height: 13px; }
.card__body { padding: 13px 15px 16px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__body h3 { font-size: 17.5px; margin: 0 0 2px; }
.card__sub { font-size: 13.5px; color: var(--accent); font-weight: 600; }
.card__cta {
  position: relative; z-index: 4; display: block; margin-top: auto; padding-top: 11px; width: 100%; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 12.5px; letter-spacing: .02em;
  padding: 10px 12px; border-radius: 9px; color: #fff; text-decoration: none;
  background: var(--card-cta-bg, linear-gradient(135deg, var(--vip1), var(--vip2)));
  box-shadow: 0 8px 18px -8px var(--card-cta-shadow, rgba(255,45,120,.55));
  transition: transform .16s var(--ease), filter .18s;
}
.card__cta--of  { --card-cta-bg: linear-gradient(135deg, #00aff0, #0a84c4); --card-cta-shadow: rgba(0,175,240,.5); }
.card__cta--mym { --card-cta-bg: linear-gradient(135deg, var(--vip1), var(--vip2)); --card-cta-shadow: rgba(255,45,120,.55); }
.card__cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.card__link { position: absolute; inset: 0; z-index: 3; }
.card:focus-within { border-color: var(--accent); }

/* ---------- Voir plus ---------- */
.loadmore { text-align: center; margin-top: 36px; }

/* ---------- Bande CTA (accueil) ---------- */
.cta-band { background: linear-gradient(135deg, #16233d 0%, #0a84c4 100%); color: #fff; padding: 56px 0; }
.cta-band .wrap { text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,.86); margin: 0 auto 26px; max-width: 54ch; font-size: 16px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Fil d'ariane + hero catégorie ---------- */
.crumb { font-size: 13.5px; color: var(--muted-2); }
.crumb a { color: var(--accent); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.crumb b { color: var(--muted); font-weight: 400; }
.cat-hero { padding: 30px 0 34px; max-width: 820px; }
.cat-hero .crumb { padding-bottom: 14px; }
.cat-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; }
.cat-hero p { color: var(--muted); font-size: 16.5px; margin: 0; max-width: 62ch; }

/* ---------- Page MODÈLE (fiche créatrice) ---------- */
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: start; padding: 6px 0 8px; }
.profile__portrait { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--grad); border: 1px solid var(--line); box-shadow: 0 22px 48px -24px rgba(10,60,110,.5); }
.profile__portrait .card__initial { font-size: 120px; }
.profile__info { padding-top: 4px; }
.profile__platform { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--pc); text-transform: uppercase; letter-spacing: .05em; }
.profile__platform.of  { --pc: var(--of); }
.profile__platform.mym { --pc: var(--mym); }
.profile__platform .d { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.profile__info h1 { font-size: clamp(32px, 4.8vw, 50px); margin: 10px 0 4px; }
.profile__handle { color: var(--accent); font-weight: 700; font-size: 16px; }
.profile__lead { color: var(--muted); font-size: 16.5px; margin: 16px 0 26px; max-width: 52ch; }
.profile__note { font-size: 12.5px; color: var(--muted-2); margin: 16px 0 0; }

/* Bloc contenu verrouillé (pas de carrousel) */
.locked { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--grad); min-height: 340px; display: grid; place-items: center; text-align: center; }
.locked::before { content:""; position: absolute; inset: 0; backdrop-filter: blur(3px); background: rgba(12,20,38,.5); }
.locked__inner { position: relative; z-index: 2; padding: 40px 24px; max-width: 520px; }
.locked__lock { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; margin-bottom: 16px; }
.locked__lock svg { width: 26px; height: 26px; }
.locked h3 { color: #fff; font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 6px; }
.locked p { color: rgba(255,255,255,.88); margin: 0 0 22px; font-size: 15px; }
.locked .cta-row { justify-content: center; }

/* ---------- Contenu SEO ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(24px, 3vw, 31px); margin: 0 0 18px; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.prose p a { color: var(--accent); border-bottom: 1px solid var(--line-2); }
.prose p a:hover { border-color: var(--accent); }
.prose .cta-row { margin-top: 26px; margin-bottom: 6px; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: #0e1826; color: #b9c6d6; padding: 52px 0 30px; }
.footer .brand { color: #fff; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 340px; }
.footer__brand .brand { display: inline-block; margin-bottom: 12px; }
.footer__brand p { color: #8b98a8; font-size: 14px; margin: 0; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #6f7d8e; margin: 0 0 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { color: #b9c6d6; font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #6f7d8e; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* =========================================================================
   RESPONSIVE / MOBILE
   ========================================================================= */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .profile { grid-template-columns: 300px 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; gap: 22px; }
  .profile__portrait { max-width: 340px; }
  .profile__portrait .card__initial { font-size: 96px; }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav__in { height: 60px; gap: 14px; }
  .nav__links { gap: 16px; }
  .nav__links a[aria-current="page"]::after { bottom: -20px; }
  .brand { font-size: 21px; }
  .section { padding: 40px 0; }
  .sec-head { flex-wrap: wrap; gap: 6px; }
  .cta { width: 100%; }
  .cta-row { flex-direction: column; }
  .footer__legal { flex-direction: column; gap: 8px; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__initial { font-size: 54px; }
}

/* ---------- Accessibilité ---------- */
:focus-visible { outline: 3px solid var(--of); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* =========================================================================
   AJOUTS DYNAMIQUES WORDPRESS (logo, images, menus, pagination)
   ========================================================================= */
.custom-logo{max-height:42px;width:auto}
.card__img,.profile__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.locked__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(12px) brightness(.55);transform:scale(1.14)}

/* Menus (wp_nav_menu) */
.nav__links ul{display:flex;gap:24px;list-style:none;margin:0;padding:0}
.nav__links li{position:relative}
.nav__links .current-menu-item>a,.nav__links .current_page_item>a,.nav__links .current-menu-parent>a{color:var(--ink)}
.nav__links .current-menu-item>a::after,.nav__links .current_page_item>a::after{content:"";position:absolute;left:0;right:0;bottom:-24px;height:3px;border-radius:3px 3px 0 0;background:var(--of)}
.footer .menu{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.footer .menu a{color:#b9c6d6;font-size:14px}
.footer .menu a:hover{color:#fff}

/* Pagination native */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:42px;flex-wrap:wrap}
.pagination .page-numbers{min-width:44px;height:44px;display:inline-grid;place-items:center;padding:0 13px;border-radius:10px;font-weight:700;border:1px solid var(--line);color:var(--muted);background:#fff}
.pagination a.page-numbers:hover{color:var(--ink);border-color:var(--line-2)}
.pagination .page-numbers.current{background:var(--of);color:#fff;border-color:var(--of)}
.pagination .page-numbers.dots{border:0;background:none}

/* Contenu éditeur WP dans les blocs .prose (déjà stylé) */
.prose .wp-block-image img{border-radius:12px}
