/**
 * Landing custom — layout & surfaces (.arkt-landing).
 * Typographie : main.css (variables portfolio via root.css).
 */

.arkt-landing {
  overflow-x: clip;
}

.arkt-landing .text-align-center {
  text-align: center;
}

.arkt-landing .arkt-section {
  position: relative;
  background: var(--arkt-bg);
  overflow: hidden;
}

/* --- Hero --- */
.arkt-landing .arkt-hero {
  position: relative;
  min-height: var(--arkt-hero-min-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--arkt-text);
}

.arkt-landing .arkt-hero--primary {
  padding-bottom: var(--arkt-space-hero-padding-bottom);
}

.arkt-landing .arkt-hero h1 {
  margin: 0 0 0.75rem;
}

.arkt-landing .arkt-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--arkt-z-hero-bg);
}

/* Hero /home : diaporama 5 visuels en fondu */
.arkt-landing .arkt-hero__slides {
  position: absolute;
  inset: 0;
  z-index: var(--arkt-z-hero-bg);
  overflow: hidden;
}

.arkt-landing .arkt-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 3s ease-in-out;
  pointer-events: none;
}

.arkt-landing .arkt-hero__slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .arkt-landing .arkt-hero__slide {
    transition: none;
  }

  .arkt-landing .arkt-hero__slide:not(.is-active) {
    opacity: 0;
  }

  .arkt-landing .arkt-hero__slide.is-active {
    opacity: 1;
  }
}

.arkt-landing .arkt-hero__bg--blur {
  filter: blur(var(--arkt-blur-hero-bg));
  transform: scale(var(--arkt-scale-hero-bg));
}

.arkt-landing .arkt-showcase .arkt-hero__bg {
  object-position: center top;
}

.arkt-landing .arkt-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: var(--arkt-z-hero-overlay);
  background: linear-gradient(
    var(--arkt-hero-overlay-angle),
    var(--arkt-hero-overlay-1) 0%,
    var(--arkt-hero-overlay-2) 45%,
    var(--arkt-hero-overlay-3) 100%
  );
}

.arkt-landing .arkt-hero__overlay--center {
  background: linear-gradient(
    var(--arkt-hero-overlay-angle),
    var(--arkt-hero-overlay-center-1) 0%,
    var(--arkt-hero-overlay-center-2) 50%,
    var(--arkt-hero-overlay-center-3) 100%
  );
}

.arkt-landing .arkt-hero__content {
  position: relative;
  z-index: var(--arkt-z-hero-content);
}

/* Header flottant au-dessus du hero : fond plein écran, texte repoussé sous la barre */
#portfolio_page.portfolio-font:has(#header.arkt-header) .arkt-landing .arkt-hero .arkt-hero__content {
  padding-top: var(--arkt-header-overlap-offset);
}

body.portfolio-editor #webpage-simulation #portfolio_page.portfolio-font:has(#header.arkt-header) .arkt-landing .arkt-hero .arkt-hero__content {
  padding-top: var(--arkt-header-overlap-offset) !important;
}

.arkt-landing .arkt-hero__content--center {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arkt-landing .arkt-hero__text {
  max-width: 40rem;
}

.arkt-landing .arkt-hero--primary .arkt-hero__content:not(.arkt-hero__content--center) .arkt-hero__text {
  margin-right: auto;
}

.arkt-landing .arkt-hero__content--center .arkt-hero__text {
  margin-left: auto;
  margin-right: auto;
}

.arkt-landing .arkt-hero__content--center .arkt-hero__ctas {
  justify-content: center;
}

/* Plus spécifique que #portfolio_page p (structure/main.css → portfolios-theme-bg-contrast),
   sinon le chapô héros reprend la couleur « contenu » et peut disparaître sur le fond photo. */
#portfolio_page .arkt-landing .arkt-hero__intro {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--arkt-mockup-text-subtle);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.55;
}

