/* Karka — styles propres à templates/pro/landing.html.twig.
 * Sortis du gabarit le 11/09/2026 (audit SEO) : servis par AssetMapper avec
 * empreinte et cache long, au lieu d'être réinjectés dans chaque réponse. Le
 * <link> reste à la place exacte de l'ancien <style> : même ordre de cascade. */

/* ══ Landing Pro — direction « plan d'architecte » ══
   Tout est préfixé .pro-/.pl- pour ne pas heurter le design system global.
   Les couleurs de cote sont locales à la page. */
.pro {
  --pl-line:  rgba(99,102,241,0.30);   /* lignes de cote */
  --pl-tick:  rgba(99,102,241,0.55);   /* extrémités de cote */
  --pl-ink:   rgba(12,12,20,0.55);     /* traits de parcelle */
  --pl-fill:  rgba(99,102,241,0.06);   /* remplissage bâti */
}

/* ── Référence de planche (remplace .sec-label) ── */
.pro-ref { display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--v); }
.pro-ref::before { content: ''; width: 24px; height: 1px; background: var(--v); }
.pro-ref b { color: var(--ink-35); font-weight: 500; }
.pro-ref.is-center { justify-content: center; }

/* ── Hero ── */
.pro-hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: var(--white); }
.pro-hero .container { position: relative; z-index: 1; }
.pro-hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 48px; align-items: center; }
.pro-hero-copy .hero-h1 { font-size: clamp(40px, 5.1vw, 62px); line-height: 1.0; letter-spacing: -2.8px; margin: 22px 0 20px; }
/* la question = le propos du hero → indigo */
.pro-h1-q { color: var(--v); }
.pro-hero-copy .hero-subtitle { margin: 0 0 28px; max-width: 500px; }
.pro-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.pro-microstats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.pro-microstat { display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-60); letter-spacing: 0.2px; }
.pro-microstat::before { content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--v); opacity: 0.5; }
.pro-microstat b { color: var(--v-txt); font-weight: 600; }

/* ── La planche (sheet) du hero ── */
.pro-sheet { position: relative; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  overflow: hidden; }
.pro-sheet-head, .pro-sheet-foot { display: flex; align-items: stretch; }
.pro-sheet-head { border-bottom: 1px solid var(--border); }
.pro-sheet-head > div { padding: 9px 14px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink-35); }
.pro-sheet-head .pl-title { color: var(--v); flex: 1; border-right: 1px solid var(--border); }
.pro-draw { display: block; width: 100%; height: auto; background:
  repeating-linear-gradient(0deg, transparent 0 19px, rgba(99,102,241,0.05) 19px 20px),
  repeating-linear-gradient(90deg, transparent 0 19px, rgba(99,102,241,0.05) 19px 20px); }
.pro-sheet-foot { border-top: 1px solid var(--border); }
.pro-sheet-foot > div { flex: 1; padding: 10px 14px; }
.pro-sheet-foot > div + div { border-left: 1px solid var(--border); }
.pro-sheet-foot .pl-k { display: block; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-35); margin-bottom: 2px; }
.pro-sheet-foot .pl-v { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.pro-sheet-foot .pl-v.is-ok { color: var(--green); }

/* SVG helpers */
.pl-txt { font-family: var(--font-mono); fill: var(--v); }
.pl-txt.dim { fill: var(--ink-35); }
.pl-cote { stroke: var(--pl-line); stroke-width: 1; }
.pl-tick { stroke: var(--pl-tick); stroke-width: 1; }

/* ── Timeline de cote (Comment ça marche) ── */
.pro-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.pro-step { position: relative; padding-top: 30px; }
.pro-seg { position: absolute; top: 12px; left: 0; right: 0; height: 1px; background: var(--pl-line); }
.pro-seg::before, .pro-seg::after { content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--pl-tick); }
.pro-seg::before { left: 0; } .pro-seg::after { right: 0; }
.pro-seg span { position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--white); padding: 0 10px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1.2px; color: var(--v); white-space: nowrap; }
.pro-step h3 { font-family: var(--font-head); font-size: 18px; font-weight: 800; margin: 4px 0 8px; letter-spacing: -0.4px; }
.pro-step p { font-size: 14px; color: var(--ink-60); line-height: 1.6; }

