/*
Theme Name:   VisaLink
Theme URI:    https://visalink224.com
Author:       Alpha Amadou Barry
Description:  Thème léger pour VisaLink, centre de rendez-vous et de dépôt de dossiers consulaires. Affiche automatiquement les services et tarifs du plugin VisaLink. Réglages dans Apparence → Personnaliser → VisaLink.
Version:      1.8.3
Requires at least: 6.0
Requires PHP: 7.4
License:      GPLv2 or later
Text Domain:  visalink
*/

/* ===================== Police (embarquée, pas de Google Fonts) ===================== */
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===================== Jetons ===================== */
:root {
  --petrol: #0b4f6c;
  --petrol-deep: #073a50;
  --petrol-line: #1d6585;
  --ink: #13242c;
  --muted: #546a71;
  --page: #f1f5f3;
  --paper: #ffffff;
  --line: #d3dfdb;
  --gold: #e2a72e;
  --gold-deep: #b9850f;
  --green: #1f7a4d;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--petrol-deep); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ===================== Boutons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f0b740; color: var(--ink); }
.btn-ink { background: var(--petrol); color: #fff; }
.btn-ink:hover { background: var(--petrol-deep); color: #fff; }
.btn-line { border-color: currentColor; color: var(--petrol); background: transparent; }
.btn-line:hover { background: rgba(11, 79, 108, .06); }
.btn-line-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ===================== En-tête ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--petrol); }
.brand:hover { color: var(--petrol); }
.brand-seal { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-name { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
.custom-logo { max-height: 44px; width: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav .menu a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 520; font-size: .975rem;
}
.site-nav .menu a:hover { background: var(--page); color: var(--petrol); }
.site-nav .current-menu-item > a { color: var(--petrol); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto;
  align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px;
  background: none; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 30px -18px rgba(7, 58, 80, .35);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav .menu { flex-direction: column; }
  .site-nav .menu a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--page); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; }
}

/* ===================== Accueil : bandeau ===================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--petrol-deep); color: #fff;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
}
.hero-pattern { position: absolute; inset: 0; color: var(--petrol-line); opacity: .55; pointer-events: none; }
.hero-pattern .guilloche { position: absolute; width: 1100px; max-width: none; right: -280px; top: 50%; transform: translateY(-50%); }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

.hero h1 { font-size: clamp(2.05rem, 5.2vw, 3.55rem); line-height: 1.07; letter-spacing: -0.028em; max-width: 17ch; margin-bottom: .45em; }
.hero-lead { font-size: clamp(1.0625rem, 1.8vw, 1.22rem); color: #d6e7ee; max-width: 46ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-line { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-line:hover { background: rgba(255,255,255,.08); }
.hero-proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #bcd6e0; font-size: .95rem; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }

/* Ticket de rendez-vous (illustration) */
.hero-ticket { display: flex; justify-content: center; }
.ticket {
  position: relative; width: min(100%, 380px);
  background: var(--paper); color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
  transform: rotate(-2.5deg);
}
.ticket-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.ticket-brand { font-weight: 750; color: var(--petrol); letter-spacing: -0.01em; }
.ticket-status { font-size: .8rem; font-weight: 650; color: var(--green); background: #e5f3eb; padding: 4px 10px; border-radius: 99px; }
.ticket-body { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 20px 20px; align-items: end; }
.ticket-fields { margin: 0; display: grid; gap: 10px; }
.ticket-fields dt { font-size: .74rem; color: var(--muted); }
.ticket-fields dd { margin: 0; font-weight: 640; font-size: .95rem; line-height: 1.3; }
.ticket-qr { width: 104px; height: 104px; fill: var(--ink); }
.ticket-perf {
  position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px;
}
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--petrol-deep);
}
.ticket-perf::before { left: -30px; }
.ticket-perf::after { right: -30px; }
.ticket-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px 16px; font-size: .8rem; color: var(--muted); }
.ticket-foot span:first-child { font-weight: 700; color: var(--ink); letter-spacing: .04em; }

