/* Page pilier : création de site web
   Dépend des styles globaux présents dans css/styles.css.
*/

.page-header {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(20rem, 42vw, 29rem);
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
  background: #17191a;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.page-header-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    url("../images/gravity-grid.svg")
    right center / auto 100% no-repeat;
  opacity: 0.34;
}

.page-header-inner {
  max-width: 74rem;
}

.page-header h1 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.page-header-lead {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.essentials-card {
  margin-top: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.essentials-title {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.essentials-card .plain-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
}

.essentials-card .plain-list li {
  margin: 0;
  padding-left: 1.25rem;
}

@media (max-width: 48rem) {
  .essentials-card .plain-list {
    grid-template-columns: 1fr;
  }
}

.plain-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 1.4rem;
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: #c9d752;
}

.pillar-feature-grid {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.statement-panel {
  display: grid;
  place-content: center;
  gap: 0.55rem;
  min-height: 22rem;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(201, 215, 82, 0.08), transparent 42%),
    #1a1c1d;
  text-align: center;
}

.statement-word {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: rgba(255, 255, 255, 0.94);
}

.statement-plus {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  color: #c9d752;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.process-step {
  min-height: 17rem;
  padding: 1.75rem;
  background: var(--bg-main);
}

.process-number {
  display: block;
  margin-bottom: 3.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #c9d752;
}

.process-step h3 {
  margin-bottom: 0.8rem;
}

.process-step p {
  margin: 0;
}

.photo-web-proof {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  margin: 0;
  overflow: visible;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.photo-web-main {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.photo-web-inset {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 37%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.42);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.audience-card,
.principle-card {
  padding: 1.75rem;
  background: var(--bg-panel);
}

.audience-card {
  min-height: 11rem;
}

.audience-card p,
.principle-card p {
  margin-bottom: 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.principle-card {
  min-height: 12rem;
}

.pillar-cta {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.footer-tagline {
  margin: 1.5rem 0 0;
  line-height: 1.7;
}

.footer-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a::before {
  content: "";
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--accent);
}

.cta-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(201, 215, 82, 0.34);
  background:
    linear-gradient(120deg, rgba(201, 215, 82, 0.08), transparent 46%),
    #17191a;
}

.cta-panel > div {
  max-width: 45rem;
}

.cta-panel h2 {
  margin-bottom: 1rem;
}

.cta-panel p:last-child {
  margin-bottom: 0;
}

.cta-panel .button {
  flex: 0 0 auto;
}

/* Projets côte à côte */
.projects-showcase-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.projects-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}

.project-showcase-item {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
}

.project-showcase-title {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.project-showcase-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  margin: 0 0 clamp(3.75rem, 7vw, 5.5rem);
  padding-right: clamp(2.25rem, 5vw, 4rem);
  overflow: visible;
}

.project-showcase-desktop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-showcase-mobile {
  position: absolute;
  right: 0;
  bottom: clamp(-3.5rem, -5vw, -2.5rem);
  width: clamp(6.5rem, 24%, 10rem);
  height: auto;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45);
}

.project-showcase-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.project-showcase-card h4 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.project-showcase-card p {
  margin: 0 0 1.5rem;
}

.project-showcase-card .text-link {
  margin-top: auto;
}

@media (max-width: 56rem) {
  .projects-showcase-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 34rem) {
  .project-showcase-preview {
    padding-right: 2rem;
  }

  .project-showcase-mobile {
    width: 29%;
  }
}

.primary-nav a[aria-current="page"]:not(.button) {
  color: #c9d752;
}

@media (max-width: 68rem) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:last-child {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .page-header {
    min-height: 24rem;
    padding-top: 8rem;
  }

  .page-header-grid {
    inset: 1rem -24rem 0 7rem;
    background-size: auto 88%;
    opacity: 0.26;
  }

  .process-grid,
  .audience-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:last-child {
    grid-column: auto;
    min-height: auto;
  }

  .process-number {
    margin-bottom: 2rem;
  }

  .statement-panel {
    min-height: 17rem;
  }

  .cta-panel {
    display: grid;
    align-items: start;
  }

  .cta-panel .button {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-header-grid {
    transform: none;
  }
}