.arkt-landing .arkt-hero__ctas {
  gap: var(--arkt-space-cta-gap);
}

.arkt-landing .arkt-scroll-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--arkt-z-scroll-hint);
  width: var(--arkt-size-scroll-hint);
  height: var(--arkt-size-scroll-hint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arkt-rgba-white-85);
  text-decoration: none;
  border-radius: var(--arkt-radius-scroll-hint);
  border: var(--arkt-page-border);
  background: var(--arkt-rgba-black-025);
}

.arkt-landing .arkt-scroll-hint__chev {
  width: var(--arkt-size-chev);
  height: var(--arkt-size-chev);
  border-right: var(--arkt-size-chev-border) solid currentColor;
  border-bottom: var(--arkt-size-chev-border) solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  animation: arkt-chev var(--arkt-motion-chev-duration) ease-in-out infinite;
}

@keyframes arkt-chev {
  0%,
  100% {
    transform: rotate(45deg) translateY(-3px);
    opacity: 0.6;
  }
  50% {
    transform: rotate(45deg) translateY(2px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arkt-landing .arkt-scroll-hint__chev {
    animation: none;
  }
}

/* Features — séparation entre sections : main.css (#portfolio_page… .arkt-landing > section:not(.arkt-hero)) */
.arkt-landing .arkt-features {
  padding-bottom: 4rem;
}

#portfolio_page .arkt-landing .arkt-features__title {
  margin: 0 0 0.35rem;
  font-size: var(--arkt-type-h1-size);
  line-height: var(--arkt-type-h1-line);
  font-weight: var(--arkt-type-h1-weight);
  color: var(--arkt-type-h1-color);
}

#portfolio_page .arkt-landing .arkt-features__subtitle {
  margin: 0 0 1rem;
  font-size: var(--arkt-type-caption-size);
  line-height: calc(var(--arkt-type-caption-size) + 0.35rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--arkt-type-h3-weight);
  color: var(--arkt-accent-title);
}

.arkt-landing .arkt-features__lede {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 650px) {
  .arkt-landing #arkt-features > .limited-width.text-align-center {
    text-align: left;
  }

  .arkt-landing #arkt-features > .limited-width.text-align-center .arkt-features__lede {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .arkt-landing .arkt-pricing__intro .arkt-muted,
  .arkt-landing .arkt-pricing__intro .arkt-pricing__lede {
    max-width: none;
  }
}

.arkt-landing .arkt-feature-card {
  position: relative;
  padding-bottom: 2.25rem;
}

.arkt-landing .arkt-feature-card h3 {
  margin: 0.75rem 0 0.5rem;
}

.arkt-landing .arkt-feature-card__icon {
  color: var(--arkt-rgba-white-90);
}

.arkt-landing .arkt-feature-card__arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  font-size: var(--arkt-type-feature-arrow-size);
  color: var(--arkt-rgba-white-75);
}

/*
 * Reordonner les cartes pour commencer par les marqueurs d'originalite Arktefakt.
 */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(10) { order: 1; } /* Architecture modulaire intelligente */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(11) { order: 2; } /* Pages services dediees */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(12) { order: 3; } /* Experience createur complete */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(7) { order: 4; }  /* Galerie */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(8) { order: 5; }  /* Discographie */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(6) { order: 6; }  /* Productions */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(1) { order: 7; }  /* Blog */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(4) { order: 8; }  /* Agenda */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(2) { order: 9; }  /* A propos */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(3) { order: 10; } /* Equipe */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(5) { order: 11; } /* Livres */
.arkt-landing .arkt-features__layout .grid-four > .arkt-feature-card:nth-child(9) { order: 12; } /* Boutique et Contact */

.arkt-landing .arkt-sidecard img {
  width: 100%;
  height: auto;
  border-radius: var(--arkt-radius-card);
  opacity: var(--arkt-opacity-sidecard);
}