/* Le tampon : seule animation de la page */
.ticket-stamp {
  position: absolute; left: 42%; bottom: -38px;
  width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--gold-deep); color: var(--gold-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(14deg);
  background: #fff7e3;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.6), inset 0 0 0 6px var(--gold-deep);
  animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1) .6s both;
}
.ticket-stamp span { font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: .02em; }
.ticket-stamp small { font-size: .66rem; font-weight: 650; margin-top: 3px; }
@keyframes stamp {
  from { opacity: 0; transform: rotate(14deg) scale(1.9); }
  to   { opacity: 1; transform: rotate(14deg) scale(1); }
}

/* ===================== Sections ===================== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-title { font-size: clamp(1.65rem, 3.2vw, 2.35rem); letter-spacing: -0.022em; margin-bottom: .55em; }
.section-lead { color: var(--muted); max-width: 62ch; font-size: 1.0625rem; }
.section-note { color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* Étapes : vraie séquence, d'où la numérotation et le tracé pointillé */
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--petrol); color: #fff; font-weight: 750; font-size: 1.1rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: -26px;
  border-left: 2px dashed var(--line);
}
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 920px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { padding: 64px 0 0; }
  .steps li:not(:last-child)::after { left: 52px; right: -28px; top: 21px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line); }
}
.steps-cta { margin: 40px 0 0; }

