/*
Theme Name:  Pilot Log Book
Theme URI:   https://pilot-log-book.com
Description: Thème de blocs du site public de Pilot Log Book (pilot-log-book.com) : accueil, forfaits, inscription. Bâti avec le kit ZAA WP Starter.
Author:      [ ZAA.CC ] Design web
Author URI:  https://www.zaa.cc
Version:     0.1.8
Requires at least: 7.0
Requires PHP: 8.3
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pilotlogbook
*/

/* ============================================================
   Variables
   Les couleurs, polices et rayons sont définis dans theme.json
   (variables --wp--preset--* et --wp--custom--*). Les alias
   ci-dessous réutilisent le CSS de la maquette sans dupliquer
   les valeurs.
   ============================================================ */
:root {
  --plb-night: var(--wp--preset--color--night);
  --plb-sky: var(--wp--preset--color--sky);
  --plb-steel: var(--wp--preset--color--steel);
  --plb-azure: var(--wp--preset--color--azure);
  --plb-amber: var(--wp--preset--color--amber);
  --plb-white: var(--wp--preset--color--white);
  --plb-slate: var(--wp--preset--color--slate);
  --plb-muted: var(--wp--preset--color--muted);
  --plb-tint: var(--wp--preset--color--tint);
  --plb-gray-100: var(--wp--preset--color--gray-100);
  --plb-gray-200: var(--wp--preset--color--gray-200);
  --plb-gray-600: var(--wp--preset--color--gray-600);
  --plb-ui-border: var(--wp--preset--color--ui-border);
  --plb-line: var(--wp--custom--line);
  --plb-radius: var(--wp--custom--radius);
  --plb-radius-md: var(--wp--custom--radius-md);
  --plb-radius-lg: var(--wp--custom--radius-lg);
  --plb-left-w: 25%;
  --plb-violet: var(--wp--preset--color--violet);
  --plb-mauve: var(--wp--preset--color--mauve);
  --plb-electric: var(--wp--preset--color--electric);
  /* Fonds animés : couleurs Solo (violet → mauve → bleu électrique). Le bleu
     Pilot Log Book reste sur les accents : numéros d'étapes, coches, boutons
     texte sur fond blanc, panneau onboarding (dégradé nuit). */
  --plb-gradient: var(--wp--preset--gradient--brand);
  --plb-gradient-blue: var(--wp--preset--gradient--brand-blue);
  --font-family: var(--wp--preset--font-family--body);
  --font-display: var(--wp--preset--font-family--display);
}

/* ============================================================
   Styles de la maquette (portés tels quels)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--plb-night);
  background: var(--plb-white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--plb-sky); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }

/* ── Tailles ─────────────────────────────────────────────── */
.xs { font-size: .9rem; line-height: 1.4; }
.sm { font-size: 1rem; line-height: 1.5; }
.md { font-size: 1.3rem; line-height: 1.5; }
.lg { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -.03em; }
.xl { font-size: clamp(2.6rem, 4.4vw, 4.4rem); line-height: .96; letter-spacing: -.035em; }

/* ── Dégradés animés ─────────────────────────────────────── */
@keyframes plbGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes plbStatsGlow {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0 0; }
  50% { background-position: 8% 6%, 92% 94%, 0 0; }
}
@keyframes plbRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.plb-bg-animated {
  background: var(--plb-gradient);
  background-size: 300% 300%;
  animation: plbGradientFlow 8s ease infinite;
}
.plb-text-animated {
  display: inline-block;
  color: transparent;
  background: var(--plb-gradient);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: plbGradientFlow 8s ease infinite;
}
.plb-bg-animated-pale {
  background:
  radial-gradient(circle at 15% 20%, rgba(96, 76, 174, .10) 0%, transparent 34%),
  radial-gradient(circle at 85% 75%, rgba(66, 23, 230, .08) 0%, transparent 32%),
  linear-gradient(135deg, rgba(231, 228, 242, .25) 0%, rgba(248, 246, 254, .32) 100%);
  background-size: 140% 140%, 150% 150%, 100% 100%;
  animation: plbStatsGlow 14s ease-in-out infinite;
}

/* ── Layout 40 / 60 ──────────────────────────────────────── */
/* --plb-vh : hauteur visible sous la barre d'administration de WordPress
   (session ouverte) ; sans elle, une page de 100vh défile de 32 px pour rien. */
:root { --plb-bar: var(--wp-admin--admin-bar--height, 0px); --plb-vh: calc(100vh - var(--plb-bar)); }
.plb-page { display: flex; min-height: var(--plb-vh); }
/* Le panneau gauche reste collé tant qu'il tient dans la fenêtre. Fenêtre trop
   basse : il prend la hauteur de son contenu et défile avec la page (scripts.js
   pose --plb-left-top, négatif), sans barre de défilement à lui. */
.plb-panel-left {
  position: sticky;
  top: var(--plb-left-top, var(--plb-bar));
  align-self: flex-start;
  flex-shrink: 0;
  width: var(--plb-left-w);
  min-height: var(--plb-vh);
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  color: var(--plb-white);
  background: var(--plb-gradient);
  background-size: 300% 300%;
  animation: plbGradientFlow 8s ease infinite;
  overflow: hidden;
  z-index: 50;
}
.plb-panel-right { flex: 1; min-width: 0; }
@media (min-width: 1600px) {
  .plb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.plb-panel-inner { max-width: 960px; padding: 0 4rem; }

/* ── Panneau gauche : navigation (pages principales) ────── */
.plb-side__statement { margin: auto 0; padding: 2rem 0; transition: opacity .3s ease, transform .3s ease; }
.plb-side__statement.is-changing { opacity: 0; transform: translateY(10px); }
.plb-side__kicker {
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plb-amber); /* Accent ambre (balise d'aviation) sur fond bleu nuit. */
}
.plb-side__title {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--plb-white);
  text-wrap: balance;
}
.plb-side__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.plb-side__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  margin-top: 1.75rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .75);
}
.plb-side__footer a { color: rgba(255, 255, 255, .75); }
.plb-side__footer a:hover { color: var(--plb-white); }
.plb-side__footer--center { justify-content: center; }

