/* PrestAI custom overrides */

@media (min-width: 1600px) {
.checkout-steps__mobile, .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xs, .container-xxl {
    max-width: 1420px;
}
.container--limited-md {
    max-width: 720px;
}
.container--limited-sm {
    max-width: 540px;
}
}

.header-top {
    padding: 0;
}
.header-bottom {
    padding: .35rem 0;
}

.header-bottom .navbar-brand img.logo {
    width: 560px;
    height: auto;
}
@media (min-width: 1200px) {
.header-bottom .navbar-brand .logo {
    margin-left: -3px;
}
}

#cms #wrapper .columns-container.container {
    padding-left: 0;
    padding-right: 0;
}

.breadcrumb__wrapper {
    background-color: #fff;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
.breadcrumb__wrapper {
    margin-bottom: 1rem;
}
}

.account-menu--sidebar .account-menu__link {
    padding-left: 0;
}

/* ==========================================================
   PrestAI Design System
   À placer dans le custom.css du thème enfant
   ========================================================== */

/* Base */

.prestai-page {
  --prestai-accent: #0b69f6;
  --prestai-accent-rgb: 11, 105, 246;

  --prestai-ink: #111827;
  --prestai-ink-soft: #273244;
  --prestai-text: #4b5563;
  --prestai-lead: #374151;
  --prestai-muted: #6b7280;
  --prestai-border: #e5e7eb;
  --prestai-border-hover: #d1d5db;
  --prestai-bg: #ffffff;
  --prestai-soft-bg: #f3f4f6;
  --prestai-soft-bg-alt: #f9fafb;
  --prestai-white: #ffffff;

  --prestai-page-top-space: 12px;
  --prestai-page-bottom-space: 44px;
  --prestai-first-block-top-space: 46px;

  width: 100%;
  color: var(--prestai-ink);
  background: var(--prestai-bg);
  box-sizing: border-box;
  padding-top: var(--prestai-page-top-space);
  padding-bottom: var(--prestai-page-bottom-space);
}

/* Alignement horizontal identique au container du thème */

.prestai-page--theme-container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .prestai-page--theme-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .prestai-page--theme-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .prestai-page--theme-container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .prestai-page--theme-container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .prestai-page--theme-container {
    max-width: 1320px;
  }
}

@media (min-width: 1600px) {
  .prestai-page--theme-container {
    max-width: 1420px;
  }
}

/* Gestion verticale du premier bloc */

.prestai-page > .prestai-header:first-child,
.prestai-page > .prestai-hero:first-child,
.prestai-page > .prestai-section:first-child,
.prestai-page > .prestai-final-card:first-child {
  margin-top: 0;
  padding-top: var(--prestai-first-block-top-space);
}

.prestai-page--flush-top {
  --prestai-page-top-space: 0px;
  --prestai-first-block-top-space: 0px;
}

.prestai-page--top-sm {
  --prestai-page-top-space: 16px;
}

.prestai-page--top-md {
  --prestai-page-top-space: 32px;
}

.prestai-page--top-lg {
  --prestai-page-top-space: 48px;
}

.prestai-page--bottom-none {
  --prestai-page-bottom-space: 0px;
}

.prestai-page--bottom-sm {
  --prestai-page-bottom-space: 24px;
}

.prestai-page--bottom-md {
  --prestai-page-bottom-space: 44px;
}

.prestai-page--bottom-lg {
  --prestai-page-bottom-space: 72px;
}

/* Box sizing */

.prestai-page,
.prestai-page .prestai-header,
.prestai-page .prestai-hero,
.prestai-page .prestai-hero-content,
.prestai-page .prestai-hero-visual,
.prestai-page .prestai-actions,
.prestai-page .prestai-section,
.prestai-page .prestai-section-heading,
.prestai-page .prestai-grid,
.prestai-page .prestai-card,
.prestai-page .prestai-card-icon,
.prestai-page .prestai-card-number,
.prestai-page .prestai-split,
.prestai-page .prestai-split-content,
.prestai-page .prestai-split-image,
.prestai-page .prestai-list,
.prestai-page .prestai-list-item,
.prestai-page .prestai-highlight,
.prestai-page .prestai-final-card,
.prestai-page .prestai-btn {
  box-sizing: border-box;
}

.prestai-page p {
  margin: 0;
}

.prestai-page img {
  max-width: 100%;
}

/* Typographie */

.prestai-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--prestai-muted);
}

.prestai-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--prestai-ink);
}

.prestai-lead {
  max-width: 920px;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--prestai-lead);
}

.prestai-section-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--prestai-ink);
}

.prestai-text {
  max-width: 980px;
  color: var(--prestai-text);
  font-size: 16px;
  line-height: 1.7;
}

.prestai-text + .prestai-text {
  margin-top: 12px;
}

/* Header simple */

.prestai-header {
  width: 100%;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--prestai-border);
}

/* Sections simples */

.prestai-section {
  width: 100%;
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--prestai-border);
}

.prestai-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.prestai-section h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--prestai-ink);
}

.prestai-section p {
  max-width: 980px;
  color: var(--prestai-text);
  font-size: 16px;
  line-height: 1.7;
}

.prestai-section p + p {
  margin-top: 12px;
}

/* Section visuelle sans bordure */

.prestai-section--clean {
  padding: 18px 0 38px;
  margin-bottom: 0;
  border-bottom: none;
}

.prestai-section--large {
  padding: 32px 0 56px;
}

.prestai-section--compact {
  padding: 12px 0 32px;
}

.prestai-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.prestai-section-heading > div {
  flex: 1 1 420px;
}

.prestai-section-heading > p {
  flex: 1 1 320px;
  max-width: 520px;
  color: var(--prestai-text);
  font-size: 16px;
  line-height: 1.7;
}

