/*
 * Page Prix (blocs collés dans la section "Paragraphes").
 * Tout est préfixé .prix- : aucun impact sur les autres pages.
 * Fichier chargé automatiquement avec les autres css/builder/*.css.
 */

.prix-grid {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 992px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.prix-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

/* Carte : icône + corps */
.prix-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  border: 1px solid #e6e9f2;
  border-top: 4px solid #5078f0;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 12px 32px rgba(16, 24, 48, 0.06);
  text-align: left;
  color: #101830;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.prix-card:hover,
.prix-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 24, 48, 0.14);
  border-color: #5078f0;
}

.prix-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  margin: 0 0 18px 0;
  border-radius: 14px;
  background: rgba(80, 120, 240, 0.12);
  color: #5078f0;
  transition: transform 0.25s ease;
}

/* Le plugin svg-automotion applique "svg * { opacity: 0 }" à tout le site : on le neutralise ici. */
.prix-block svg,
.prix-block svg * {
  opacity: 1 !important;
}

.prix-card:hover .prix-ico {
  transform: scale(1.08) rotate(-4deg);
}

.prix-body {
  min-width: 0;
}

.prix-t {
  display: block;
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #101830;
}

.prix-p {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #101830;
}

.prix-note {
  display: block;
  margin: 14px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #55607a;
}

.prix-list {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #101830;
}

/* Pastilles */
.prix-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px 0;
}

.prix-pill {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(80, 120, 240, 0.1);
  color: #3b5fd8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.prix-pill--solid {
  background: #5078f0;
  color: #fff;
}

/* Variante fond sombre */
.prix-card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: #5078f0;
  box-shadow: none;
  color: #e6e9f2;
}

.prix-card--dark:hover,
.prix-card--dark:focus-visible {
  border-color: #5078f0;
  box-shadow: 0 0 0 1px #5078f0, 0 18px 50px rgba(80, 120, 240, 0.28);
}

.prix-card--dark .prix-ico {
  background: rgba(80, 120, 240, 0.24);
  color: #9db3f7;
}

.prix-card--dark .prix-t,
.prix-card--dark strong {
  color: #ffffff !important;
}

.prix-card--dark .prix-p,
.prix-card--dark .prix-list,
.prix-card--dark .prix-list li {
  color: #e6e9f2 !important;
}

.prix-card--dark .prix-note {
  color: #b8c2de !important;
}

.prix-card--dark .prix-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Bloc en deux colonnes (texte + image) */
.prix-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.prix-split .section__title,
.prix-split .section__title p {
  text-align: left;
  margin-left: 0;
}

.prix-split .section__title {
  margin-bottom: 8px;
}

.prix-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #e6e9f2;
}

.prix-row:last-child {
  border-bottom: 0;
}

.prix-row .prix-ico {
  width: 46px;
  height: 46px;
  margin: 0;
}

.prix-row .prix-t {
  margin-bottom: 4px;
  font-size: 18px;
}

.prix-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 24px;
  box-sizing: border-box;
  border-radius: 24px;
  background: linear-gradient(135deg, #101830 0%, #202f77 100%);
  color: #e6e9f2;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 18px 40px rgba(16, 24, 48, 0.14);
}

.prix-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: -24px;
  max-width: none;
}

/* Tableau comparatif */
.prix-table-wrap {
  width: 100%;
  max-width: 992px;
  margin: 0 auto;
  overflow-x: auto;
}

.prix-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.prix-table th,
.prix-table td {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
  color: #e6e9f2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.prix-table th {
  font-weight: 700;
  color: #ffffff;
  border-bottom-width: 2px;
}

.prix-table td:first-child {
  font-weight: 700;
  color: #ffffff;
}

.prix-table .prix-us {
  background: rgba(80, 120, 240, 0.22);
  color: #ffffff;
  font-weight: 600;
}

/* Panneau chiffre clé */
.prix-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 992px;
  margin: 0 auto 32px auto;
  padding: clamp(24px, 5vw, 56px);
  border-radius: 28px;
  background: linear-gradient(135deg, #101830 0%, #202f77 100%);
  text-align: left;
}