/* ── Panneau gauche : marque (connexion / inscription) ──── */
.plb-panel-left--brand { align-items: center; justify-content: center; text-align: center; }
.plb-panel-left--brand .plb-side__footer { position: absolute; left: 0; right: 0; bottom: 1.5rem; padding: 0 2rem; }
.plb-login-logo-link { display: inline-block; line-height: 0; }
.plb-login-logo-link:focus-visible { border-radius: 4px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.plb-login-logo {
  width: 190px;
  max-width: 100%;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .3));
  transition: transform .5s ease;
}
.plb-login-logo-link:hover .plb-login-logo { transform: rotate(-11deg); }
.plb-slogan {
  max-width: 260px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .2);
}

/* ── Boutons ─────────────────────────────────────────────── */
.plb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 48px;
  padding: .1rem 1.35rem;
  border: 0;
  border-radius: var(--plb-radius-lg);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.plb-button:hover { transform: translateY(-2px); text-decoration: none; }
.plb-button svg { width: 16px; height: auto; fill: currentColor; transition: transform .18s ease; }
.plb-button:hover svg { transform: translateX(4px); }
.plb-button--primary { color: var(--plb-white); background: var(--wp--preset--gradient--button); box-shadow: 0 12px 30px rgba(66, 23, 230, .18); }
.plb-button--primary.plb-bg-animated { background: var(--plb-gradient); background-size: 300% 300%; }
.plb-button--ghost { color: var(--plb-night); background: rgba(47, 128, 237, .06); }
.plb-button--ghost:hover { color: var(--plb-sky); }
.plb-button--white { color: var(--plb-sky); background: var(--plb-white); box-shadow: 0 10px 24px rgba(11, 29, 51, .18); }
.plb-button--outline-light { color: var(--plb-white); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.plb-button--outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--plb-white); }
.plb-button--block { width: 100%; }
.plb-button--link { min-height: 44px; padding: 0 .25rem; color: var(--plb-slate); background: transparent; }
.plb-button--link:hover { color: var(--plb-sky); transform: none; }

/* ── Sections ────────────────────────────────────────────── */
.plb-section { padding: 6rem 0; scroll-margin-top: 0; }
.plb-section + .plb-section { border-top: 1px solid var(--plb-line); }
.plb-section__heading { max-width: 700px; margin-bottom: 2.5rem; }
.plb-eyebrow, .plb-kicker {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--plb-sky);
}
.plb-title { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--plb-night); }
.plb-intro { margin-top: 1.25rem; color: var(--plb-slate); }
.plb-intro strong { color: var(--plb-night); font-weight: 600; }
@media (min-width: 1024px) {
  .plb-section--full { min-height: var(--plb-vh); display: flex; flex-direction: column; justify-content: center; }
}

/* ── Hero ────────────────────────────────────────────────── */
.plb-hero { padding-top: 5rem; }
.plb-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.plb-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding: 1rem;
  border-radius: var(--plb-radius-lg);
}
.plb-stat { padding: 1.1rem; }
.plb-stat strong { display: block; margin-bottom: .35rem; }
.plb-stat p { font-weight: 600; color: var(--plb-night); }
.plb-hero__preview { margin-top: 2.5rem; }

/* ── Placeholder image ───────────────────────────────────── */
.plb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 1.5rem;
  border: 1px dashed rgba(47, 128, 237, .28);
  border-radius: var(--plb-radius-lg);
  background: repeating-linear-gradient(135deg, rgba(47, 128, 237, .05) 0 10px, rgba(47, 128, 237, .015) 10px 20px);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
  color: var(--plb-slate);
}
.plb-placeholder--dark { border-color: rgba(255, 255, 255, .35); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 10px, rgba(255, 255, 255, .02) 10px 20px); color: rgba(255, 255, 255, .85); }

/* ── Cartes fonctionnalités ──────────────────────────────── */
.plb-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plb-card {
  padding: 1.6rem;
  border: 1px solid var(--plb-line);
  border-radius: var(--plb-radius-lg);
  box-shadow: 0 18px 50px rgba(11, 29, 51, .04);
}
.plb-card h3 { font-family: var(--font-family); font-weight: 700; letter-spacing: 0; }
.plb-card p { margin-top: .7rem; color: var(--plb-slate); }

/* ── Forfaits (tableau comparatif) ───────────────────────── */

/* ── Prix (accroche) ─────────────────────────────────────── */
.plb-price-line { margin-top: 1rem; font-size: .95rem; color: var(--plb-slate); }
.plb-price-line strong { color: var(--plb-night); }
.plb-compare { margin-bottom: 1rem; }
.plb-compare__list { margin-top: 1.1rem; padding-left: 1.2rem; color: var(--plb-muted); }
.plb-compare__list li { margin-bottom: .55rem; line-height: 1.6; text-decoration: line-through; text-decoration-color: rgba(47, 128, 237, .45); }
.plb-highlight--dark .plb-compare__price { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }

/* ── Fonctionnement ──────────────────────────────────────── */
.plb-story-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 1rem; }
.plb-highlight { padding: 2rem; border-radius: var(--plb-radius-lg); }
.plb-highlight h2 { font-size: 1.6rem; line-height: 1.2; }
.plb-highlight p { margin-top: .95rem; line-height: 1.7; color: var(--plb-muted); }
.plb-highlight--dark {
  color: var(--plb-white);
  background: radial-gradient(circle at top right, rgba(255, 255, 255, .15), transparent 30%), linear-gradient(160deg, #0b1d33 0%, #133259 56%, #2f80ed 100%);
}
.plb-highlight--dark .plb-kicker, .plb-highlight--dark p, .plb-highlight--dark li { color: var(--plb-white); }
.plb-highlight--dark .plb-kicker { color: var(--plb-amber); } /* Accent ambre sur les panneaux bleu nuit. */
.plb-highlight--light { background: var(--plb-tint); border: 1px solid var(--plb-line); }
.plb-steps { margin-top: 1.25rem; padding-left: 1.2rem; }
.plb-steps li { margin-bottom: .8rem; line-height: 1.7; }
.plb-inline-link { display: inline-block; margin-top: 1.2rem; font-weight: 700; }

/* ── Démarrer : accordéon d'étapes (gauche) + visuel cellulaire (droite) ── */
.plb-onboard { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.5rem 2.5rem; align-items: start; }
/* Colonne de gauche : étapes puis bouton ; colonne de droite : le visuel, sur les deux rangées. */
.plb-onboard__steps, .plb-onboard__actions { grid-column: 1; }
.plb-onboard__visual { grid-column: 2; grid-row: 1 / span 2; }
.plb-onboard__steps { counter-reset: plb-step; border-top: 1px solid var(--plb-line); }
.plb-onboard__step { border-bottom: 1px solid var(--plb-line); }
.plb-onboard__step summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
  list-style: none;
  cursor: pointer;
  color: var(--plb-night);
}
.plb-onboard__step summary::-webkit-details-marker { display: none; }
.plb-onboard__step summary::before {
  counter-increment: plb-step;
  content: counter(plb-step);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--plb-tint);
  font-family: var(--font-family);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--plb-sky);
  transition: background-color .2s ease, color .2s ease;
}
.plb-onboard__step[open] summary::before { background: var(--plb-gradient-blue); background-size: 300% 300%; animation: plbGradientFlow 8s ease infinite; color: var(--plb-white); }
.plb-onboard__step > :not(summary) { margin-left: calc(36px + 1rem); animation: plbRise .45s ease both; }
.plb-onboard__step > :last-child { margin-bottom: 1.5rem; }
.plb-onboard__step p { line-height: 1.7; color: var(--plb-slate); }
.plb-onboard__step .plb-checklist-title { margin-top: 1rem; color: var(--plb-night); }
.plb-onboard__step .plb-checklist { margin-top: .6rem; }
.plb-onboard__step .plb-checklist li { color: var(--plb-slate); }
.plb-onboard__step .plb-placeholder, .plb-onboard__step .wp-block-image { margin-block-start: 1.25rem; }
.plb-onboard__actions { margin-top: .5rem; }
/* Visuel : une image verticale (cellulaire) par étape, sans boîte, seuls les coins
   sont arrondis, au même rayon que les cartes (radius-lg). Le script y déplace l'image
   de chaque étape et montre celle de l'étape ouverte. */
.plb-onboard__visual { position: sticky; top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.plb-onboard__visual > * { width: 100%; max-width: 320px; margin: 0; animation: plbRise .45s ease both; }
.plb-onboard__visual > :not(.is-current):not(.plb-onboard__next) { display: none; }
/* « Étape suivante » sous le visuel (bâti par le script) ; absent à la dernière étape. */
.plb-onboard__next { width: auto; animation: none; }
.plb-onboard__next[hidden] { display: none; }
.plb-onboard__visual .wp-block-image img { width: 100%; height: auto;  }
.plb-placeholder--phone { aspect-ratio: 9 / 19; max-width: 320px; margin-block-start: 0 !important; }
.plb-checklist-title { font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--plb-white); }
.plb-checklist { display: flex; flex-direction: column; gap: .55rem; padding: 0; list-style: none; }
.plb-checklist li { position: relative; padding-left: 1.75rem; line-height: 1.5; }
.plb-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.plb-checklist li::after {
  content: "";
  position: absolute;
  left: .36rem;
  top: .42em;
  width: .3rem;
  height: .55rem;
  border: solid var(--plb-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plb-checklist--light li::before { background: var(--plb-tint); }
.plb-checklist--light li::after { border-color: var(--plb-sky); }

/* ── FAQ ─────────────────────────────────────────────────── */
.plb-faq { max-width: 760px; border-top: 1px solid var(--plb-line); }
.plb-faq__item { border-bottom: 1px solid var(--plb-line); }
.plb-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.plb-faq__item summary::-webkit-details-marker { display: none; }
.plb-faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--plb-tint);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--plb-sky);
  transition: transform .25s ease;
}
.plb-faq__item[open] summary::after { transform: rotate(45deg); }
.plb-faq__item p { padding: 0 3rem 1.5rem 0; line-height: 1.7; color: var(--plb-slate); }

/* ── Appel final ─────────────────────────────────────────── */
.plb-cta { padding: 3.5rem; border-radius: var(--plb-radius-lg); color: var(--plb-white); }
.plb-cta .plb-kicker { color: var(--plb-amber); }
.plb-cta h2 { color: var(--plb-white); }
.plb-cta p { margin-top: 1rem; max-width: 52ch; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.plb-cta .plb-hero__actions { margin-top: 2rem; }

/* ── Pied de page (mobile seulement — desktop: panneau gauche) */
.plb-footer { display: none; padding: 2rem 0 3rem; border-top: 1px solid var(--plb-line); font-size: .85rem; color: var(--plb-slate); }
.plb-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.plb-footer a { color: var(--plb-slate); }

/* ── Formulaires ─────────────────────────────────────────── */
.plb-auth { min-height: var(--plb-vh); display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.plb-auth__box { width: 100%; max-width: 460px; }
.plb-auth__box h1 { font-size: 2.2rem; line-height: 1.1; }
.plb-auth__lead { margin-top: .75rem; color: var(--plb-slate); line-height: 1.6; }
.plb-form { margin-top: 2rem; }
.plb-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.plb-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.plb-label { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--plb-gray-600); }
.plb-label span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.plb-input {
  width: 100%;
  min-height: 48px;
  padding: .65rem .95rem;
  border: 1.5px solid var(--plb-gray-200);
  border-radius: var(--plb-radius);
  background: var(--plb-gray-100);
  font: inherit;
  font-size: .95rem;
  color: var(--plb-night);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.plb-input:focus { border-color: var(--plb-sky); background: var(--plb-white); box-shadow: 0 0 0 3px rgba(47, 128, 237, .12); }
.plb-input:disabled { opacity: .5; }
textarea.plb-input { min-height: 140px; resize: vertical; }
.plb-input-wrap { position: relative; }
.plb-input-wrap .plb-input { padding-right: 6rem; }
.plb-input-wrap button {
  position: absolute;
  top: 50%;
  right: .4rem;
  min-height: 36px;
  padding: 0 .75rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--plb-sky);
  cursor: pointer;
}
.plb-help { font-size: .82rem; color: var(--plb-gray-600); }
.plb-input-suffix { display: flex; align-items: stretch; border: 1.5px solid var(--plb-gray-200); border-radius: var(--plb-radius); background: var(--plb-gray-100); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.plb-input-suffix:focus-within { border-color: var(--plb-sky); background: var(--plb-white); box-shadow: 0 0 0 3px rgba(47, 128, 237, .12); }
.plb-input-suffix .plb-input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; }
.plb-input-suffix__text { display: flex; align-items: center; padding: 0 .95rem 0 .25rem; font-size: .95rem; font-weight: 600; color: var(--plb-slate); white-space: nowrap; }
.plb-check.plb-check--inline { display: block; padding-left: 1.65rem; text-indent: -1.65rem; }
.plb-check.plb-check--inline input { display: inline-block; vertical-align: -.15em; margin: 0 .55rem 0 0; text-indent: 0; }
.plb-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.plb-check input { width: 1.05rem; height: 1.05rem; margin: .1rem 0 0; accent-color: var(--plb-sky); flex-shrink: 0; }
.plb-form__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .25rem 0 1.5rem; font-size: .9rem; }
.plb-form__alt { margin-top: 1.5rem; text-align: center; font-size: .92rem; color: var(--plb-slate); }
.plb-form__alt a { font-weight: 700; }
.plb-progress { height: 4px; margin-top: 1.75rem; border-radius: 99px; background: var(--plb-tint); overflow: hidden; }
.plb-progress__bar { height: 100%; width: 25%; border-radius: inherit; background: var(--plb-gradient); background-size: 300% 300%; animation: plbGradientFlow 8s ease infinite; transition: width .35s ease; }
.plb-progress__label { margin-top: .6rem; font-size: .82rem; font-weight: 600; color: var(--plb-slate); }
.plb-form-step { display: none; }
.plb-form-step.is-active { display: block; animation: plbRise .4s ease both; }
.plb-form-step h2 { margin-bottom: 1.25rem; font-size: 1.35rem; }
.plb-form-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.plb-form-nav .plb-button--primary { margin-left: auto; }
.plb-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.plb-chip { position: relative; }
.plb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.plb-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1.5px solid var(--plb-gray-200);
  border-radius: var(--plb-radius-lg);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.plb-chip input:checked + span { border-color: var(--plb-sky); background: var(--plb-tint); color: var(--plb-sky); }
