/* =====================================================================
   MasterField — Page Tarifs (chargée uniquement par pricing.html)
   Utilise les variables de styles.css (--green, --green-dark, --mint…).
   ===================================================================== */

.pricing-page {
  --pr-radius: 16px;
  --pr-border: #dbe8e4;
  --pr-soft: #eef8f4;
  --pr-ai: #6b4ce6;
  --pr-ai-soft: #f4f0ff;
  --pr-ai-border: #d9cffb;
  --pr-card-shadow: 0 10px 30px rgba(14, 72, 70, .08);
  padding-bottom: 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, #e3f4ee 0%, transparent 60%),
    linear-gradient(#fbfdfc, #f5f8f7);
}
.pricing-page h2 { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Liste à coches (réutilisée partout sur la page) ---------- */
.pricing-page .check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pricing-page .check-list li {
  position: relative; padding-left: 26px;
  color: #2c3b3a; font-size: .8rem; line-height: 1.3;
}
.pricing-page .check-list li::before {
  content: 'check';
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 20;
  font-size: .72rem;
}

/* ---------- Hero ---------- */
.pr-hero { padding: 28px 0 8px; overflow: hidden; }
.pr-hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
.pr-hero h1 { margin-bottom: 12px; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.12; }
.pr-hero h1 span { color: var(--green); }
.pr-hero-copy > p { max-width: 520px; margin-bottom: 18px; color: #2f3d3c; font-size: 1rem; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pr-chips li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border: 1px solid var(--pr-border); border-radius: 999px;
  background: #fff; box-shadow: var(--pr-card-shadow);
  color: var(--green-dark); font-size: .82rem; font-weight: 500;
}
.pr-chips .material-symbols-outlined {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--mint-light); color: var(--green); font-size: 1.15rem;
}

.pr-hero-visual {
  position: relative; height: 300px; overflow: hidden;
  border-radius: 110px 20px 20px 20px;
  background: #cfe3f1;
}
.pr-hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 30% center;
}
.pr-float {
  position: absolute; right: 18px;
  border-radius: 14px; background: #fff;
  box-shadow: 0 14px 32px rgba(14, 72, 70, .18);
}
.pr-float-kpi { top: 16px; display: grid; padding: 14px 74px 14px 18px; white-space: nowrap; line-height: 1.15; }
.pr-float-kpi small { color: #2f3d3c; font-size: .72rem; }
.pr-float-kpi strong { color: var(--green); font-size: 1.8rem; }
.pr-bars { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 4px; align-items: flex-end; }
.pr-bars i { display: block; width: 8px; border-radius: 2px; background: var(--green); }
.pr-bars i:nth-child(1) { height: 14px; } .pr-bars i:nth-child(2) { height: 22px; }
.pr-bars i:nth-child(3) { height: 30px; } .pr-bars i:nth-child(4) { height: 40px; }
.pr-float-list.check-list { top: 132px; padding: 14px 18px; gap: 10px; }

/* ---------- Bandeaux (offre de lancement / partenaire) ---------- */
.pr-banner {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 24px; align-items: center;
  margin: 20px 0 28px; padding: 16px 20px;
  border: 1px solid var(--pr-border); border-radius: var(--pr-radius);
  background: linear-gradient(90deg, #e4f5ee, #f3fbf8 60%, #e4f5ee);
}
.pr-banner p { margin: 0; color: #2f3d3c; font-size: .88rem; }
.pr-banner-icon { color: var(--green); font-size: 2rem; font-variation-settings: 'FILL' 1; }
.pr-banner-title {
  padding-right: 24px; border-right: 1px solid #b9d6cc;
  color: var(--green-dark); font-size: .95rem; font-weight: 700; white-space: nowrap;
}
.pr-banner .button { justify-self: end; min-height: 46px; border-radius: 10px; }

/* ---------- Cartes des packs ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 22px 20px;
  --plan-accent: var(--green);   /* couleur de l'icône / du bouton  */
  --plan-tint: #e5f5ee;          /* teinte de l'en-tête de la carte */
  border: 1px solid var(--pr-border); border-radius: var(--pr-radius);
  background: linear-gradient(var(--plan-tint), #fff 175px);
  box-shadow: var(--pr-card-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(14, 72, 70, .14); }
.plan-head { text-align: center; }
.plan-icon { position: relative; display: inline-flex; margin-bottom: 4px; color: var(--plan-accent); }
.plan-icon .material-symbols-outlined { font-size: 2.2rem; font-variation-settings: 'FILL' 1; }
.plan-tag {
  position: absolute; left: calc(100% + 10px); top: 4px;
  padding: 2px 9px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 700;
}
.plan-card h2 { color: var(--green-dark); font-size: 1.35rem; font-weight: 700; }
.plan-tagline { min-height: 2.6em; margin: 4px 0 0; color: var(--green-dark); font-size: .85rem; line-height: 1.3; }
.plan-price { margin: 16px 0 6px; color: var(--green-dark); text-align: center; line-height: 1; }
.plan-price strong { font-size: 2.1rem; font-weight: 700; }
.plan-currency { font-size: 1.15rem; font-weight: 700; }
.plan-period { color: #4b5a59; font-size: .82rem; }
.plan-quota { margin: 0 0 18px; color: var(--green-dark); text-align: center; font-size: .88rem; line-height: 1.35; }
.plan-quota b { font-weight: 700; }
.plan-card .check-list { margin-bottom: 22px; }
.plan-cta { width: 100%; min-height: 46px; margin-top: auto; border-radius: 10px; }
.plan-cta.button-outline { border-color: var(--plan-accent); color: var(--plan-accent); }

/* Pack recommandé */
.plan-card.is-featured { border: 2px solid var(--green); }
.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  padding: 5px 18px; border-radius: 8px;
  background: var(--green); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap;
}

/* Pack bleu (Premium) */
.plan-card.is-blue { --plan-accent: #2563c9; --plan-tint: #e7effb; }

/* Pack IA (Platinum) */
.plan-card.is-ai { --plan-accent: var(--pr-ai); --plan-tint: #efe9ff; border-color: var(--pr-ai-border); }
.plan-card.is-ai .plan-price strong,
.plan-card.is-ai .plan-currency { color: var(--pr-ai); }

/* ---------- Enterprise ---------- */
.enterprise-band {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 28px; align-items: center;
  margin-top: 20px; padding: 0 24px 0 0; overflow: hidden;
  border: 1px solid #d7e3f2; border-radius: var(--pr-radius);
  background: linear-gradient(90deg, #eaf2fb, #f5f9fd);
}
.enterprise-visual {
  display: block; align-self: stretch;
  width: 190px; height: 100%; min-height: 104px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.enterprise-copy, .enterprise-band .enterprise-perks { padding-block: 16px; }
.enterprise-copy h2 { color: var(--green-dark); font-size: 1.5rem; }
.enterprise-copy p { margin: 2px 0 0; color: var(--green-dark); font-size: .9rem; }
.enterprise-perks { padding-left: 28px !important; border-left: 1px solid #c9d6e6; }
.enterprise-cta { min-height: 46px; border-radius: 10px; }

/* ---------- Comparatif ---------- */
.pr-section-head { margin: 56px 0 22px; text-align: center; }
.pr-section-head h2 { font-size: 1.75rem; }
.pr-section-head p { margin: 4px 0 0; color: var(--green-dark); }

.pr-compare-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; align-items: start; }
.pr-compare-layout > * { min-width: 0; }
.cmp-scroll {
  overflow-x: auto;
  border: 1px solid var(--pr-border); border-radius: 12px;
  background: #fff; box-shadow: var(--pr-card-shadow);
}
.cmp-scroll:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.cmp-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .76rem; }
.cmp-table thead th {
  padding: 10px 8px; background: var(--green-dark); color: #fff;
  font-size: .78rem; font-weight: 600; text-align: center; white-space: nowrap;
}
.cmp-table thead th:first-child { text-align: left; padding-left: 14px; }
.cmp-table thead th + th { border-left: 1px solid rgba(255,255,255,.2); }
.cmp-table tbody th {
  padding: 5px 10px 5px 14px; color: #2c3b3a; font-weight: 400; text-align: left;
}
.cmp-table td { width: 13%; text-align: center; border-left: 1px solid #edf2f1; }
.cmp-table tbody tr:nth-child(even) { background: #fafcfb; }
.cmp-table .cmp-group-start > * { border-top: 1px solid #cfdcd8; }
.cmp-feature { display: flex; align-items: center; gap: 8px; }
.cmp-icon.material-symbols-outlined { color: var(--green-dark); font-size: 1rem; width: auto; min-width: 0; }
.cmp-yes .material-symbols-outlined {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .7rem;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 20;
}
.cmp-no { color: #9aa5a3; }

/* Sticky 1re colonne sur mobile quand le tableau défile */
.cmp-table tbody th, .cmp-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
.cmp-table tbody th { background: inherit; }
.cmp-table tbody tr { background: #fff; }
.cmp-table tbody tr:nth-child(even) th { background: #fafcfb; }

/* Carte crédits IA */
.pr-ai-card {
  position: relative; overflow: hidden;
  padding: 22px 20px 24px;
  border: 1px solid var(--pr-border); border-radius: var(--pr-radius);
  background: linear-gradient(160deg, #e7f6f0, #f4fbf8);
}
.pr-ai-card h3 { margin-bottom: 14px; font-size: 1rem; }
.pr-ai-card p { color: #2f3d3c; font-size: .8rem; line-height: 1.45; }
.pr-ai-card .check-list { margin-bottom: 22px; }
.pr-ai-card { padding-bottom: 170px; }
.pr-ai-card .button { position: relative; z-index: 1; min-height: 42px; padding: 0 16px; border-radius: 10px; font-size: .78rem; }
.pr-ai-robot {
  position: absolute; right: 14px; 
  bottom: -78px;
  z-index: 1;
  width: 135px;
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(14, 72, 70, .18));
}

/* ---------- FAQ + Démo ---------- */
.pr-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.pr-faq-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 24px; border: 1px solid #dfe6f1; border-radius: var(--pr-radius); background: #f2f5fb;
}
.pr-faq-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #0d2f57; color: #fff; font-size: 1.6rem; font-weight: 700;
}
.pr-faq-card h2 { margin-bottom: 4px; font-size: 1.1rem; }
.pr-faq-card p { margin: 0; color: #2f3d3c; font-size: .76rem; line-height: 1.4; }
.pr-faq-card .button { min-height: 42px; padding: 0 16px; border-radius: 10px; font-size: .78rem; white-space: nowrap; }

.pr-demo-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  position: relative; overflow: hidden;
  padding: 24px; border-radius: var(--pr-radius);
  background: linear-gradient(120deg, var(--green-dark), #0c5f58);
  color: #fff; text-decoration: none;
  transition: box-shadow .2s ease;
}
.pr-demo-card:hover { box-shadow: 0 14px 30px rgba(14, 72, 70, .3); }
.pr-demo-card:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.pr-demo-card strong { display: block; font-size: 1.1rem; }
.pr-demo-card small { color: #cde9e1; font-size: .8rem; }
.pr-demo-play { width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; font-size: 1.6rem !important; }
.pr-demo-card > :not(.pr-demo-visual) { position: relative; z-index: 1; }
.pr-demo-visual {
  position: absolute; top: 0; right: 0; width: 42%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
  opacity: .55;
}
.pr-demo-arrow { font-size: 1.8rem !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .pr-compare-layout { grid-template-columns: minmax(0, 1fr); }
  /* Encadré IA : pleine largeur, texte à gauche, robot à droite */
  .pr-ai-card { padding: 26px 200px 26px 28px; }
  .pr-ai-card p { max-width: 520px; }
  .pr-ai-robot { top: 50%; bottom: auto; right: 48px; width: 110px; transform: translateY(-50%); }
  .enterprise-band { grid-template-columns: auto 1fr auto; row-gap: 0; }
  .enterprise-perks { grid-column: 2 / -1; padding-left: 0 !important; border-left: 0; }
  .enterprise-visual { grid-row: span 2; }
  .enterprise-cta { grid-column: 3; grid-row: 1; }
}

@media (max-width: 860px) {
  .pr-hero-inner { grid-template-columns: 1fr; }
  .pr-hero-visual { height: 260px; }
  .pr-banner { grid-template-columns: auto 1fr; gap: 14px; }
  .pr-banner-title { padding-right: 0; border-right: 0; white-space: normal; }
  .pr-banner p { grid-column: 1 / -1; }
  .pr-banner .button { grid-column: 1 / -1; justify-self: stretch; }
  .pr-bottom { grid-template-columns: 1fr; }
  .pr-ai-robot {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 1;
    width: 135px;
    height: auto;
    filter: drop-shadow(0 8px 10px rgba(14, 72, 70, .18));
  }
}

@media (max-width: 640px) {
  .pr-hero { padding-top: 20px; }
  .pr-hero-visual { height: 220px; border-radius: 80px 18px 18px 18px; }
  .pr-float-kpi { top: 14px; right: 10px; padding: 10px 70px 10px 14px; }
    /* Checklist : visible sur mobile, en bas à droite de la photo, en plus compact */
  .pricing-page .pr-float-list { top: auto; bottom: 12px; right: 10px; padding: 10px 12px; gap: 6px; }
  .pricing-page .pr-float-list li { padding-left: 21px; font-size: .72rem; }
  .pricing-page .pr-float-list li::before { width: 15px; height: 15px; font-size: .62rem; }

  .cmp-table tbody th { width: 170px; min-width: 170px; font-size: .72rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .enterprise-band { grid-template-columns: 1fr; gap: 0; padding: 0 20px 20px; text-align: left; }
  .enterprise-visual { grid-row: auto; width: calc(100% + 40px); max-width: none; height: 130px; margin-inline: -20px; clip-path: none; }
  .enterprise-cta { grid-column: auto; grid-row: auto; margin-top: 6px; }
  .pr-demo-visual { width: 60%; opacity: .3; }
  .enterprise-perks { grid-column: auto; }
  .pr-faq-card, .pr-demo-card { grid-template-columns: auto 1fr; }
  .pr-faq-card .button { grid-column: 1 / -1; }
  .pr-ai-robot {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 1;
    width: 135px;
    height: auto;
    filter: drop-shadow(0 8px 10px rgba(14, 72, 70, .18));
  }
  .pr-ai-card { padding: 22px 20px 170px; }
  .pr-ai-robot { top: auto; bottom: 10px; right: 14px; width: 92px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card, .plan-card:hover { transition: none; transform: none; }
}

/* ---------- Brillance verte sur les cartes des packs ---------- */
.plan-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg,
    transparent 35%,
    rgba(0, 138, 94, .16) 50%,   /* --green de MasterField, transparent */
    transparent 65%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: planShine 6s ease-in-out infinite;
}
.plan-card:nth-child(2)::before { animation-delay: 1.5s; }
.plan-card:nth-child(3)::before { animation-delay: 3s; }
.plan-card:nth-child(4)::before { animation-delay: 4.5s; }

@keyframes planShine {
  0%        { background-position: 150% 0; }
  25%, 100% { background-position: -50% 0; } /* balayage rapide puis pause */
}

@media (prefers-reduced-motion: reduce) {
  .plan-card::before { animation: none; background: none; }
}

/* ---------- Comparatif : surbrillance ligne + colonne au survol ---------- */
/* box-shadow inset = voile transparent par-dessus le fond (garde la 1re colonne sticky opaque) */
.cmp-table tbody tr:hover > *,
.cmp-table tbody .is-col-hover { box-shadow: inset 0 0 0 999px rgba(185, 221, 211, .35); } /* --mint */
.cmp-table tbody td:hover { box-shadow: inset 0 0 0 999px rgba(185, 221, 211, .75); }     /* case pointée */
.cmp-table thead th.is-col-hover { background: var(--green); }
.cmp-table td, .cmp-table th { transition: box-shadow .12s ease, background-color .12s ease; }

/* ---------- Hero : animation des icônes des 3 badges ---------- */
/* Uniquement translate/rotate + couleurs : la taille de l'icône ne change jamais */
.pr-chips .material-symbols-outlined {
  transition: background-color .25s ease, color .25s ease, font-variation-settings .25s ease;
}
@keyframes chipIconWiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  30%      { transform: translateY(-4px) rotate(-10deg); }
  55%      { transform: translateY(0) rotate(8deg); }
  75%      { transform: rotate(-4deg); }
}
@keyframes chipIconFlash {
  0%, 100% { background-color: var(--mint-light); color: var(--green); }
  35%, 65% { background-color: var(--green); color: #fff; }
}

/* Ordinateur (souris) : animation au survol du badge */
@media (hover: hover) {
  .pr-chips li:hover .material-symbols-outlined {
    animation: chipIconWiggle .7s ease;
    background-color: var(--green);
    color: #fff;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
  }
}

/* Mobile / tactile (pas de survol) : animation une fois au chargement, en cascade */
@media (hover: none) {
  .pr-chips .material-symbols-outlined {
    animation: chipIconWiggle .8s ease .4s both, chipIconFlash 1.4s ease .4s both;
  }
  .pr-chips li:nth-child(2) .material-symbols-outlined { animation-delay: .7s, .7s; }
  .pr-chips li:nth-child(3) .material-symbols-outlined { animation-delay: 1s, 1s; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-chips .material-symbols-outlined,
  .pr-chips li:hover .material-symbols-outlined { animation: none; }
}
/* Bandeau lancement : étoile collée au titre + phrase sur une seule ligne */
.pr-banner { column-gap: 14px; padding: 14px 18px; }
.pr-banner-icon { margin-right: -4px; }
.pr-banner-title { margin-left: 0; padding-right: 14px; }
.pr-banner p { font-size: .85rem; white-space: nowrap; }
@media (max-width: 1180px) {
  .pr-banner p { white-space: normal; }
}

/* ---------- Hero : barres du KPI « CA réalisé » qui apparaissent une à une ---------- */
.pr-bars i {
  opacity: 0;
  transform-origin: bottom;
  animation: barFadeIn .5s ease-out forwards;
}
.pr-bars i:nth-child(1) { animation-delay: .4s; }
.pr-bars i:nth-child(2) { animation-delay: .7s; }
.pr-bars i:nth-child(3) { animation-delay: 1s; }
.pr-bars i:nth-child(4) { animation-delay: 1.3s; }

@keyframes barFadeIn {
  from { opacity: 0; transform: scaleY(.4); }
  to   { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pr-bars i { opacity: 1; animation: none; }
}
/* ---------- Hero : checklist qui apparaît ligne par ligne, puis la coche « valide » ---------- */
.pr-float-list li {
  opacity: 0;
  animation: checkItemIn .45s ease-out forwards;
}
.pr-float-list li::before {
  transform: scale(0);
  animation: checkPop .35s cubic-bezier(.34, 1.56, .64, 1) forwards; /* léger rebond */
}
.pr-float-list li:nth-child(1), .pr-float-list li:nth-child(1)::before { animation-delay: .9s; }
.pr-float-list li:nth-child(2), .pr-float-list li:nth-child(2)::before { animation-delay: 1.2s; }
.pr-float-list li:nth-child(3), .pr-float-list li:nth-child(3)::before { animation-delay: 1.5s; }

@keyframes checkItemIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes checkPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pr-float-list li { opacity: 1; animation: none; }
  .pr-float-list li::before { transform: none; animation: none; }
}