/* Page d'attente — Le Trouple */
:root {
  --bordeaux: #7B1A35;
  --rose: #F7699A;
  --corail: #F7706F;
  --creme: #FFF9F0;
  --ink: #5a1227;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(38rem 30rem at 8% 6rem, rgba(247,105,154,.13), transparent 70%),
    radial-gradient(34rem 28rem at 95% calc(100% - 6rem), rgba(247,112,111,.13), transparent 70%),
    var(--creme);
  color: var(--bordeaux);
  font-family: Nunito, "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif;
  overflow-x: hidden;
}
/* Sélecteur de langue — coin supérieur droit, discret */
.lang-switch {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
}
.lang-switch a {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--bordeaux);
  opacity: 0.62;
  padding: 0.3rem 0.4rem;
  border-radius: 0.4rem;
}
.lang-switch a:hover,
.lang-switch a.is-active { opacity: 1; }
.lang-switch a.is-active {
  background: rgba(247, 105, 154, 0.18);
}

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.hold {
  flex: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "brand" "photo" "text";
  justify-items: center;
  gap: 1.75rem;
  text-align: center;
}
.hold-brand { grid-area: brand; }
.logo { display: block; width: min(22rem, 84vw); height: auto; }

/* Polaroid / photomaton */
.polaroid {
  grid-area: photo;
  position: relative;
  width: min(19rem, 78vw);
  background: #fff;
  padding: .8rem .8rem 0;
  border-radius: 4px;
  transform: rotate(-2.5deg);
  box-shadow:
    0 1px 2px rgba(91,18,39,.08),
    0 12px 24px -6px rgba(91,18,39,.18),
    0 30px 60px -20px rgba(91,18,39,.28);
  transition: transform .35s ease;
}
.polaroid:hover { transform: rotate(-1deg) translateY(-3px); }
.polaroid img {
  display: block; width: 100%; height: auto;
  border-radius: 2px;
  filter: contrast(1.03);
  background: #ddd;
}
.polaroid figcaption {
  font-family: Caveat, "Segoe Print", "Bradley Hand", cursive;
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.05;
  color: var(--ink);
  padding: .55rem .25rem .85rem;
}
.polaroid figcaption small {
  display: block;
  font-size: 1.2rem;
  color: var(--rose);
  margin-top: .1rem;
}
.heart-ink { color: var(--corail); }
.tape {
  position: absolute; top: -.85rem; left: 50%;
  width: 6.5rem; height: 1.7rem;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(247,105,154,.32);
  border-left: 1px dashed rgba(255,255,255,.6);
  border-right: 1px dashed rgba(255,255,255,.6);
  backdrop-filter: blur(1px);
}

/* Texte */
.hold-text { grid-area: text; width: 100%; max-width: 32rem; }
h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: .7rem;
}
.lead {
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  opacity: .88;
  text-align: center;
}
.dots { display: flex; justify-content: center; gap: .55rem; margin: 1.4rem 0 1.75rem; }
.dots span { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.dots span:nth-child(1) { background: var(--bordeaux); }
.dots span:nth-child(2) { background: var(--rose); }
.dots span:nth-child(3) { background: var(--corail); }

/* Carte newsletter */
.nl-card {
  position: relative;
  text-align: left;
  background:
    linear-gradient(140deg, rgba(255,255,255,.75), rgba(255,255,255,.35)),
    linear-gradient(140deg, #FFE1EB 0%, #FFE7E2 100%);
  border: 1.5px solid rgba(123,26,53,.14);
  border-radius: 1.5rem;
  padding: 1.6rem 1.4rem 1.25rem;
  box-shadow: 0 18px 40px -22px rgba(123,26,53,.35);
  scroll-margin-top: 1rem;
}
.nl-hearts { display: flex; gap: .3rem; margin-bottom: .6rem; }
.nl-hearts svg { width: 1.15rem; height: 1.15rem; }
.nl-hearts svg:nth-child(1) { fill: var(--bordeaux); }
.nl-hearts svg:nth-child(2) { fill: var(--rose); transform: translateY(-3px) rotate(-8deg); }
.nl-hearts svg:nth-child(3) { fill: var(--corail); }
.nl-card h2 {
  font-weight: 800;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: .35rem;
}
.nl-intro { font-weight: 500; line-height: 1.5; opacity: .85; margin-bottom: 1rem; }
.nl-flash {
  font-weight: 700; line-height: 1.45;
  border-radius: .9rem; padding: .7rem .9rem; margin-bottom: .9rem;
}
.nl-success { background: #fff; border: 1.5px solid rgba(123,26,53,.18); color: var(--bordeaux); }
.nl-error { background: #fff3f1; border: 1.5px solid var(--corail); color: #9a1f2c; }
.nl-row { display: flex; gap: .5rem; }
.nl-row input[type=email] {
  flex: 1; min-width: 0;
  font: inherit; font-weight: 600; color: var(--bordeaux);
  background: #fff;
  border: 1.5px solid rgba(123,26,53,.22);
  border-radius: 999px;
  padding: .8rem 1.1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.nl-row input[type=email]::placeholder { color: rgba(123,26,53,.45); }
.nl-row input[type=email]:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(247,105,154,.22); }
.nl-row button {
  font: inherit; font-weight: 800; color: #fff;
  background: var(--bordeaux);
  border: 0; border-radius: 999px;
  padding: .8rem 1.35rem;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(123,26,53,.6);
  transition: background .2s, transform .15s;
}
.nl-row button:hover { background: #8f2242; transform: translateY(-1px); }
.nl-row button:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.nl-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  margin-top: .9rem;
  font-size: .9rem; line-height: 1.45; font-weight: 500;
  cursor: pointer;
}
.nl-consent input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--bordeaux); }
.nl-privacy { margin-top: .7rem; font-size: .85rem; line-height: 1.5; }
.nl-privacy summary {
  cursor: pointer; font-weight: 700; color: var(--bordeaux);
  text-decoration: underline; text-decoration-color: rgba(123,26,53,.35); text-underline-offset: 3px;
  list-style-position: inside;
}
.nl-privacy p { margin-top: .5rem; opacity: .9; }
.nl-privacy a { color: var(--bordeaux); }

.hold-foot {
  text-align: center; font-size: .8rem; font-weight: 600;
  opacity: .6; padding: 0 1rem 1.5rem;
}

@media (max-width: 420px) {
  .nl-row { flex-direction: column; }
  .nl-row button { padding: .85rem 1rem; }
  .nl-card { padding: 1.4rem 1.1rem 1.1rem; }
}

/* Desktop : photo à gauche, texte + carte à droite */
@media (min-width: 900px) {
  .hold {
    grid-template-columns: minmax(0, 25rem) minmax(0, 32rem);
    grid-template-areas: "photo brand" "photo text";
    grid-template-rows: auto 1fr;
    justify-content: center;
    align-items: start;
    column-gap: clamp(3rem, 6vw, 5.5rem);
    row-gap: 1.75rem;
    padding-top: clamp(2.5rem, 6vh, 4.5rem);
    text-align: left;
  }
  .hold-brand, .hold-text { justify-self: start; }
  .logo { width: 21rem; }
  .polaroid { width: 23.75rem; align-self: center; margin-top: 1rem; }
  .dots { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .polaroid, .nl-row button { transition: none; }
}