.plb-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 128, 237, .2); }
.plb-recap { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.25rem; margin: 0 0 1.5rem; padding: 1.25rem; border-radius: var(--plb-radius-md); background: var(--plb-tint); font-size: .92rem; }
.plb-recap dt { font-weight: 600; color: var(--plb-slate); }
.plb-recap dd { margin: 0; overflow-wrap: anywhere; }
.plb-recap--amounts { margin-bottom: .75rem; }
.plb-recap--amounts dd { text-align: right; font-variant-numeric: tabular-nums; }
.plb-recap .plb-recap__total { padding-top: .6rem; border-top: 1px solid var(--plb-line); font-weight: 700; color: var(--plb-night); }

/* ── Inscription : étapes, forfait, consentements, paiement ─ */
.plb-fieldset { min-width: 0; margin: 1.5rem 0 0; padding: 0; border: 0; }
.plb-field.plb-fieldset { margin: 0 0 1.5rem; }
.plb-legend { padding: 0; margin-bottom: .6rem; }
.plb-notice { margin: .5rem 0 0; padding: .9rem 1rem; border-left: 3px solid var(--plb-sky); border-radius: var(--plb-radius); background: var(--plb-tint); font-size: .88rem; line-height: 1.55; color: var(--plb-slate); }
/* Variante « succès » (0.1.8) : l'essai gratuit commence aujourd'hui (étape Paiement de l'inscription) ; espace sous la boîte (0.1.10). */
.plb-notice--success { margin-bottom: 1.25rem; border-left-color: #2e7d32; background: #eef7ee; color: #1f5a22; }
.plb-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.plb-plan { position: relative; display: block; cursor: pointer; }
.plb-plan input { position: absolute; opacity: 0; pointer-events: none; }
.plb-plan__box { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1rem 1.1rem; border: 1.5px solid var(--plb-gray-200); border-radius: var(--plb-radius-md); transition: all .15s ease; }
.plb-plan__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.plb-plan__price { font-weight: 700; color: var(--plb-sky); }
.plb-plan__desc { margin-top: .2rem; font-size: .82rem; line-height: 1.45; color: var(--plb-slate); }
.plb-plan input:checked + .plb-plan__box { border-color: var(--plb-sky); background: var(--plb-tint); box-shadow: 0 0 0 1px var(--plb-sky); }
.plb-plan input:focus-visible + .plb-plan__box { box-shadow: 0 0 0 3px rgba(47, 128, 237, .2); }
.plb-consents { display: flex; flex-direction: column; gap: .75rem; }
.plb-consent-ia { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border: 1.5px solid rgba(47, 128, 237, .25); border-radius: var(--plb-radius-md); }
.plb-consent-ia[hidden] { display: none; }
.plb-consent-ia__title { font-weight: 700; }
.plb-placeholder--card { aspect-ratio: auto; min-height: 120px; border-radius: var(--plb-radius); }
.plb-pay { margin-top: 1.5rem; }
.plb-success__spam { margin-top: 1rem; }
.plb-success h1 { margin-top: .25rem; }
.plb-success .plb-checklist { margin: 1.5rem 0 2rem; }

/* ── Contact & pages légales ─────────────────────────────── */
.plb-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.plb-contact-grid p { line-height: 1.7; color: var(--plb-slate); }
.plb-contact-grid p + p { margin-top: 1rem; }
.plb-partner-logo { width: 170px; margin: 1.5rem 0; }
.plb-form-card { padding: 2rem; border: 1px solid var(--plb-line); border-radius: var(--plb-radius-lg); }
.plb-prose { max-width: 68ch; }
.plb-prose h2 { margin: 2.5rem 0 .75rem; font-size: 1.35rem; }
.plb-prose p { line-height: 1.75; color: var(--plb-slate); }
.plb-prose p + p { margin-top: 1rem; }

/* ── Apparition au défilement ────────────────────────────── */
.js .plb-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .plb-reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 1201px) and (max-height: 700px) {
  .plb-panel-left { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .plb-side__statement { padding: 1rem 0; }
  .plb-side__title { font-size: clamp(1.6rem, 2.4vw, 2.4rem); }
  .plb-side__footer { margin-top: 1rem; }
}
@media (max-width: 1200px) {
  .plb-page { flex-direction: column; }
  .plb-panel-left, .plb-panel-right { width: 100%; }
  .plb-panel-left { top: var(--plb-bar); min-height: 0; padding: .75rem 1.25rem; }
  .plb-side__statement { display: none; }
  .plb-side__actions { display: none; }
  .plb-panel-left--brand { position: relative; min-height: 220px; padding: 2rem 1.25rem; }
  .plb-panel-left--brand .plb-login-logo { width: 120px; margin-bottom: 1rem; }
  .plb-panel-left--brand .plb-side__footer { display: none; }
  .plb-panel-inner { padding: 0 3rem; }
  .plb-section { padding: 4rem 0; }
  .plb-hero { padding-top: 3rem; }
  .plb-footer { display: block; }
  .plb-auth { min-height: auto; padding: 2.5rem 1.5rem 4rem; }
  .plb-cta { padding: 2.25rem 1.75rem; }
}
@media (max-width: 900px) {
  .plb-panel-inner { padding: 0 1.5rem; }
  .plb-stats, .plb-feature-grid, .plb-story-grid, .plb-onboard, .plb-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plb-field-row, .plb-plans { grid-template-columns: 1fr; }
  .plb-faq__item p { padding-right: 0; }
  .plb-card, .plb-highlight { border-radius: 22px; padding: 1.5rem; }
  .plb-onboard__step > :not(summary) { margin-left: 0; }
  .plb-onboard__visual { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .plb-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Adaptation aux blocs WordPress
   ============================================================ */

/* Le corps de texte part de la préférence du navigateur (jamais en px). */
html { font-size: 100%; }

.wp-site-blocks { padding: 0; }
.plb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Les grilles de la maquette reçoivent des blocs Groupe : un enfant de grille
   ne rétrécit pas sous son contenu sans min-width: 0 (débordement mobile).
   Les marges de flux sont à zéro dans theme.json (blockGap). */
.plb-stats > *, .plb-feature-grid > *, .plb-story-grid > *, .plb-onboard > *, .plb-onboard__visual > *,
.plb-contact-grid > * { min-width: 0; }
.plb-section > *, .plb-panel-inner > * { max-width: none; }
figure { margin: 0; }
.wp-block-list { padding-left: 1.2rem; }
.wp-block-list.plb-checklist { padding-left: 0; }
.plb-prose .wp-block-list { margin: .75rem 0; }

/* Focus visible sur tous les éléments interactifs. */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 3px solid var(--plb-sky); outline-offset: 2px; }
.plb-panel-left a:focus-visible, .plb-panel-left button:focus-visible,
.plb-cta a:focus-visible, .plb-highlight--dark a:focus-visible { outline-color: var(--plb-white); }
.plb-input:focus-visible { outline: none; }

/* Lien d'évitement du cœur : on ne fournit que son habillage. */
.skip-link.screen-reader-text:focus {
  top: .5rem;
  left: .5rem;
  z-index: 100000;
  padding: .75rem 1.25rem;
  border-radius: var(--plb-radius-lg);
  background: var(--plb-night);
  color: var(--plb-white);
  font-weight: 700;
  text-decoration: none;
}

/* Liens dans le texte suivi : soulignés (WCAG 1.4.1), boutons exclus. */
.plb-panel-right :is(p, li, dd):not(.plb-inline-link, .wp-block-navigation-item, .lang-item, .plb-year) > a:not(.wp-element-button):not(.plb-button) { text-decoration: underline; text-underline-offset: .15em; }
.plb-footer .wp-block-navigation__container { gap: .5rem 1rem; }

.plb-footer .lang-switcher { margin: .5rem 0 0; } /* sous les liens, aligné sur eux (audit mobile 2026-10-27) */
.plb-footer .plb-year  { margin-top: .5rem; }

.plb-cta p > a:not(.wp-element-button), .plb-highlight--dark p > a { color: var(--plb-white); }

/* Bordures des champs : gris Bootstrap #dee2e6, comme dans l'application. */
.plb-input, .plb-input-suffix, .plb-plan__box { border-color: var(--plb-ui-border); }
/* Champs sur fond blanc (demande de Myriam, 2026-10-04). */
.plb-input, .plb-input-suffix, .plb-card-field { background: var(--plb-white); }
.plb-input-suffix .plb-input { background: transparent; }
.plb-input-suffix .plb-input { border: 0; }

/* ── Boutons (bloc Bouton + boutons des formulaires) ─────── */
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); text-decoration: none; }
.wp-block-button:not([class*="is-style-"]) > .wp-block-button__link,
.wp-block-button.is-style-fill > .wp-block-button__link { background: var(--plb-gradient); background-size: 300% 300%; animation: plbGradientFlow 8s ease infinite; }
.plb-button { border: 2px solid transparent; }
.plb-button--sm, .wp-block-button.plb-button--sm > .wp-block-button__link { min-height: 44px; padding: 0 1rem; font-size: .88rem; }
/* Flèche après le libellé : classe « has-arrow » sur le bloc Bouton. */
.wp-block-button.has-arrow > .wp-block-button__link::after,
.plb-button--arrow::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--plb-icon-arrow) center / contain no-repeat;
  mask: var(--plb-icon-arrow) center / contain no-repeat;
  transition: transform .18s ease;
}
.wp-block-button.has-arrow > .wp-block-button__link:hover::after,
.plb-button--arrow:hover::after { transform: translateX(4px); }
:root {
  --plb-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M566.6 342.6C579.1 330.1 579.1 309.8 566.6 297.3L406.6 137.3C394.1 124.8 373.8 124.8 361.3 137.3C348.8 149.8 348.8 170.1 361.3 182.6L466.7 288L96 288C78.3 288 64 302.3 64 320C64 337.7 78.3 352 96 352L466.7 352L361.3 457.4C348.8 469.9 348.8 490.2 361.3 502.7C373.8 515.2 394.1 515.2 406.6 502.7L566.6 342.7z'/%3E%3C/svg%3E");
}
.wp-block-buttons.plb-hero__actions { gap: 1rem; }

