:root {
  --bg-top: #fdf3f0;
  --bg-bottom: #fbe9e7;
  --card: #ffffff;
  --ink: #5b4a52;
  --ink-soft: #8a747c;
  --rose: #e8a0b4;
  --rose-deep: #d67f9a;
  --gold: #d9a86c;
  --line: #f3d9d3;
  --shadow: 0 20px 60px rgba(214, 127, 154, 0.16);
  --shadow-soft: 0 8px 24px rgba(214, 127, 154, 0.12);
  --radius: 22px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================ PARTICULES ============================ */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -40px;
  font-size: 18px;
  opacity: 0;
  animation: floatUp linear infinite;
  user-select: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

/* ============================ ÉCRAN D'ACCÈS ============================ */
.gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate__card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 36px;
  text-align: center;
  animation: riseIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gate__icon {
  font-size: 52px;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.gate__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--ink);
}

.gate__subtitle {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 28px;
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.gate__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.gate__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fffaf9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate__input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(232, 160, 180, 0.18);
}

.gate__button {
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 10px 24px rgba(214, 127, 154, 0.35);
}

.gate__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(214, 127, 154, 0.45);
}

.gate__button:active {
  transform: translateY(0);
}

.gate__hint {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.gate__error {
  margin-top: 14px;
  font-size: 13.5px;
  color: #c0392b;
  font-weight: 500;
}

/* ============================ APPLICATION ============================ */
#app {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 22px 0 8px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__brand {
  font-size: 20px;
}

.site-header__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-header__logout {
  margin-left: 12px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.site-header__logout:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ============================ HERO / CARROUSEL ============================ */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f7d9df, #fbe9e7);
}

.hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 12s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--rose-deep);
  background: radial-gradient(circle at 50% 40%, #fbe3e8 0%, #f6d3db 100%);
}

.hero__placeholder span {
  font-size: 64px;
  animation: pulse 2.4s ease-in-out infinite;
}

.hero__placeholder p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--rose-deep);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, background 0.2s;
  z-index: 2;
}

.hero__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }

.hero__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}

.hero__dot.is-active {
  background: #fff;
  width: 24px;
  border-radius: 999px;
}

/* ============================ ANNONCE ============================ */
.announcement {
  text-align: center;
  padding: 8px 0;
}

.announcement__headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}

.announcement__message {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
  white-space: pre-line;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.countdown__item {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 18px 26px;
  min-width: 110px;
}

.countdown__value {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--rose-deep);
}

.countdown__label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================ FIL D'ACTUALITÉ ============================ */
.news__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 30px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--rose), var(--gold));
  border-radius: 2px;
}

.news-item {
  position: relative;
  margin-bottom: 26px;
}

.news-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose);
  box-shadow: 0 0 0 4px rgba(232, 160, 180, 0.2);
}

.news-item__card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
  animation: riseIn 0.5s ease both;
}

.news-item__date {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.news-item__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0 8px;
}

.news-item__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  white-space: pre-line;
}

.news-item__image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 14px;
}

/* ============================ SONDAGE ============================ */
.poll {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  text-align: center;
}

.poll__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 22px;
}

.poll__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.poll__option {
  flex: 1 1 140px;
  max-width: 200px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fffaf9;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.poll__option:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.poll__option.is-selected {
  border-color: var(--rose-deep);
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: #fff;
}

.poll__thanks {
  margin-top: 22px;
  font-size: 16px;
  color: var(--rose-deep);
  font-weight: 500;
}

.poll__result {
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbe3e8, #f6d3db);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--rose-deep);
  animation: riseIn 0.5s ease both;
}

/* ============================ FOOTER ============================ */
.site-footer {
  text-align: center;
  padding: 40px 0 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 560px) {
  .hero {
    aspect-ratio: 4 / 3;
  }

  .countdown__item {
    min-width: 90px;
    padding: 14px 18px;
  }

  .countdown__value {
    font-size: 28px;
  }

  .poll__options {
    flex-direction: column;
    align-items: stretch;
  }

  .poll__option {
    max-width: none;
  }
}