/* Temporaire : masquer les side gauche/droite */
.arkt-landing .arkt-sidecard {
  display: none;
}

/* Quand les side sont masquées, le contenu central reprend toute la largeur */
.arkt-landing .arkt-features__layout > div:nth-child(2) {
  grid-column: 1 / -1;
}

.arkt-landing .arkt-features__layout > .arkt-sidecard {
  position: relative;
  align-self: start;
}

/* Side visuals: collés aux bords de fenêtre (section avec padding latéral) */
.arkt-landing .arkt-features__layout {
  max-width: none;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
}

.arkt-landing .arkt-features__layout > .arkt-sidecard:first-child img {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.arkt-landing .arkt-features__layout > .arkt-sidecard:last-child img {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.arkt-landing .arkt-features__layout > .arkt-sidecard:first-child {
  transform: translate3d(0, 22px, 0);
}

.arkt-landing .arkt-features__layout > .arkt-sidecard:last-child {
  transform: translate3d(0, -34px, 0);
}

@media screen and (max-width: 1100px) {
  .arkt-landing .arkt-features__layout > div:nth-child(2) {
    grid-column: 1 / -1;
  }
}

.arkt-landing .arkt-wide-placeholder {
  width: 100%;
  height: auto;
  border-radius: var(--arkt-radius-card);
  display: block;
}

.arkt-landing .arkt-video-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--arkt-radius-card);
  overflow: hidden;
  border: 1px solid var(--arkt-rgba-white-40);
  background: var(--arkt-rgba-black-070);
}

.arkt-landing .arkt-video-slot__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--arkt-radius-card);
  display: block;
}

@media screen and (max-width: 900px) {
  .arkt-landing .arkt-video-slot {
    aspect-ratio: 4 / 3;
  }
}

@media screen and (max-width: 650px) {
  .arkt-landing .arkt-video-slot {
    aspect-ratio: 1 / 1;
    max-height: min(70vh, 28rem);
  }
}

/* Tarifs — centré, même largeur extérieure que #header.arkt-header */
#portfolio_page .arkt-landing section.arkt-pricing.padding-left.padding-right {
  padding-left: max(var(--arkt-header-float-inset), env(safe-area-inset-left, 0px)) !important;
  padding-right: max(var(--arkt-header-float-inset), env(safe-area-inset-right, 0px)) !important;
  box-sizing: border-box;
}

#portfolio_page .arkt-landing .arkt-pricing__title {
  margin: 0 0 1rem;
  font-size: var(--arkt-type-h1-size);
  line-height: 1.18;
  font-weight: var(--arkt-type-h1-weight);
  color: var(--arkt-type-h1-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--arkt-space-heading-split-gap);
  max-width: 100%;
  text-wrap: balance;
}

#portfolio_page .arkt-landing .arkt-pricing__title .arkt-pricing__title-strong {
  font-weight: var(--arkt-type-h1-weight);
  display: block;
}

#portfolio_page .arkt-landing .arkt-pricing__title .arkt-pricing__title-light {
  font-weight: var(--arkt-type-subtle-weight);
  color: var(--arkt-mockup-text-subtle);
  display: block;
  font-size: var(--arkt-type-h2-size);
  line-height: var(--arkt-type-h2-line);
}

.arkt-landing .arkt-pricing__lede {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  line-height: 1.55;
}

.arkt-landing .arkt-pricing {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    118deg,
    var(--arkt-color-black) 0%,
    #0f0518 38%,
    var(--arkt-color-pricing-grad-mid) 58%,
    var(--arkt-color-pricing-grad-end) 100%
  );
}

/* Laptop : ancré au bord gauche du cadre header (ne déborde pas à gauche) */
.arkt-landing .arkt-pricing__decor {
  position: absolute;
  z-index: 0;
  left: calc(50% - (min(var(--arkt-page-content-max-width), 100%) / 2));
  top: clamp(-1rem, 2vw, 1.5rem);
  width: min(58%, calc(var(--arkt-page-content-max-width) * 0.58));
  max-width: 36rem;
  opacity: 1;
  pointer-events: none;
}