/* ── Panneau gauche : logo, navigation, énoncé, actions ──── */
.plb-side__logo { align-self: flex-start; margin: 0 0 2rem; line-height: 0; }
.plb-side__logo img { height: 40px; width: auto; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .3)); transition: transform .5s ease; transform-origin: center; }
/* Même animation que le logo de l'application Pilot Log Book. */
.plb-side__logo a:hover img,
.plb-side__logo a:focus-visible img,
.plb-login-logo a:focus-visible img { transform: rotate(-11deg); }
.plb-side__nav.wp-block-navigation { font-size: .95rem; font-weight: 500; letter-spacing: .02em; }
.plb-side__nav .wp-block-navigation__container { gap: .1rem; }
.plb-side__nav .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .45rem 0;
  color: rgba(255, 255, 255, .75);
  transition: color .2s ease;
}
.plb-side__nav .wp-block-navigation-item__content::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
  transition: width .3s ease, opacity .3s ease;
}
.plb-side__nav .wp-block-navigation-item__content:hover,
.plb-side__nav .is-active > .wp-block-navigation-item__content,
.plb-side__nav .current-menu-item > .wp-block-navigation-item__content { color: var(--plb-white); text-decoration: none; }
.plb-side__nav .is-active > .wp-block-navigation-item__content::before,
.plb-side__nav .current-menu-item > .wp-block-navigation-item__content::before { width: 34px; opacity: 1; }
/* Sur l'accueil, tous les liens d'ancre sont « courants » pour WordPress :
   seul le lien de la section visible (classe is-active, posée par le script) est marqué. */