/* Tarifs : présentés comme une grille tarifaire, pas comme des cartes */
.prices-section { background: var(--page); }
.price-board { margin-top: 32px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--petrol); border-radius: var(--radius); }
.price-main h3 { font-size: 1.08rem; margin: 0 0 .25em; }
.price-dest { margin-top: 6px !important; font-size: .9rem !important; color: var(--ink) !important; }
.price-docs-note { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.price-group { margin-top: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.price-group-head { padding: 20px 24px; border-bottom: 2px solid var(--petrol); }
.price-group-head h3 { font-size: 1.25rem; margin: 0; }
.price-group-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-row { display: grid; gap: 14px; padding: 20px clamp(16px, 4vw, 24px); border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-main h4 { font-size: 1.08rem; margin: 0 0 .25em; }
.price-main p { margin: 0; color: var(--muted); font-size: .97rem; }
.price-main { min-width: 0; }
.price-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.price-amount { font-weight: 750; font-size: 1.15rem; color: var(--petrol); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
  .price-row { grid-template-columns: 1fr auto; align-items: start; gap: 24px; }
  .price-side { flex-direction: column; align-items: flex-end; gap: 10px; }
}
.price-vip { font-size: .85rem; font-weight: 600; color: #7a5300; white-space: nowrap; }
@media (max-width: 719px) {
  .price-side .price-vip { order: 1; flex-basis: 100%; margin-top: -6px; }
  .price-side .btn { order: 2; }
}
.price-docs { margin-top: 10px; font-size: .95rem; }
.price-docs summary { cursor: pointer; color: var(--petrol); font-weight: 600; width: fit-content; }
.price-docs ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink); }
.price-docs li { margin: 2px 0; }
.empty-note { margin-top: 28px; padding: 20px 24px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Salon VIP */
.vip-card {
  margin-top: 28px; padding: clamp(20px, 4vw, 32px); border-radius: var(--radius);
  background: var(--petrol-deep); color: #fff; display: grid; gap: 18px;
  border-top: 4px solid var(--gold);
}
.vip-kicker { color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.vip-card h3 { margin: 4px 0 6px; font-size: clamp(1.4rem, 3vw, 1.8rem); color: #fff; }
.vip-card-head p { margin: 0; color: rgba(255,255,255,.82); max-width: 52ch; }
.vip-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vip-perks li { position: relative; padding-left: 22px; }
.vip-perks li::before { content: "★"; position: absolute; left: 0; color: var(--gold); font-size: .85rem; top: 1px; }
.vip-price { margin: 0; color: rgba(255,255,255,.85); }
.vip-price strong { color: var(--gold); font-size: 1.15rem; }
@media (min-width: 920px) { .vip-card { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 48px; } .vip-price { grid-column: 1 / -1; } }

/* Formules */
.formula-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 820px) { .formula-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.formula-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 30px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.formula-card h3 { margin: 0; font-size: 1.5rem; }
.formula-card p { margin: 0; color: var(--muted); }
.formula-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.formula-price { font-size: 1.6rem !important; font-weight: 750; color: var(--petrol) !important; font-variant-numeric: tabular-nums; }
.formula-card .btn { margin-top: auto; }
.formula-card-vip { background: var(--petrol-deep); border-color: var(--petrol-deep); border-top: 4px solid var(--gold); color: #fff; }
.formula-card-vip h3 { color: #fff; }
.formula-card-vip .formula-kicker { color: var(--gold); }
.formula-card-vip .formula-price { color: var(--gold) !important; }
.formula-card-vip .formula-note { color: rgba(255,255,255,.8); font-size: .92rem; }
.formula-card-vip .vip-perks { margin: 4px 0; }
.prices-subtitle { margin: 40px 0 12px; font-size: 1.25rem; }

/* Services en option */
.extras-block { margin-top: 28px; padding: clamp(20px, 4vw, 28px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.extras-block h3 { margin: 0 0 4px; font-size: 1.2rem; }
.extras-block > p { margin: 0 0 14px; color: var(--muted); }
.extras-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.extras-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.extras-list li b { white-space: nowrap; color: var(--petrol); font-variant-numeric: tabular-nums; }
@media (min-width: 920px) { .extras-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* Ce qui change */
.why-grid { display: grid; gap: 24px; }
@media (min-width: 920px) { .why-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.why-list { display: grid; gap: 0; }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.why-item { padding: 20px 0; border-top: 1px solid var(--line); }
.why-item h3 { font-size: 1.1rem; margin-bottom: .3em; }
.why-item p { margin: 0; color: var(--muted); }

/* Services complémentaires */
.extras-section { background: var(--page); }
.extras { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .extras { grid-template-columns: 1fr 1fr; } }
.extras li { padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; font-weight: 560; }

/* FAQ */
.faq-section { background: var(--page); }
.faq { margin-top: 24px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 640; font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2.5px solid var(--petrol); border-bottom: 2.5px solid var(--petrol);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 68ch; }

/* Contact */
.contact-section { background: var(--petrol); color: #fff; }
.contact-section .section-lead { color: #cfe2ea; }
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-info { margin: 0; display: grid; gap: 18px; padding: 24px; background: rgba(255,255,255,.07); border-radius: var(--radius); }
.contact-info dt { font-size: .85rem; color: #a9cad7; }
.contact-info dd { margin: 2px 0 0; font-weight: 560; }
.contact-info a { color: #fff; }

/* ===================== Pied de page ===================== */
.site-footer { background: var(--ink); color: #c4d2d7; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand { color: var(--gold); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: .7em; }
.footer-col p { margin: 0 0 .4em; }
.footer-small { font-size: .92rem; }
.footer-menu { list-style: none; margin: 10px 0 0; padding: 0; }
.footer-menu li { margin: 4px 0; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8ea3aa; }
.footer-legal p { max-width: 90ch; margin: 0 0 .6em; }

/* ===================== Pages intérieures ===================== */
.page-head { background: var(--petrol-deep); color: #fff; padding: clamp(32px, 6vw, 56px) 0; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 0; letter-spacing: -0.022em; }
.page-body { padding-top: 36px; padding-bottom: 72px; }
.page-tool { background: var(--page); }
.page-tool .page-body { padding-top: 28px; }
.page-text .page-body { max-width: 780px; }
.page-text .page-body > * + * { margin-top: 1em; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
.post-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-date { color: var(--muted); font-size: .9rem; }

/* Formulaire de réservation du plugin : aligné sur le thème */
.page-tool .ailrdv { font-family: var(--font); }
.page-tool .ailrdv .rdv-card { border-color: var(--line); }

/* ===================== Accessibilité ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.formula-price small { font-size: .45em; font-weight: 500; opacity: .7; }
.group-note { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px dashed #c9d6de; }

/* Mentions légales */
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal-table th { width: 38%; font-weight: 600; color: var(--ink-soft, #4a5d63); }
.page-text .page-body h2 { font-size: 1.2rem; margin-top: 1.8em; }
.footer-legal a { color: inherit; text-decoration: underline; }