.arkt-landing .arkt-pricing__decor img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--arkt-radius-card);
}

/* Bloc texte + cartes : centré, même cadre que la barre header */
.arkt-landing .arkt-pricing__content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--arkt-page-content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--arkt-header-inner-padding);
  padding-right: var(--arkt-header-inner-padding);
  min-width: 0;
}

.arkt-landing .arkt-pricing__intro {
  text-align: center;
}

.arkt-landing p.arkt-pricing__empty {
  text-align: center;
}

.arkt-landing .arkt-pricing__grid {
  position: relative;
  z-index: 1;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-width: 0;
}

.arkt-landing .arkt-pricing__grid > * {
  min-width: 0;
}

.arkt-landing .arkt-pricing-card:not(.arkt-card--featured) {
  background: color-mix(in srgb, var(--arkt-color-white) 5%, transparent);
  border-color: var(--arkt-rgba-border-on-dark-medium);
  backdrop-filter: blur(10px);
}

.arkt-landing .arkt-card--featured.arkt-pricing-card {
  transform: translateY(-0.4rem);
  box-shadow:
    0 22px 48px color-mix(in srgb, var(--arkt-color-black) 55%, transparent),
    0 0 0 1px var(--arkt-rgba-black-06-on-white);
  color: var(--arkt-text-on-light);
}