/* ── Cartes « notes de plan » (Avantages) ── */
.pro-note { position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 24px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.pro-note:hover { border-color: var(--v-border); box-shadow: 0 10px 34px rgba(99,102,241,0.10); transform: translateY(-2px); }
/* équerres de cote aux coins */
.pro-note::before, .pro-note::after { content: ''; position: absolute; width: 9px; height: 9px; opacity: 0; transition: opacity .18s; }
.pro-note::before { top: 10px; left: 10px; border-top: 1.5px solid var(--v); border-left: 1.5px solid var(--v); }
.pro-note::after  { bottom: 10px; right: 10px; border-bottom: 1.5px solid var(--v); border-right: 1.5px solid var(--v); }
.pro-note:hover::before, .pro-note:hover::after { opacity: 0.55; }
.pro-note-idx { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; color: var(--ink-35); }
.pro-note-ico { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--v-soft);
  display: flex; align-items: center; justify-content: center; margin: 14px 0 14px; }
.pro-note h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.pro-note p { font-size: 13.5px; color: var(--ink-60); line-height: 1.6; }

/* ── Le dossier : mini-planche + liste ── */
.pro-dossier-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.pro-a4 { position: relative; width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 1 / 1.414;
  background: var(--white); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--sh-lg);
  overflow: hidden; }
.pro-a4-tab { position: absolute; top: 18px; right: -1px; background: var(--v); color: #fff;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; padding: 4px 12px 4px 10px;
  border-radius: 4px 0 0 4px; }
.pro-a4-head { padding: 16px 16px 10px; border-bottom: 1px solid var(--border); }
.pro-a4-head .k { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-35); }
.pro-a4-head .t { font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: -0.4px; margin-top: 3px; }
.pro-a4-cart { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.pro-a4-cart > div { flex: 1; padding: 7px 9px; }
.pro-a4-cart > div + div { border-left: 1px solid var(--border); }
.pro-a4-cart .k { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-35); }
.pro-a4-cart .v { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink); margin-top: 1px; }
.pro-a4-cart .v.is-ok { color: var(--green); }

.pro-planches { list-style: none; }
.pro-planche { display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--border); }
.pro-planche:first-child { border-top: none; }
.pro-planche .num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--v); letter-spacing: 1px; flex-shrink: 0; width: 26px; }
.pro-planche h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 2px; }
.pro-planche p { font-size: 13px; color: var(--ink-60); line-height: 1.5; }

/* ── Aperçu des 8 pages du dossier ── */
.pro-pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
.pro-pg-sheet { position: relative; aspect-ratio: 297 / 210; background: var(--white);
  border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--sh-md); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.pro-pg:hover .pro-pg-sheet { transform: translateY(-3px); border-color: var(--v-border); box-shadow: var(--sh-lg); }
.pro-pg-top { display: flex; align-items: center; justify-content: space-between; height: 20px;
  padding: 0 9px; border-bottom: 1px solid var(--border); background: var(--off); }
.pro-pg-brand { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono);
  font-size: 7px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-35); }