.home .plb-side__nav .current-menu-item:not(.is-active) > .wp-block-navigation-item__content { color: rgba(255, 255, 255, .75); }
.home .plb-side__nav .current-menu-item:not(.is-active) > .wp-block-navigation-item__content::before { width: 14px; opacity: .55; }
.home .plb-side__nav .current-menu-item:not(.is-active) > .wp-block-navigation-item__content:hover { color: var(--plb-white); }

.plb-side__actions.wp-block-buttons { gap: .75rem; }
.plb-side__footer { align-items: center; }
.plb-side__footer .wp-block-navigation { font-size: inherit; }
.plb-side__footer .wp-block-navigation__container { gap: .35rem .9rem; }
.plb-side__footer .wp-block-navigation-item__content,
.plb-side__footer .lang-switcher a { color: rgba(255, 255, 255, .75); }
.plb-side__footer .wp-block-navigation-item__content:hover,
.plb-side__footer .lang-switcher a:hover { color: var(--plb-white); }
/* Sélecteur de langue (Polylang). Depuis Polylang 3.9, le bloc est un <div
   class="pll-switcher pll-layout-vertical"> en display:block + width:100%, avec
   la liste en colonne : il prenait toute la ligne du pied et empilait les liens.
   On le rend « en ligne » pour qu'il reste à côté des liens légaux. */
.lang-switcher { margin: 0; padding: 0; list-style: none; }
.lang-switcher.pll-switcher { display: inline-flex; align-items: center; width: auto; }
.lang-switcher ul,
.lang-switcher.pll-layout-vertical ul { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0; padding: 0; list-style: none; }
.lang-switcher li { display: inline; margin: 0; }

/* Source de l'énoncé du panneau gauche : lue par le script, jamais affichée. */
.plb-side-source { display: none; }

/* ── Menu mobile : overlay natif du bloc Navigation, seuil à 1200 px ── */
.plb-side__nav .wp-block-navigation__responsive-container-open {
  min-height: 44px;
  padding: 0 .9rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--plb-radius-lg);
  color: var(--plb-white);
}
@media (max-width: 1200px) {
  .plb-side__nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .plb-side__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (min-width: 1201px) {
  .plb-side__nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none; }
  .plb-side__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: block; position: static; width: auto; background: transparent; }
}
.plb-side__nav .wp-block-navigation__responsive-container.is-menu-open {
  padding: 1.25rem;
  color: var(--plb-white);
  background: var(--plb-gradient);
  background-size: 300% 300%;
  animation: plbGradientFlow 8s ease infinite;
}
.plb-overlay { display: flex; flex-direction: column; gap: 1.5rem; min-height: calc(100dvh - 2.5rem); }
.plb-overlay__top { align-items: center; }
.plb-overlay__top .plb-side__logo { margin: 0; }
.plb-overlay .wp-block-navigation-overlay-close { color: var(--plb-white); }
.plb-overlay__nav.wp-block-navigation { font-size: 1.2rem; font-weight: 500; }
.plb-overlay__nav .wp-block-navigation-item__content { padding: .6rem 0; color: var(--plb-white); }
.plb-overlay .plb-side__footer { margin-top: auto; }

/* ── Panneau de marque (connexion, inscription) ──────────── */
.plb-panel-left--brand .plb-login-logo { margin: 0 0 1.75rem; }
.plb-panel-left--brand .plb-login-logo img { width: 190px; max-width: 100%; height: auto; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .3)); transition: transform .5s ease; }
.plb-panel-left--brand .plb-login-logo a:hover img { transform: rotate(-11deg); }
.plb-panel-left--brand .plb-login-logo { width: auto; filter: none; }

/* ── Sections et cartes en blocs ─────────────────────────── */
.plb-stat .plb-stat__title { display: block; margin-bottom: .35rem; font-weight: 700; }
.plb-stat .plb-stat__title.plb-text-animated { display: inline-block; color: transparent; }
.plb-card h3 { margin-top: 0; }
.plb-highlight h3 { font-size: 1.6rem; line-height: 1.2; }
.plb-highlight--dark h3 { color: var(--plb-white); }
.plb-cta h2 { color: var(--plb-white); }
.plb-placeholder { margin-block-start: 2.5rem; }
.plb-faq__item > :not(summary) { padding: 0 3rem 1.5rem 0; line-height: 1.7; color: var(--plb-slate); }
.plb-prose--wide { max-width: none; margin-top: 1.5rem; }
.plb-cta--wide p { max-width: none; }
.plb-contact-grid { margin-top: 2.5rem; }
.plb-contact-text .plb-partner-logo { margin: 1.5rem 0; }
.plb-form-card .wpcf7-form > p:last-of-type { margin-bottom: 0; }
.plb-partner-logo img { height: 100px; width: auto; }
.plb-partner-logo { width: auto; margin: 2rem 0 0; }