/* Carte vedette (fond clair) : forcer des couleurs de texte lisibles (override .arkt-price / h3 globaux) */
#portfolio_page .arkt-landing .arkt-card--featured.arkt-pricing-card h3 {
  color: var(--arkt-accent-heading-light);
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price:not(.arkt-price--old),
.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price--promo {
  color: var(--arkt-accent-strong);
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price--old {
  color: var(--arkt-text-on-light-muted);
  opacity: 1;
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-muted,
.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price__detail {
  color: var(--arkt-text-on-featured-muted);
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-list,
.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-list li {
  color: var(--arkt-text-on-light-muted);
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-list__missing {
  color: var(--arkt-text-on-light-muted);
  opacity: 0.5;
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-promo-until {
  color: var(--arkt-accent-heading-light);
}

.arkt-landing .arkt-pricing-badge {
  margin: 0 0 0.5rem;
}

.arkt-landing .arkt-pricing-badge__label {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--arkt-radius-pill);
  background: var(--arkt-accent);
  color: var(--arkt-color-white);
}

.arkt-landing .arkt-pricing-card .arkt-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  margin: 0.35rem 0 0;
}

.arkt-landing .arkt-pricing-card .arkt-price--hero {
  font-size: clamp(1.9rem, 1.45vw + 1.4rem, 3.15rem);
  line-height: 1.08;
  font-weight: var(--arkt-type-h1-weight, 700);
  margin: 0.25rem 0 0.12rem;
  letter-spacing: -0.025em;
}

/* Promo : prix affiché encore plus dominant */
.arkt-landing .arkt-pricing-card .arkt-price--promo.arkt-price--hero {
  font-size: clamp(2.1rem, 1.95vw + 1.45rem, 3.5rem);
  margin: 0.28rem 0 0;
}

/* Carte favori (vedette) : prix très mis en avant — type maquette Premium */
.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price-block {
  margin: 0.55rem 0 0.15rem;
  gap: 0.12rem;
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price--hero:not(.arkt-price--promo) {
  font-size: clamp(2.35rem, 2.9vw + 1.5rem, 4.25rem);
  line-height: 1.03;
  margin: 0.4rem 0 0.18rem;
  letter-spacing: -0.035em;
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price--promo.arkt-price--hero {
  font-size: clamp(2.55rem, 3.35vw + 1.45rem, 4.5rem);
  line-height: 1.02;
  margin: 0.45rem 0 0.1rem;
  letter-spacing: -0.04em;
}

/* Favori : « 15 € » massif + « /mois » discret sur la même ligne (maquette) */
.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price--split {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.18em;
  row-gap: 0.05em;
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price__core {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.045em;
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price__amount {
  color: var(--arkt-accent-strong);
  font-weight: var(--arkt-type-h1-weight, 700);
}

@supports ((-webkit-background-clip: text) and (color: transparent)) {
  .arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price__amount {
    background: linear-gradient(
      102deg,
      #4a148c 0%,
      var(--arkt-accent-strong) 52%,
      #c77fe8 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price__currency {
  color: var(--arkt-accent-strong);
  font-weight: var(--arkt-type-h1-weight, 700);
  letter-spacing: -0.03em;
  margin-left: 0.06em;
}

.arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price__period {
  font-size: max(0.78rem, 0.26em);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--arkt-text-on-featured-muted);
  white-space: nowrap;
}

.arkt-landing .arkt-pricing-card .arkt-price--old {
  font-size: clamp(0.68rem, 0.25vw + 0.62rem, 0.8rem);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: line-through;
  opacity: 0.72;
  margin: 0.05rem 0 0;
}

.arkt-landing .arkt-card--featured .arkt-price--old {
  opacity: 0.78;
}

.arkt-landing .arkt-price__detail {
  font-size: var(--arkt-type-price-note-size);
  margin: 0.35rem 0 0;
}

.arkt-landing .arkt-promo-until {
  margin: 0.35rem 0 0;
  color: var(--arkt-accent-title);
}

.arkt-landing .arkt-card--featured .arkt-promo-until {
  color: var(--arkt-accent-heading-light);
}

.arkt-landing .arkt-list__missing {
  text-decoration: line-through;
  opacity: 0.55;
}

.arkt-landing .arkt-pricing-card h3 {
  margin: 0 0 0.5rem;
}

.arkt-landing .arkt-rule {
  border: none;
  border-top: var(--arkt-page-border-width) solid var(--arkt-page-border-color);
  margin: 1rem 0;
}

.arkt-landing .arkt-rule--dark {
  border-top-color: var(--arkt-rgba-black-12-on-white);
}

.arkt-landing .arkt-price {
  font-size: var(--arkt-type-price-base-size);
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--arkt-text);
}

.arkt-landing .arkt-price--lg {
  font-size: calc(var(--arkt-type-h1-size) * 0.95);
  font-weight: var(--arkt-type-h1-weight);
}

.arkt-landing .arkt-price__unit {
  font-size: var(--arkt-type-price-unit-factor);
  font-weight: 600;
}

.arkt-landing .arkt-price__note {
  font-size: var(--arkt-type-price-note-size);
  margin: 0 0 0.5rem;
}

.arkt-landing .arkt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.arkt-landing .arkt-list li {
  padding: 0.35rem 0;
}

/*
 * Tablette / mobile : colonne unique ; tarifs restent centrés dans le cadre header.
 */
@media screen and (max-width: 1100px) {
  .arkt-landing .arkt-pricing__decor {
    display: none;
  }

  .arkt-landing .arkt-pricing__grid.grid-three {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .arkt-landing .arkt-card--featured.arkt-pricing-card {
    transform: none;
    box-shadow: var(--arkt-shadow-featured-card);
  }

  .arkt-landing .arkt-features__layout {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .arkt-landing .arkt-features__layout > div:nth-child(2).padding-left.padding-right {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #portfolio_page .arkt-landing .arkt-hero .arkt-hero__content.padding-left.padding-right,
  #portfolio_page .arkt-landing .arkt-hero .arkt-hero__overlay.padding-left.padding-right {
    padding-left: max(var(--arkt-page-gutter), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--arkt-page-gutter), env(safe-area-inset-right, 0px)) !important;
  }

  #portfolio_page .arkt-landing > :is(section, .arkt-showcase):not(.arkt-pricing).padding-left.padding-right {
    padding-left: max(var(--arkt-page-gutter), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--arkt-page-gutter), env(safe-area-inset-right, 0px)) !important;
  }

  #portfolio_page .arkt-landing section.arkt-pricing.padding-left.padding-right {
    padding-left: max(var(--arkt-header-float-inset), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--arkt-header-float-inset), env(safe-area-inset-right, 0px)) !important;
  }
}

@media screen and (max-width: 650px) {
  .arkt-landing .arkt-pricing-card {
    padding: 1.25rem 1rem;
  }

  .arkt-landing .arkt-pricing__grid {
    gap: 1rem;
  }

  .arkt-landing .arkt-pricing-card .arkt-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price--hero:not(.arkt-price--promo) {
    font-size: clamp(2rem, 9vw, 2.85rem);
  }

  .arkt-landing .arkt-card--featured.arkt-pricing-card .arkt-price--promo.arkt-price--hero {
    font-size: clamp(2.1rem, 9.5vw, 3rem);
  }

  .arkt-landing .arkt-pricing-card .arkt-price--hero:not(.arkt-price--promo) {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .arkt-landing .arkt-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .arkt-landing .arkt-hero__ctas .arkt-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .arkt-landing .arkt-faq__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .arkt-landing .arkt-faq__actions .arkt-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .arkt-landing .arkt-showcase .full-width.big-margin-top {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Showcase */
.arkt-landing .arkt-showcase {
  background: var(--arkt-bg);
}

.arkt-landing .arkt-hero--secondary {
  min-height: var(--arkt-hero-secondary-min-height);
  justify-content: center;
  border-radius: var(--arkt-radius-card);
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--arkt-showcase-max-width);
}

#portfolio_page .arkt-landing .arkt-showcase__intro {
  max-width: 36rem;
  margin: 0 auto 0;
  color: var(--arkt-mockup-text-subtle);
}

.arkt-landing .arkt-project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--arkt-radius-card);
  overflow: hidden;
  min-height: var(--arkt-project-card-min-height);
  background: var(--arkt-card-bg);
}

.arkt-landing a.arkt-project-card--link {
  display: grid;
  text-decoration: none;
  color: inherit;
}

.arkt-landing .arkt-project-card__media--layered {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.arkt-landing .arkt-project-card__media--layered > img {
  width: 100%;
  height: 100%;
  min-height: var(--arkt-project-card-min-height);
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  opacity: 0.92;
}

.arkt-landing .arkt-project-card__title {
  margin: 0;
  font-size: var(--arkt-type-h3-size);
  line-height: 1.2;
  font-weight: 600;
}

.arkt-landing .arkt-project-card__text {
  border: none;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  color: var(--arkt-text);
}

.arkt-landing .arkt-project-card__text p {
  margin: 0;
}

.arkt-landing .arkt-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: var(--arkt-project-card-min-height);
}

.arkt-landing .arkt-project-card--image {
  position: relative;
  display: block;
  grid-template-columns: none;
}

.arkt-landing .arkt-project-card--image img {
  min-height: var(--arkt-project-card-image-min-height);
}

.arkt-landing .arkt-project-card__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--arkt-color-white);
  font-weight: 600;
  background: linear-gradient(var(--arkt-caption-grad-angle), var(--arkt-rgba-black-65-caption), transparent 60%);
}

.arkt-landing .arkt-project-card--light {
  background: var(--arkt-color-project-light-bg);
  color: var(--arkt-text-on-light);
}

.arkt-landing .arkt-project-card--light .arkt-project-card__text-light {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#portfolio_page .arkt-landing .arkt-project-card__headline {
  margin: 0 0 0.75rem;
  font-size: var(--arkt-type-h3-size);
  line-height: 1.15;
  font-weight: var(--arkt-type-project-headline-weight);
  color: var(--arkt-text-on-light);
}

.arkt-landing .arkt-project-card--light p {
  margin: 0;
  color: var(--arkt-text-on-light-muted);
  font-size: var(--arkt-type-project-body-size);
}

@media screen and (max-width: 650px) {
  .arkt-landing .arkt-project-card {
    grid-template-columns: 1fr;
  }

  .arkt-landing .arkt-project-card__media img {
    min-height: var(--arkt-project-card-mobile-min-height);
  }
}

/* FAQ */
.arkt-landing .arkt-faq {
  position: relative;
  background: var(--arkt-color-black);
}

.arkt-landing .arkt-faq__intro {
  position: relative;
  z-index: 1;
}

.arkt-landing .arkt-faq__actions {
  gap: var(--arkt-space-faq-actions-gap);
  flex-wrap: wrap;
}

.arkt-landing .arkt-faq .arkt-accordion {
  position: relative;
  z-index: 1;
}

#portfolio_page .arkt-landing .arkt-faq .arkt-accordion details .arkt-accordion__body.arkt-faq__answer {
  padding: 0.2rem 0 1.35rem;
  margin-top: 0;
}

