/*
Theme Name: Seuil NC25
Theme URI: https://example.com/seuil-nc25
Description: Thème enfant de Twenty Twenty-Five pour un minisite promotionnel inspiré du visuel NC25.
Author: OpenAI
Author URI: https://openai.com
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: seuil-nc25
*/

:root {
  --nc25-red: #cf1200;
  --nc25-red-dark: #b70f00;
  --nc25-red-deeper: #a80d00;
  --nc25-orange: #f0b454;
  --nc25-orange-deep: #edae44;
  --nc25-white: #f6f4f2;
  --nc25-blue: #3225a8;
  --nc25-shadow: rgba(104, 20, 0, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nc25-red);
  color: var(--nc25-white);
}

.wp-site-blocks {
  min-height: 100vh;
}

.nc25-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(56deg, transparent 0 14%, rgba(0, 0, 0, 0.08) 14% 29%, transparent 29% 35%, rgba(0, 0, 0, 0.08) 35% 50%, transparent 50% 56%, rgba(0, 0, 0, 0.08) 56% 70%, transparent 70% 100%),
    linear-gradient(180deg, #d61700 0%, #c80f00 100%);
}

.nc25-page::before,
.nc25-page::after {
  content: "";
  position: absolute;
  inset: auto;
  transform: rotate(-33deg);
  background: rgba(115, 7, 0, 0.22);
  z-index: 0;
}

.nc25-page::before {
  width: 26vw;
  min-width: 180px;
  max-width: 360px;
  height: 120vh;
  left: 6%;
  top: 22%;
}

.nc25-page::after {
  width: 18vw;
  min-width: 120px;
  max-width: 240px;
  height: 110vh;
  left: 44%;
  top: 35%;
  background: rgba(255, 72, 0, 0.16);
}

.nc25-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.nc25-badge {
  align-self: flex-start;
  width: clamp(138px, 26vw, 220px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: #ededed;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-top: 0.2rem;
}

.nc25-badge span {
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--nc25-blue);
  line-height: 1;
}

.nc25-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: -0.35rem;
}

.nc25-ribbons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.nc25-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  background: var(--nc25-orange);
  color: var(--nc25-white);
  border-radius: 1.25rem;
  padding: 0.65rem 1.4rem 0.8rem;
  box-shadow: 0 10px 24px var(--nc25-shadow);
}

.nc25-ribbon--top {
  transform: rotate(4deg);
  padding-inline: 1.35rem 1.75rem;
}

.nc25-ribbon--bottom {
  transform: rotate(-4deg) translateY(-0.35rem);
  border-radius: 1.7rem;
  padding-inline: 1.7rem;
}

.nc25-ribbon strong,
.nc25-ribbon span {
  font-weight: 800;
  line-height: 0.95;
  text-align: center;
}

.nc25-ribbon--top strong {
  font-size: clamp(3.2rem, 9vw, 6.3rem);
  letter-spacing: 0.02em;
}

.nc25-ribbon--bottom span {
  font-size: clamp(2rem, 6vw, 4rem);
}

.nc25-copy {
  max-width: 590px;
  text-align: center;
  margin-top: 1rem;
}

.nc25-copy p {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
}

.nc25-cta {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
}

.nc25-qr-label {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nc25-qr-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: min(76vw, 300px);
}

.nc25-arrow {
  position: absolute;
  width: min(20vw, 95px);
  right: calc(100% + 1rem);
  top: -1.6rem;
  transform: rotate(8deg);
}

.nc25-arrow img {
  display: block;
  width: 100%;
  height: auto;
}

.nc25-qr {
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 1rem;
  padding: 0.9rem;
  box-sizing: border-box;
  width: min(76vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(1px);
}

.nc25-qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  background: white;
}

.nc25-qr-placeholder {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  padding: 1rem;
}

.nc25-footer-brand {
  text-align: center;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: 1rem;
  text-transform: uppercase;
}

.nc25-content-section {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}

.nc25-card {
  background: rgba(255, 255, 255, 0.92);
  color: #321b18;
  border-radius: 1.5rem;
  box-shadow: 0 12px 28px rgba(53, 8, 0, 0.15);
  padding: 1.5rem;
  font-size:16px;
}

.nc25-card h2,
.nc25-card h3 {
  margin-top: 0;
}

.nc25-card a {
  color: #b31300;
}

@media (max-width: 781px) {
  .nc25-shell {
    padding-top: 1.2rem;
    padding-bottom: 2.4rem;
  }

  .nc25-ribbon--top,
  .nc25-ribbon--bottom {
    max-width: 94%;
  }

  .nc25-arrow {
    right: -2.4rem;
    top: -4.1rem;
    width: 78px;
  }

  .nc25-copy {
    max-width: 92%;
  }
}

@media (max-width: 520px) {
  .nc25-page::before {
    left: -10%;
    top: 26%;
  }

  .nc25-page::after {
    left: 50%;
    top: 42%;
  }

  .nc25-arrow {
    right: -1.2rem;
    top: -3.2rem;
    width: 64px;
  }

  .nc25-qr-wrap,
  .nc25-qr {
    width: min(82vw, 240px);
  }

  .nc25-footer-brand {
    padding-top: 0.5rem;
  }
}
