/* ===== Palette inspirée du flyer ===== */
:root {
  --paper: #ece8df;
  --paper-dark: #ddd7ca;
  --ink: #1f1d1a;
  --ink-soft: #3b3833;
  --yellow: #ffc20e;
  --yellow-light: #ffd54a;
  --white: #fbfaf6;

  /* Polices système uniquement : condensées si disponibles */
  --font-display: Impact, Haettenschweiler, "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --font-condensed: "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --font-serif: Georgia, "DejaVu Serif", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: var(--paper);
  /* Texture papier froissé */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(ellipse at 85% 90%, rgba(0, 0, 0, .06), transparent 55%);
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Formes jaunes en zigzag (bords du flyer) ===== */
.zigzag {
  position: fixed;
  z-index: 0;
  background: var(--yellow);
  pointer-events: none;
}

.zigzag--right {
  top: 0;
  right: 0;
  bottom: 0;
  width: 150px;
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 35% 100%, 60% 90%, 20% 78%, 55% 66%, 15% 54%, 50% 42%, 20% 30%, 55% 18%, 25% 8%);
}

.zigzag--left {
  left: 0;
  bottom: 0;
  width: 240px;
  height: 150px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .35) 2px, transparent 2.5px) 0 0 / 10px 10px,
    var(--yellow);
  clip-path: polygon(0 20%, 40% 0, 55% 35%, 85% 15%, 100% 55%, 60% 70%, 45% 45%, 0 75%);
}

/* ===== Mise en page ===== */
.page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 1.25rem 3rem;
}

/* ===== En-tête ===== */
.hero {
  text-align: center;
}

.hero__kicker {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(.8rem, 3.6vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.2;
  text-wrap: balance;
}

.hero__title {
  margin: .1em 0 .15em;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(1.9rem, 9.5vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* Bande de scotch jaune déchirée */
.tape {
  display: inline-block;
  margin: 0;
  padding: .45em 1.4em;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(1rem, 3.3vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.2;
  text-wrap: balance;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 3px, transparent 3px 9px),
    var(--yellow);
  transform: rotate(-1deg);
  clip-path: polygon(
    1% 8%, 4% 0, 12% 6%, 25% 1%, 40% 5%, 55% 0, 70% 4%, 85% 0, 96% 5%, 100% 0,
    98% 35%, 100% 60%, 97% 100%, 88% 94%, 75% 100%, 60% 95%, 45% 100%, 30% 94%, 15% 100%, 3% 95%,
    0 70%, 2% 40%
  );
}

/* ===== Teasing ===== */
.teaser {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

.teaser__heading {
  margin: 0 0 .6em;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.teaser__text p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  font-weight: 700;
  max-width: 52ch;
}

/* Pompon jaune */
.deco {
  position: relative;
  height: 330px;
}

.pompom {
  position: absolute;
  top: 0;
  right: 0;
  width: 330px;
  max-width: 100%;
  color: var(--yellow);
  animation: spin 30s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Newsletter ===== */
.newsletter {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 3px var(--ink);
  transform: rotate(-.4deg);
}

.newsletter__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.newsletter__intro {
  margin: .4em 0 1.4em;
  font-weight: 700;
  color: var(--ink-soft);
}

.form__row {
  display: flex;
  gap: .75rem;
}

.form__input {
  flex: 1;
  min-width: 0;
  padding: .85em 1em;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form__input::placeholder {
  color: #8a857b;
}

.form__input:focus {
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 4px var(--yellow);
}

.form__button {
  padding: .85em 1.6em;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.form__button:hover {
  background: var(--yellow-light);
}

.form__button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.form__button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Éléments gérés par le script Brevo */
.input--hidden {
  display: none !important;
}

.sib-hide-loader-icon {
  display: none;
}

.progress-indicator__icon {
  width: 1em;
  height: 1em;
  margin-right: .4em;
  vertical-align: -.1em;
  fill: currentColor;
  animation: spin 1s linear infinite;
}

.entry_errored .form__input {
  border-color: #b3261e;
}

.form__error:empty {
  display: none;
}

.form__error {
  display: block;
  margin-top: .75rem;
  padding: .6em .9em;
  font-size: .9rem;
  color: #661d1d;
  background: #ffeded;
  border: 2px solid #661d1d;
}

.sib-form-message-panel {
  display: none;
  margin-bottom: 1.25rem;
  padding: .8em 1em;
  font-weight: 700;
  border: 3px solid var(--ink);
}

.sib-form-message-panel--active {
  display: block;
}

.form__message--success {
  background: var(--yellow);
}

.form__message--error {
  color: #661d1d;
  background: #ffeded;
}

.form__legal {
  margin: 1rem 0 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ===== Page de confirmation ===== */
.hero__home {
  color: inherit;
  text-decoration: none;
}

.confirmation {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.confirmation__text {
  margin: .6em 0 1.6em;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.confirmation__body {
  margin: 1em 0 1.8em;
  font-weight: 700;
  color: var(--ink-soft);
}

.confirmation__body p {
  margin: 0 0 1em;
}

.confirmation__note {
  padding: .6em 1em;
  color: var(--ink);
  background: var(--yellow);
}

.confirmation__back {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
}

/* ===== Contact ===== */
.contact {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: right;
  padding-right: clamp(0rem, 8vw, 6rem);
}

.contact__label {
  margin: 0 0 .3em;
  font-weight: 900;
  font-size: .95rem;
  text-transform: uppercase;
}

.contact a {
  display: block;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.contact__mail {
  font-size: clamp(1.15rem, 3.5vw, 1.8rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact__phone {
  font-size: 1.1rem;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .tape {
    padding: .5em 1em;
    font-size: clamp(.8rem, 3.6vw, 1.1rem);
  }

  .teaser {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .deco {
    height: 80px;
    order: -1;
  }

  .pompom { width: 80px; }

  .form__row {
    flex-direction: column;
  }

  .form__button {
    width: 100%;
  }

  .confirmation__back {
    padding-left: .8em;
    padding-right: .8em;
  }

  .newsletter {
    transform: none;
    box-shadow: 6px 6px 0 var(--yellow), 6px 6px 0 3px var(--ink);
  }

  .contact {
    text-align: center;
    padding-right: 0;
    padding-bottom: 5rem; /* laisse la place aux formes jaunes */
  }

  body {
    position: relative;
  }

  /* Laisse la place au zigzag fixe de droite */
  .page {
    padding-right: calc(1.25rem + 18px);
  }

  .zigzag--right {
    width: 40px;
  }

  /* Sur mobile, la forme de gauche reste en bas de page au lieu de suivre le défilement */
  .zigzag--left {
    position: absolute;
    width: 150px;
    height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pompom { animation: none; }
  .form__button { transition: none; }
}