.pro-pg-brand i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--v); }
.pro-pg-no { font-family: var(--font-mono); font-size: 7px; color: var(--v); letter-spacing: 0.6px; }
.pro-pg-body { position: absolute; top: 20px; left: 0; right: 0; bottom: 0; }
.pro-pg-body svg { display: block; width: 100%; height: 100%; }
.pro-pg-cap { margin-top: 12px; }
.pro-pg-cap .n { font-family: var(--font-mono); font-size: 10px; color: var(--v); letter-spacing: 0.6px; }
.pro-pg-cap h4 { font-family: var(--font-head); font-size: 13.5px; font-weight: 700; letter-spacing: -0.3px; margin: 3px 0 3px; }
.pro-pg-cap p { font-size: 12px; color: var(--ink-60); line-height: 1.45; }
.pg-txt { font-family: var(--font-mono); fill: var(--ink-35); }
.pg-txt.v { fill: var(--v); }
@media (max-width: 900px) { .pro-pages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pro-pages { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* ── Tarifs : cartouches ── */
.pro-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.pro-plan { position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.pro-plan-head { padding: 22px 26px 20px; border-bottom: 1px solid var(--border); }
/* rangée code + pastille : hauteur fixe pour aligner les 3 en-têtes */
.pro-plan-code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.pro-plan-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-35); }
.pro-plan-flag { display: inline-flex; align-items: center; background: var(--v); color: #fff;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
/* rangée prix : hauteur fixe → les listes de features démarrent au même niveau */
.pro-plan-price { margin: 14px 0 6px; min-height: 46px; display: flex; align-items: baseline; }
.pro-plan-price .amt { font-family: var(--font-head); font-size: 42px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.pro-plan-price .amt.sm { font-size: 30px; letter-spacing: -1px; }
.pro-plan-price .per { font-size: 15px; color: var(--ink-60); }
/* Tarif normal barré, puis la mention de lancement sous le prix. Le barré est
   gris et non rouge : c'est une référence, pas une alerte. */
.pro-plan-price .was { font-family: var(--font-mono); font-size: 16px; color: var(--ink-35);
  text-decoration: line-through; text-decoration-thickness: 1.5px; margin-right: 9px; }
.pro-plan-launch { display: inline-block; margin-bottom: 6px; padding: 3px 10px;
  background: var(--green-bg); color: var(--green); border: 1px solid rgba(22,163,74,0.18);
  border-radius: 100px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.6px; text-transform: uppercase; }
.pro-plan-sub { font-size: 12.5px; color: var(--ink-35); }
.pro-plan-body { flex: 1; padding: 24px 26px; display: flex; flex-direction: column; gap: 13px; }
/* Icône en position absolue (pas de flex-gap) : sinon le gap s'insère entre chaque
   fragment inline (texte + <strong>) et crée une espace parasite dans le libellé. */
.pro-feat { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; }
.pro-feat.off { color: var(--ink-35); }
.pro-feat svg { position: absolute; left: 0; top: 3px; }
.pro-plan-foot { padding: 4px 26px 26px; }
.pro-plan--feat { border: 2px solid var(--v); box-shadow: var(--sh-md); }
.pro-plan--feat .pro-plan-head { background: var(--v-soft); }
.pro-plan--feat .pro-plan-code { color: var(--v); }
/* ligne de bascule unité → forfait (hauteur fixe : aligne les 3 en-têtes) */
.pro-plan-hint { min-height: 15px; margin-top: 7px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: -0.2px; color: var(--v); }

/* séparateur « ou en illimité » */
.pro-plans-label { display: flex; align-items: center; gap: 14px; max-width: 980px; margin: 0 auto 24px; }
.pro-plans-label::before, .pro-plans-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pro-plans-label span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-35); white-space: nowrap; }

/* ── CTA final ── */
.pro-final { position: relative; overflow: hidden; padding: 68px 0;
  background: linear-gradient(135deg, var(--v), var(--v-mid)); }
.pro-final-grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, black 10%, transparent 75%); }
.pro-final .container { position: relative; z-index: 1; }

/* ── Animations (respectent prefers-reduced-motion) ── */
@media (prefers-reduced-motion: no-preference) {
  .pro-hero-copy > * { opacity: 0; animation: pro-rise .6s cubic-bezier(.2,.7,.3,1) forwards; }
  .pro-hero-copy > *:nth-child(1) { animation-delay: .04s; }
  .pro-hero-copy > *:nth-child(2) { animation-delay: .10s; }
  .pro-hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .pro-hero-copy > *:nth-child(4) { animation-delay: .22s; }
  .pro-hero-copy > *:nth-child(5) { animation-delay: .28s; }
  .pro-sheet { opacity: 0; animation: pro-fade .8s ease .24s forwards; }
  .pl-anim { stroke-dasharray: 520; stroke-dashoffset: 520; animation: pl-draw 1.5s ease .5s forwards; }
}
@keyframes pro-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pro-fade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pro-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .pro-dossier-grid { grid-template-columns: 1fr; gap: 36px; }
  .pro-steps { grid-template-columns: 1fr; gap: 8px; }
  .pro-step { padding-top: 24px; padding-left: 22px; }
  .pro-seg { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .pro-seg::before, .pro-seg::after { top: auto; left: -4px; width: 9px; height: 1px; }
  .pro-seg::before { top: 0; } .pro-seg::after { bottom: 0; top: auto; }
  .pro-seg span { top: 0; left: 6px; transform: none; }
  .pro-plans { grid-template-columns: 1fr; max-width: 420px; }
  .pro-plans-label { max-width: 420px; }
}
