/* Création de site web — styles page service */

.page-creation-site-web {
  overflow-x: hidden;
}

/* ── HERO ── */
.csw-hero {
  position: relative;
  background: linear-gradient(145deg, var(--cream) 0%, #f5f2ec 45%, var(--smoke) 100%);
  padding: 5rem 8% 4.5rem;
  border-bottom: 1px solid var(--light);
  overflow: hidden;
}

.csw-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 169, 138, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.csw-hero::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 169, 138, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.csw-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.csw-hero-left .section-label {
  margin-bottom: 1.2rem;
}

.csw-hero-left .section-h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 0.4rem;
}

.csw-hero-left .section-intro {
  max-width: 520px;
  margin-top: 1.2rem;
}

.csw-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.csw-hero-botanical {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: clamp(90px, 18%, 200px);
  opacity: 0.18;
  pointer-events: none;
}

.csw-hero-botanical svg {
  width: 100%;
  height: auto;
  display: block;
}

.csw-mockup {
  position: relative;
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 24px 48px rgba(26, 28, 32, 0.12));
  will-change: transform;
  animation: pcBounce 2.8s ease-in-out infinite;
}

@keyframes pcBounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.csw-mockup-laptop {
  width: 100%;
  height: auto;
  display: block;
}

/* ── TARIFS HEADER ── */
.csw-pricing {
  padding: 5rem 8% 4rem;
  background: var(--white);
}

.csw-pricing-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.csw-pricing-header .section-label {
  margin-bottom: 1rem;
}

.csw-pricing-header .section-h2 {
  margin-bottom: 0.8rem;
}

.csw-pricing-header .section-intro {
  max-width: 560px;
  margin: 0 auto;
}

/* ── PRICING GRID ── */
.csw-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
  padding-top: 0.75rem;
}

.csw-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: 0.35rem;
  padding: 1.75rem 1.5rem 1.5rem;
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.35s ease;
}

.csw-pricing-animate-ready:not(.csw-pricing-in-view) .csw-pricing-card {
  opacity: 0;
  transform: translateY(24px);
}

.csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

.csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 100ms;
}

.csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 200ms;
}

.csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 300ms;
}

.csw-pricing-card--featured {
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(184, 169, 138, 0.22);
  z-index: 1;
}

.csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card--featured {
  transform: translateY(-6px);
}

@media (hover: hover) and (pointer: fine) {
  .csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card:hover {
    box-shadow: 0 14px 44px rgba(26, 28, 32, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card:not(.csw-pricing-card--featured):hover {
    transform: translateY(-6px);
  }

  .csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card--featured:hover {
    box-shadow: 0 20px 56px rgba(184, 169, 138, 0.28);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1281px) {
  .csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card--featured:hover {
    transform: translateY(-6px);
  }
}

.csw-pricing-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--smoke);
  border: 1px solid var(--light);
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.csw-pricing-badge--featured {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  white-space: nowrap;
}

.csw-pricing-badge--starter { color: var(--accent); }
.csw-pricing-badge--business { color: var(--ink); background: rgba(184, 169, 138, 0.12); border-color: rgba(184, 169, 138, 0.35); }
.csw-pricing-badge--surmesure { color: var(--gold); background: rgba(184, 169, 138, 0.08); border-color: rgba(184, 169, 138, 0.4); }

.csw-pricing-card--featured .csw-pricing-card-body {
  padding-top: 0.5rem;
}

.csw-pricing-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.csw-pricing-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  min-height: 2.8em;
}

.csw-pricing-price {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--light);
}

.csw-pricing-price--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.csw-pricing-price-col {
  min-width: 0;
}

.csw-pricing-price-col--monthly {
  background: rgba(184, 169, 138, 0.08);
  border-left: 1px solid rgba(184, 169, 138, 0.22);
  padding: 0.65rem 0.65rem 0.65rem 0.85rem;
  border-radius: 0 0.25rem 0.25rem 0;
}

.csw-pricing-price-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.csw-pricing-price-col--once .csw-pricing-price-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.csw-pricing-price-amount {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}

.csw-pricing-price-amount--monthly {
  display: block;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}

.csw-pricing-period {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.02em;
}

.csw-pricing-price-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.45;
}

.csw-pricing-price-amount--devis {
  font-size: 1.65rem;
}

.csw-pricing-lists {
  flex: 1;
  margin-bottom: 1.5rem;
}

.csw-pricing-list-title {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.csw-pricing-list-title--excluded {
  color: var(--silver);
  margin-top: 1.1rem;
}

.csw-pricing-list {
  list-style: none;
}

.csw-pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.csw-pricing-list li.csw-li-sub {
  padding-left: 1.35rem;
  font-size: 0.72rem;
  color: var(--mid);
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.csw-pricing-list .csw-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.csw-pricing-list .csw-icon--yes { color: var(--gold); }
.csw-pricing-list .csw-icon--no { color: var(--silver); }

.csw-pricing-card .btn-primary {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.68rem;
  padding: 0.9rem 1rem;
}

.csw-pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.5;
  text-align: center;
  justify-content: center;
}

.csw-pricing-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold);
}

/* ── PROCESS ── */
.csw-process {
  background: linear-gradient(180deg, var(--smoke) 0%, var(--cream) 100%);
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  padding: 4.5rem 8%;
}

.csw-process-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.csw-process-header .section-h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.csw-process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.csw-process-step {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 0.75rem;
}

.csw-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.csw-process-step-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.csw-process-step-text {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.65;
}

.csw-process-arrow {
  flex-shrink: 0;
  align-self: center;
  color: var(--gold);
  font-size: 1.2rem;
  padding-top: 0.5rem;
  opacity: 0.7;
}

/* ── FAQ ── */
.csw-faq {
  padding: 5rem 8%;
  border-top: 1px solid var(--light);
}

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
  .csw-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .csw-pricing-card--featured,
  .csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card--featured {
    transform: none;
  }
}

@media (max-width: 900px) {
  .csw-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .csw-hero-visual {
    min-height: 300px;
    order: -1;
  }

  .csw-hero-left .section-intro {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .csw-hero {
    padding: 4rem 6% 3rem;
  }

  .csw-pricing {
    padding: 3.5rem 6% 3rem;
  }

  .csw-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .csw-pricing-desc {
    min-height: 0;
  }

  .csw-pricing-price--dual {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .csw-pricing-price-col--monthly {
    border-left: none;
    border-top: 1px solid rgba(184, 169, 138, 0.22);
    padding: 0.85rem 0 0;
    border-radius: 0;
    background: rgba(184, 169, 138, 0.06);
  }

  .csw-pricing-animate-ready:not(.csw-pricing-in-view) .csw-pricing-card {
    transform: translateY(14px);
  }

  .csw-process {
    padding: 3.5rem 6%;
  }

  .csw-faq {
    padding: 3.5rem 6%;
  }

  .csw-process-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 420px;
  }

  .csw-process-arrow {
    display: none;
  }

  .csw-process-step {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(184, 169, 138, 0.2);
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.35rem;
  }

  .csw-process-step:last-child {
    border-bottom: none;
  }

  .csw-process-num {
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: start;
  }

  .csw-process-step-title,
  .csw-process-step-text {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .csw-mockup {
    animation: none;
    will-change: auto;
  }

  .csw-pricing-animate-ready:not(.csw-pricing-in-view) .csw-pricing-card,
  .csw-pricing-animate-ready.csw-pricing-in-view .csw-pricing-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .csw-pricing-card--featured {
    box-shadow: 0 16px 48px rgba(184, 169, 138, 0.22);
  }
}