.prix-panel__lead {
  display: block;
  margin: 0 0 14px 0;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff !important;
}

.prix-panel__text,
.prix-panel__src {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #e6e9f2 !important;
}

.prix-panel__fig {
  display: block;
  margin: 0 0 14px 0;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #ffffff !important;
}

/* Cartes de résultats */
.prix-kpi__n {
  display: block;
  margin: 0 0 14px 0;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #101830;
}

.prix-kpi .prix-p {
  margin-bottom: 18px;
}

.prix-kpi__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.prix-kpi:hover .prix-kpi__arrow {
  transform: translateX(5px);
}

.prix-block .prix-center {
  margin: 32px 0 0 0 !important;
  text-align: center;
}

.prix-cta {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.prix-cta .prix-pills {
  justify-content: center;
}

@media (hover: none) {
  .prix-card:hover,
  .prix-card:hover .prix-ico,
  .prix-kpi:hover .prix-kpi__arrow {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prix-card,
  .prix-ico,
  .prix-kpi__arrow {
    transition: none;
  }

  .prix-card:hover,
  .prix-card:hover .prix-ico,
  .prix-kpi:hover .prix-kpi__arrow {
    transform: none;
  }
}

/* Mobile : cartes compactes, icône à gauche, moins de marges */
@media (max-width: 767px) {
  .builder:has(.prix-block) {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .prix-block .section__title {
    margin-bottom: 18px;
  }

  .prix-block .section__title h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .prix-block .section__title p {
    font-size: 15px;
  }

  .prix-grid,
  .prix-grid--2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .prix-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 16px 16px;
    border-radius: 16px;
    border-top-width: 3px;
  }

  .prix-ico {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 12px;
  }

  .prix-t {
    margin-bottom: 6px;
    font-size: 17px;
  }

  .prix-p,
  .prix-list {
    font-size: 15px;
    line-height: 1.5;
  }

  .prix-note {
    margin-top: 10px;
    font-size: 13px;
  }

  .prix-pills {
    gap: 6px;
    margin-bottom: 10px;
  }

  .prix-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prix-row {
    padding: 14px 0;
  }

  .prix-media {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .prix-table th,
  .prix-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .prix-panel {
    gap: 18px;
    margin-bottom: 12px;
    border-radius: 20px;
  }

  .prix-panel__fig {
    margin-bottom: 8px;
  }

  .prix-kpi {
    grid-template-columns: 112px 1fr;
    align-items: center;
  }

  .prix-kpi__n {
    margin: 0;
    font-size: 32px;
  }

  .prix-kpi .prix-p {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .prix-block .prix-center {
    margin-top: 20px !important;
  }
}

/* Liens dans les cartes et pastilles */
.prix-card a:not(.prix-card) {
  color: #3b5fd8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prix-card--dark a:not(.prix-card) {
  color: #9db3f7 !important;
}

a.prix-pill {
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

a.prix-pill:hover,
a.prix-pill:focus-visible {
  background: #5078f0;
  color: #fff !important;
}

.prix-card--dark a.prix-pill {
  color: #ffffff !important;
}

.prix-more {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #5078f0;
}

.prix-card--dark .prix-more {
  color: #9db3f7 !important;
}

a.prix-card:hover .prix-kpi__arrow {
  transform: translateX(5px);
}

.prix-grid--4 {
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.prix-panel .prix-pills {
  margin-bottom: 12px;
}

.prix-panel .prix-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.prix-panel__src a {
  color: #9db3f7 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prix-subtitle {
  margin: 56px 0 24px 0;
}

@media (max-width: 767px) {
  .prix-more {
    margin-top: 8px;
  }

  .prix-subtitle {
    margin: 32px 0 16px 0;
  }
}

/* Liens "À lire aussi" (maillage discret en bas de page) */
.prix-links {
  margin: 40px 0 0 0;
}

.prix-links__t {
  display: block;
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8c2de !important;
}

.prix-links .prix-pills {
  justify-content: center;
  margin: 0;
}

.prix-links .prix-pill {
  padding: 9px 16px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.prix-links a.prix-pill:hover,
.prix-links a.prix-pill:focus-visible {
  background: #5078f0;
}

@media (max-width: 767px) {
  .prix-links {
    margin-top: 28px;
  }
}

/* Comparatif : colonne MaPS mise en avant, autres offres en retrait */
.prix-table th .prix-pill {
  display: inline-block;
  margin: 0 0 8px 0;
}

.prix-pill--muted {
  background: rgba(255, 255, 255, 0.1);
  color: #b8c2de;
}

.prix-th__sub {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.prix-table th.prix-them,
.prix-table td.prix-them {
  color: #aab4cf;
}

.prix-table td.prix-them {
  font-weight: 400;
}

.prix-table th.prix-them .prix-th__sub {
  color: #aab4cf;
}

.prix-table th.prix-us,
.prix-table td.prix-us {
  background: rgba(80, 120, 240, 0.28);
  border-left: 2px solid #5078f0;
  border-right: 2px solid #5078f0;
}

.prix-table th.prix-us {
  border-top: 2px solid #5078f0;
}

.prix-table tbody tr:last-child td.prix-us {
  border-bottom: 2px solid #5078f0;
}

.prix-table td.prix-us {
  font-size: 16px;
}

@media (max-width: 767px) {
  .prix-table td.prix-us {
    font-size: 13px;
  }

  .prix-th__sub {
    font-size: 12px;
  }
}

/*
 * Icônes dessinées en CSS (masque SVG) : le HTML collé ne contient aucun <svg>,
 * car l'éditeur WordPress (mode Visuel) les supprime et laisse un paragraphe vide.
 */
.prix-ico {
  font-size: 0;
  line-height: 0;
}

.prix-ico::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--prix-ico) center / contain no-repeat;
  mask: var(--prix-ico) center / contain no-repeat;
}

.prix-ico--box {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5V8z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E");
}

.prix-ico--share {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='m8.2 10.8 7.6-3.6M8.2 13.2l7.6 3.6'/%3E%3C/svg%3E");
}

.prix-ico--users {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.3c2 .7 3.5 2.6 3.5 5.7'/%3E%3C/svg%3E");
}

.prix-ico--key {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m11 12 9-9M16 7l3 3M14 9l2 2'/%3E%3C/svg%3E");
}

.prix-ico--sliders {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h8M18 6h2M4 12h2M12 12h8M4 18h10M20 18h0'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
}

.prix-ico--server {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='6' rx='1.5'/%3E%3Crect x='3' y='14' width='18' height='6' rx='1.5'/%3E%3Cpath d='M7 7h.01M7 17h.01'/%3E%3C/svg%3E");
}

.prix-ico--grad {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 9 10-5 10 5-10 5L2 9z'/%3E%3Cpath d='M6 11.5V16c0 1.5 3 3 6 3s6-1.5 6-3v-4.5'/%3E%3C/svg%3E");
}

.prix-ico--cog {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9 7 7M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3C/svg%3E");
}

.prix-ico--link {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E");
}

.prix-ico--layers {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3Cpath d='m3 17.5 9 5 9-5'/%3E%3C/svg%3E");
}

.prix-ico--cloud {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4.5 4.5 0 0 1-.6-8.96A6 6 0 0 1 18 9.5a4 4 0 0 1-.5 8.5H7z'/%3E%3C/svg%3E");
}

.prix-ico--table {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M3 15h18M10 4v16'/%3E%3C/svg%3E");
}

.prix-ico--chart {
  --prix-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V4M4 20h16'/%3E%3Cpath d='m7 15 4-4 3 3 5-6'/%3E%3C/svg%3E");
}

/* Coches et tirets du tableau comparatif */
.prix-table td.prix-us::before,
.prix-table td.prix-them::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 8px -3px 0;
  -webkit-mask: var(--prix-mark) center / contain no-repeat;
  mask: var(--prix-mark) center / contain no-repeat;
}

.prix-table td.prix-us::before {
  --prix-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background: #9db3f7;
}

.prix-table td.prix-them::before {
  --prix-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
  background: #7f8bab;
}

@media (max-width: 767px) {
  .prix-ico::before {
    width: 22px;
    height: 22px;
  }

  .prix-table td.prix-us::before,
  .prix-table td.prix-them::before {
    display: none;
  }
}