#portfolio_page .arkt-landing .arkt-faq__answer {
  line-height: var(--arkt-faq-answer-line-height);
}

#portfolio_page .arkt-landing .arkt-faq__answer p {
  line-height: var(--arkt-faq-answer-line-height);
  margin: 0 0 var(--arkt-faq-answer-paragraph-gap);
}

#portfolio_page .arkt-landing .arkt-faq__answer p:first-child {
  margin-top: 0;
}

#portfolio_page .arkt-landing .arkt-faq__answer p:last-child {
  margin-bottom: 0;
}

#portfolio_page .arkt-landing .arkt-faq__answer li {
  line-height: var(--arkt-faq-answer-line-height);
  margin-bottom: 0.4rem;
}

#portfolio_page .arkt-landing .arkt-faq__answer :is(ul, ol) {
  margin: 0 0 var(--arkt-faq-answer-paragraph-gap);
  padding-left: 1.15rem;
}

#portfolio_page .arkt-landing .arkt-faq__answer :is(ul, ol):last-child {
  margin-bottom: 0;
}

#portfolio_page .arkt-landing .arkt-faq__answer :is(ul, ol) li:last-child {
  margin-bottom: 0;
}

/* Bandeau fin de page — hébergement & données en France */
.arkt-landing .arkt-hosting-fr {
  background: var(--arkt-bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.arkt-landing .arkt-hosting-fr__inner {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#portfolio_page .arkt-landing p.arkt-hosting-fr__kicker {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: var(--arkt-type-caption-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--arkt-type-h3-weight);
  color: var(--arkt-accent-title);
}

#portfolio_page .arkt-landing .arkt-hosting-fr__title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: var(--arkt-type-h2-size);
  line-height: var(--arkt-type-h2-line);
  font-weight: var(--arkt-type-h2-weight);
  color: var(--arkt-text);
  text-wrap: balance;
}

.arkt-landing .arkt-hosting-fr__text {
  margin: 0;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

/* Mode éditeur : forcer typo cartes projets (fonts.css / hub après le custom). */
body.portfolio-editor #webpage-simulation #portfolio_page.portfolio-font .arkt-landing .arkt-project-card__headline {
  margin: 0 0 0.75rem !important;
  font-size: var(--arkt-type-h3-size) !important;
  line-height: 1.15 !important;
  font-weight: var(--arkt-type-project-headline-weight) !important;
  color: var(--arkt-text-on-light) !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page.portfolio-font .arkt-landing .arkt-project-card--light p {
  margin: 0 !important;
  color: var(--arkt-text-on-light-muted) !important;
  font-size: var(--arkt-type-project-body-size) !important;
}
