/* Composants réutilisables : polaroïd, bouton, chronologie, cartes, FAQ, champ, étapes, lightbox, pied de page. */

/* ---------- Polaroïd ---------- */
.polaroid {
  /* Cadre blanc de 7 px, sans ombre ni filtre : comme la réf. Bordure (et non padding) pour que le zoom reste dans le cadre. */
  border: clamp(5px, .5vw, 8px) solid #fff;
  background: #fff;
  overflow: hidden;
  rotate: var(--r, 0deg);
  translate: 0 var(--py, 0px);
  will-change: translate;
  transition: rotate .6s var(--ease-out), scale .6s var(--ease-out);
}
.polaroid img { width: 100%; user-select: none; -webkit-user-drag: none; transition: scale .9s var(--ease-out); }
@media (hover: hover) {
  /* Au survol : la photo se redresse, se soulève et l'image zoome doucement dans son cadre */
  .polaroid:hover { rotate: 0deg; scale: 1.05; z-index: 3; }
  .polaroid:hover img { scale: 1.08; }
}

/* ---------- Bouton ---------- */
.btn {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .5s var(--ease-out), box-shadow .3s;
}
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
/* Le padding est sur les libellés (et non sur le bouton) : au repos, le libellé de survol est entièrement hors cadre */
.btn__in, .btn__rev {
  grid-area: 1 / 1;
  display: block;
  padding: 1em 1.9em;
  text-align: center;
  transition: transform .45s var(--ease-out);
}
.btn__rev { transform: translateY(105%); }
.btn:focus-within { outline: 2px solid var(--display); outline-offset: 3px; }
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: .75; }
@media (hover: hover) {
  .btn:hover { transform: scale(1.05); }
  .btn:hover .btn__in { transform: translateY(-105%); }
  .btn:hover .btn__rev { transform: none; }
}

/* ---------- Chronologie (programme) ---------- */
.timeline { display: grid; gap: clamp(26px, 4.5vw, 56px); }
.tl {
  display: grid;
  gap: .4rem;
  padding-top: clamp(16px, 2.2vw, 26px);
  border-top: 1px solid rgba(243, 233, 220, .3);
  border-top: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
}
.tl__time {
  font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--display);
  font-variant-numeric: tabular-nums;
}
.tl__body h3 { font-size: clamp(1.4rem, 2.3vw, 2.1rem); font-weight: 400; line-height: 1.15; }
.tl__body p { max-width: 46ch; margin-top: .5rem; }
@media (min-width: 900px) {
  .tl { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: baseline; }
}

/* ---------- Cartes (hébergements) ---------- */
.cards { display: grid; gap: clamp(14px, 2vw, 24px); }
.card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: 210px;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius-card);
  background: var(--bubble);
  color: var(--ink);
}
.card__kind { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.card__name { margin-top: .6rem; font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.card__meta { max-width: 32ch; font-size: .95rem; opacity: .85; }
.card__link { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Dress code ---------- */
.dress { display: grid; gap: clamp(26px, 4vw, 48px); width: 100%; max-width: 1000px; margin-top: clamp(8px, 2vw, 24px); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches li {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .5em 1.1em .5em .55em;
  border-radius: var(--radius-pill);
  background: var(--bubble);
  font-weight: 600;
  font-size: .95rem;
}
.swatches li::before { content: ""; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.dress__cols { display: grid; gap: clamp(20px, 3vw, 40px); }
.dress__cols h3 { margin-bottom: .5rem; font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; }
.dress__cols p { max-width: 36ch; }
@media (min-width: 800px) { .dress__cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Étapes (playlist) ---------- */
.steps { counter-reset: s; display: grid; gap: .5rem; margin: 1.6rem 0 2rem; }
.steps li { counter-increment: s; display: flex; gap: .9em; align-items: baseline; }
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  flex: none;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: .85rem;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(24px, 4vw, 48px); }
.faq details {
  border-top: 1px solid rgba(46, 51, 65, .25);
  border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  padding-block: 1.1rem;
}
.faq details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6em; line-height: 1; transition: rotate .3s var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { max-width: 60ch; margin-top: .7rem; }

/* ---------- Champ de formulaire ---------- */
.field { display: grid; gap: .45rem; max-width: 26rem; }
.field__label { font-size: .9rem; font-weight: 600; }
.field__input {
  width: 100%;
  padding: .85em 1.1em;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #2E3341;
  font: inherit;
}
.field__input::placeholder { color: #6a6f7d; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(94vw, 1100px);
  max-height: 94svh;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #2E3341;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox::backdrop { background: rgba(15, 12, 10, .78); }
.lightbox__img { width: 100%; max-height: calc(94svh - 90px); object-fit: contain; }
.lightbox__cap { padding: .6rem .4rem .2rem; font-size: .9rem; }
.lightbox__close {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: .55em 1em;
  border-radius: var(--radius-pill);
  background: #2E3341;
  color: #fff;
  font-size: .85rem;
}

/* ---------- Pied de page ---------- */
.footer { padding: clamp(60px, 10vw, 120px) 0 0; text-align: center; font-size: .9rem; }