/* Démarrer : sans script (ou sous 900 px), l'image reste dans son étape ; la colonne
   de droite n'existe que lorsque le script l'a bâtie. */
.plb-onboard:not(.is-enhanced) { display: block; }
/* Style « Arrondi » du bloc Image (cœur) : même rayon que les cartes (radius-lg), pas une
   pastille. Ici et non dans theme.json : WordPress n'émet pas la variation « rounded »
   déclarée sous styles.blocks.core/image (vérifié, WP 7.1). */
.wp-block-image.is-style-rounded img { border-radius: var(--plb-radius-lg); }

/* ── Forfaits : bloc Tableau (classe « plb-pricing ») ───── */
.plb-pricing__title { margin: 3rem 0 1.25rem; font-family: var(--font-family); font-weight: 700; letter-spacing: 0; }
.wp-block-table.plb-pricing { margin: 0; overflow-x: visible; }
.wp-block-table.plb-pricing table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--plb-line);
  border-radius: var(--plb-radius-md);
  overflow: hidden;
  box-shadow: var(--wp--custom--shadow-card);
  font-size: .95rem;
}
.wp-block-table.plb-pricing :is(th, td) { padding: .85rem 1rem; border: 0; border-bottom: 1px solid var(--plb-line); vertical-align: middle; word-break: normal; }
.wp-block-table.plb-pricing tbody td:first-child { font-weight: 500; text-align: left; line-height: 1.45; }
.wp-block-table.plb-pricing tbody td:not(:first-child) { width: 9.5rem; text-align: center; font-size: .82rem; font-weight: 600; line-height: 1.35; color: var(--plb-slate); }
.wp-block-table.plb-pricing tbody td:nth-child(3) { background: rgba(47, 128, 237, .035); color: var(--plb-sky); }
/* La coche « ✓ » est le contenu de la cellule : grossie et colorée. */
.wp-block-table.plb-pricing tbody td:not(:first-child) strong { display: block; font-size: 1.25rem; line-height: 1; color: var(--plb-sky); }
.wp-block-table.plb-pricing thead { border: 0; }
.wp-block-table.plb-pricing thead th { padding: 1.25rem 1rem; text-align: center; vertical-align: bottom; background: var(--plb-tint); font-size: 1rem; font-weight: 700; color: var(--plb-sky); white-space: nowrap; }
.wp-block-table.plb-pricing thead th:first-child { text-align: left; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--plb-slate); }
.wp-block-table.plb-pricing thead th strong { display: block; margin-bottom: .2rem; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.01em; color: var(--plb-night); }
.wp-block-table.plb-pricing thead th em { font-size: .75rem; font-style: normal; font-weight: 500; color: var(--plb-slate); }
.wp-block-table.plb-pricing thead th:nth-child(3) { color: var(--plb-white); background: var(--plb-gradient); background-size: 300% 300%; animation: plbGradientFlow 8s ease infinite; }
.wp-block-table.plb-pricing thead th:nth-child(3) strong { color: var(--plb-white); }
.wp-block-table.plb-pricing thead th:nth-child(3) em { color: rgba(255, 255, 255, .85); }
/* Rangée de groupe : une seule cellule sur les trois colonnes. */
.wp-block-table.plb-pricing tbody td[colspan] {
  padding-top: 1.4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--plb-sky);
  background: var(--plb-white);
}
.wp-block-table.plb-pricing tfoot { border: 0; }
.wp-block-table.plb-pricing tfoot td { padding: 1.1rem .75rem; border-bottom: 0; text-align: center; }
.wp-block-table.plb-pricing tfoot td:nth-child(3) { background: rgba(47, 128, 237, .035); }
.wp-block-table.plb-pricing tfoot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .4rem 1rem;
  border-radius: var(--plb-radius-lg);
  background: rgba(47, 128, 237, .06);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--plb-night);
  transition: transform .18s ease, color .18s ease;
}
.wp-block-table.plb-pricing tfoot a:hover { transform: translateY(-2px); color: var(--plb-sky); }
.wp-block-table.plb-pricing tfoot td:nth-child(3) a { color: var(--plb-white); background: var(--plb-gradient); background-size: 300% 300%; animation: plbGradientFlow 8s ease infinite; box-shadow: var(--wp--custom--shadow-button); }

/* ── Formulaire de contact (Contact Form 7) ──────────────── */
.plb-form-card .wpcf7-form > p { margin-bottom: 1.1rem; }
.plb-form-card .wpcf7-form label { display: block; margin-bottom: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--plb-gray-600); }
.plb-form-card .wpcf7-form-control-wrap { display: block; width: 100%; }
.plb-form-card .wpcf7-not-valid-tip { margin-top: .3rem; font-size: .82rem; }
.plb-form-card .wpcf7-response-output { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: var(--plb-radius); }
.plb-form-card .wpcf7-submit { width: 100%; }