/* Boutons */

.prestai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.prestai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--prestai-ink);
  color: var(--prestai-white);
  font-weight: 800;
  font-size: 14px;
  width: fit-content;
  text-decoration: none;
  transition: opacity .2s ease, background .2s ease, transform .2s ease, border-color .2s ease;
}

.prestai-btn:hover {
  opacity: .96;
  background: var(--prestai-accent);
  color: var(--prestai-white);
  transform: translateY(-2px);
  text-decoration: none;
}

.prestai-btn--light {
  background: var(--prestai-white);
  color: var(--prestai-ink);
  border: 1px solid var(--prestai-border);
}

.prestai-btn--light:hover {
  background: var(--prestai-soft-bg);
  color: var(--prestai-ink);
  border-color: var(--prestai-border-hover);
}

/* Hero visuelle
   Desktop : contenu à gauche, image à droite.
   Mobile : image d'abord, contenu ensuite.
   Fonctionne sans media query grâce au flex-wrap.
*/

.prestai-hero {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
  padding: 46px 0 32px;
}

.prestai-hero-content {
  order: 2;
  flex: 1.6 1 520px;
  min-width: min(100%, 520px);
  background: linear-gradient(135deg, var(--prestai-soft-bg), var(--prestai-white));
  border: 1px solid var(--prestai-border);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prestai-hero-visual {
  order: 1;
  flex: 1 1 300px;
  min-width: min(100%, 300px);
  min-height: clamp(230px, 32vw, 470px);
  border-radius: 24px;
  overflow: hidden;
  background: var(--prestai-soft-bg);
}

.prestai-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

/* Grilles */

.prestai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}

.prestai-grid--small {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.prestai-grid--large {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.prestai-grid--faq {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* Cartes */

.prestai-card {
  border: 1px solid var(--prestai-border);
  border-radius: 20px;
  background: var(--prestai-white);
  padding: 24px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.prestai-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.06);
  border-color: var(--prestai-border-hover);
}

.prestai-card--dark {
  background:
    radial-gradient(circle at 90% 15%, rgba(var(--prestai-accent-rgb), .24), transparent 34%),
    linear-gradient(135deg, var(--prestai-ink), var(--prestai-ink-soft));
  color: var(--prestai-white);
  border-color: var(--prestai-ink);
}

.prestai-card h3,
.prestai-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--prestai-ink);
}

.prestai-card p {
  color: var(--prestai-text);
  font-size: 15px;
  line-height: 1.5;
}

.prestai-card--dark h2,
.prestai-card--dark h3,
.prestai-card--dark strong {
  color: var(--prestai-white);
}

.prestai-card--dark .prestai-eyebrow,
.prestai-card--dark p,
.prestai-card--dark span {
  color: rgba(255,255,255,.76);
}

/* Icônes / numéros dans cartes */

.prestai-card-icon,
.prestai-card-number {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(var(--prestai-accent-rgb), .08);
  color: var(--prestai-accent);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.prestai-card-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* Réassurance horizontale */

.prestai-card--inline {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px;
}

.prestai-card--inline .prestai-card-icon,
.prestai-card--inline .prestai-card-number {
  margin-bottom: 0;
  min-width: 44px;
  flex: 0 0 44px;
}

.prestai-card--inline .prestai-card-icon--wide,
.prestai-card--inline .prestai-card-number--wide {
  width: 58px;
  min-width: 58px;
  flex: 0 0 58px;
  font-size: 12px;
}

.prestai-card--inline > div {
  min-width: 0;
}

.prestai-card--inline p {
  margin: 0;
  color: var(--prestai-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Split */

.prestai-split {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
}

.prestai-split--reverse {
  flex-direction: row-reverse;
}

.prestai-split-content {
  flex: 1.2 1 430px;
  min-width: min(100%, 430px);
  border: 1px solid var(--prestai-border);
  border-radius: 24px;
  background: var(--prestai-white);
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prestai-split-content--flat {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.prestai-split-image {
  flex: 1 1 320px;
  min-width: min(100%, 320px);
  min-height: clamp(260px, 30vw, 430px);
  border-radius: 24px;
  overflow: hidden;
  background: var(--prestai-soft-bg);
}

.prestai-split-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

/* Blocs IA / highlight */

.prestai-highlight {
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 15%, rgba(var(--prestai-accent-rgb), .26), transparent 32%),
    linear-gradient(135deg, var(--prestai-ink), var(--prestai-ink-soft));
  color: var(--prestai-white);
  padding: clamp(26px, 4vw, 42px);
}

.prestai-highlight .prestai-eyebrow {
  color: rgba(255,255,255,.72);
}

.prestai-highlight h2,
.prestai-highlight h3,
.prestai-highlight strong,
.prestai-highlight .prestai-section-title {
  color: var(--prestai-white);
}

.prestai-highlight p,
.prestai-highlight .prestai-text {
  color: rgba(255,255,255,.78);
}

.prestai-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.prestai-list-item {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}

.prestai-list-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--prestai-white);
}

.prestai-list-item span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.55;
}

/* CTA final */

.prestai-final-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--prestai-soft-bg), var(--prestai-white));
  border: 1px solid var(--prestai-border);
  padding: clamp(26px, 4vw, 42px);
  margin: 18px 0 34px;
}

.prestai-final-card > div {
  flex: 1 1 520px;
}

.prestai-final-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--prestai-ink);
}

.prestai-final-card p {
  max-width: 820px;
  color: var(--prestai-text);
  line-height: 1.65;
}

/* Utilitaires */

.prestai-muted {
  color: var(--prestai-muted);
}

.prestai-no-border {
  border-bottom: none;
}

.prestai-no-margin {
  margin-bottom: 0;
}