/* ── Inscription et connexion (formulaires rendus par plb-saas) ── */
.plb-step-title { float: left; width: 100%; margin: 0 0 1.25rem; padding: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.plb-step-title + * { clear: both; }
.plb-alert { margin-top: 1.5rem; padding: .9rem 1rem; border-left: 3px solid #b3261e; border-radius: var(--plb-radius); background: #fdf1f0; font-size: .92rem; line-height: 1.5; color: #7a1711; }
.plb-field-status:empty { display: none; }
.plb-field-status.is-ok { color: #1b6e3c; font-weight: 600; }
.plb-field-status.is-error { color: #b3261e; font-weight: 600; }
.plb-input[aria-invalid="true"], .plb-input-suffix:has([aria-invalid="true"]) { border-color: #b3261e; }
.plb-card-field { min-height: 48px; padding: .65rem .95rem; border: 1.5px solid var(--plb-ui-border); border-radius: var(--plb-radius); }
/* Champ piège : hors écran (pas display:none, que certains robots détectent). */
.plb-saas-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Page avec titre (gabarit par défaut) ────────────────── */
.plb-page-title { margin-bottom: 2rem; }

/* ── Adaptations responsives des blocs ───────────────────── */
@media (max-width: 1200px) {
  .wp-block-template-part.plb-side { flex-direction: row; align-items: center; gap: .5rem; }
  .plb-side > .plb-side__logo { flex-shrink: 0; align-self: center; margin: 0 auto 0 0; }
  .plb-side > .plb-side__logo img { height: 40px; }
  .plb-side > .plb-side__statement, .plb-side > .plb-side__footer { display: none; }
  .plb-side > .plb-side__actions { order: 2; flex-wrap: nowrap; gap: .5rem; }
  .plb-side > .plb-side__nav { order: 3; }
  .plb-side > .plb-side__actions .wp-block-button__link { min-height: 44px; padding: 0 1rem; font-size: .88rem; }
  .plb-side > .plb-side__actions .wp-block-button__link::after { display: none; }
}
@media (max-width: 560px) {
  .plb-side > .plb-side__logo img { height: 34px; }
  .plb-side > .plb-side__actions { gap: .35rem; }
  .wp-block-template-part.plb-side { padding: .75rem 1rem; }
  .plb-side > .plb-side__actions .wp-block-button__link { padding: 0 .6rem; font-size: .78rem; }
  .plb-side__nav .wp-block-navigation__responsive-container-open { padding: 0 .6rem; }
  .plb-faq__item > :not(summary) { padding-right: 0; }
  .wp-block-table.plb-pricing table { font-size: .88rem; }
  .wp-block-table.plb-pricing :is(th, td) { padding: .75rem .6rem; }
  .wp-block-table.plb-pricing tbody td:not(:first-child) { width: 5.75rem; font-size: .75rem; }
  .wp-block-table.plb-pricing thead th { padding: 1rem .5rem; font-size: .85rem; white-space: normal; }
  .wp-block-table.plb-pricing thead th strong { font-size: 1.05rem; }
  .wp-block-table.plb-pricing thead th em { font-size: .68rem; }
  .wp-block-table.plb-pricing tfoot td { padding: .9rem .35rem; }
  .wp-block-table.plb-pricing tfoot a { padding: .5rem .6rem; font-size: .75rem; line-height: 1.25; }
}

/* ── Menu mobile : bouton centré, liens légaux sans tiret ── */
.plb-side__nav .wp-block-navigation__responsive-container-open { align-items: center; justify-content: center; min-width: 44px; }
.plb-side__nav .plb-side__legal .wp-block-navigation-item__content { padding: 0; font-size: .85rem; font-weight: 400; }
.plb-side__nav .plb-side__legal .wp-block-navigation-item__content::before { content: none; }
.plb-side__logo a:focus-visible,
.plb-login-logo a:focus-visible { outline: 2px solid var(--plb-white); outline-offset: 6px; border-radius: 4px; }

/* ── Paiement : champ de carte de Stripe, états de l'étape 3 ── */
.plb-card-field--element { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.plb-pay__status:empty { display: none; }
.plb-pay__status { margin-top: 1rem; font-weight: 500; color: var(--plb-sky); }
.plb-form button:disabled { opacity: .55; cursor: not-allowed; }
.plb-form.is-finalizing .plb-form-step > :not(.plb-pay__status):not(.plb-alert):not(.plb-step-title),
.plb-form.is-finalizing .plb-progress__label { display: none; }

@media (max-width: 600px) {
  .plb-panel-left { top: 0; }
}

/* ── Mobile (audit 2026-10-27) ───────────────────────────── */
/* Champs à 16 px au moins sur mobile : sous 16 px, iOS zoome la page au focus. */
@media (max-width: 767.98px) {
  .plb-input,
  .plb-form-card :is(input, select, textarea).wpcf7-form-control:not(.wpcf7-submit) { font-size: 1rem; }
}
/* Petits écrans : carte du formulaire moins rembourrée ; suffixe de l'adresse du
   compte plus petit, pour laisser de la place à la saisie. */
@media (max-width: 419.98px) {
  .plb-form-card { padding: 1.25rem 1rem; }
  .plb-input-suffix .plb-input { padding-right: .25rem; }
  .plb-input-suffix__text { padding: 0 .75rem 0 0; font-size: .8125rem; }
}
/* Très petits écrans (320 px) : tableau des forfaits et en-tête plus serrés. */
@media (max-width: 359.98px) {
  .wp-block-template-part.plb-side { padding: .75rem; }
  .plb-side > .plb-side__logo img { height: 22px; }
  .plb-side > .plb-side__actions .wp-block-button__link { padding: 0 .45rem; font-size: .72rem; }
  .wp-block-table.plb-pricing :is(th, td) { padding: .6rem .35rem; }
  .wp-block-table.plb-pricing tbody td:first-child { font-size: .82rem; hyphens: auto; }
  .wp-block-table.plb-pricing tbody td:not(:first-child) { width: 4.5rem; }
  .wp-block-table.plb-pricing thead th { padding: .85rem .3rem; font-size: .74rem; }
  .wp-block-table.plb-pricing thead th:first-child { font-size: .62rem; letter-spacing: .04em; }
  .wp-block-table.plb-pricing thead th strong { font-size: .95rem; }
  .wp-block-table.plb-pricing tfoot td { padding: .8rem .25rem; }
  .wp-block-table.plb-pricing tfoot a { padding: .45rem .4rem; font-size: .7rem; }
}

/* ── Cibles tactiles du pied de page (Lighthouse « Touch targets », WCAG 2.5.8) ──
   Sous 1200 px : liens du pied de page, liens légaux et sélecteur de langue à
   44 px de haut ; l'espacement vertical vient de la hauteur, plus du gap. */
@media (max-width: 1200px) {
  .plb-footer .wp-block-navigation-item__content,
  .plb-footer .lang-switcher a,
  .plb-side__footer .wp-block-navigation-item__content,
  .plb-side__footer .lang-switcher a { display: inline-flex; align-items: center; min-height: 44px; }
  .plb-footer nav,
  .plb-footer .wp-block-navigation__container,
  .plb-side__footer .wp-block-navigation__container,
  .lang-switcher ul { row-gap: 0; }
  .plb-side__footer { row-gap: 0; }
  .plb-footer .lang-switcher { margin-top: 0; }
  .plb-footer .plb-year { margin-top: .25rem; }
}
