﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --red-darker: #cc0000;
  --red: #ff0000;
  --light: #f0ece4;
  --muted: #8a8a9a;
  --accent: #3a6186;
}

html,
body {
  height: 100%;
  background: var(--darker);
  color: var(--light);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(58, 97, 134, .28) 0%, transparent 65%), radial-gradient(ellipse 60% 50% at 80% 90%, rgba(201, 168, 76, .13) 0%, transparent 60%), var(--darker);
}

  .bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

/* ── Grain overlay ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Main wrapper ── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

/* ── Logo area ── */
.logo-wrap {
  margin-bottom: 2.5rem;
  animation: fadeDown .9s ease both;
}

.logo-img {
  max-width: 220px;
  width: 100%;
  filter: drop-shadow(0 0 18px rgba(201, 168, 76, .35));
}

/* ── red-darker line ── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-darker), transparent);
  margin: 0 auto 2rem;
  animation: fadeUp .9s .2s ease both;
}

/* ── Headline ── */
.headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--red) 0%, var(--light) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeUp .9s .3s ease both;
}

  .headline em {
    font-style: italic;
    font-family: 'Playfair Display', serif;
  }

/* ── Subline ── */
.subline {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto 3rem;
  animation: fadeUp .9s .45s ease both;
}

  .subline strong {
    color: var(--light);
    font-weight: 600;
  }

/* ── Countdown ── */
.countdown-label {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-darker);
  margin-bottom: 1.2rem;
  animation: fadeUp .9s .55s ease both;
}

.countdown {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp .9s .65s ease both;
}

.cd-block {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  min-width: 90px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: border-color .3s;
}

  .cd-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, .08) 0%, transparent 70%);
  }

  .cd-block:hover {
    border-color: rgba(201, 168, 76, .5);
  }

.cd-num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(135deg, var(--red), var(--light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.cd-unit {
  display: block;
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
}

/* ── Progress bar ── */
.progress-wrap {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 3rem;
  animation: fadeUp .9s .8s ease both;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, .08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--red-darker));
  border-radius: 99px;
  width: 0%;
  transition: width 1s ease;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201, 168, 76, .1);
  border: 1px solid rgba(201, 168, 76, .3);
  border-radius: 99px;
  padding: .45rem 1.2rem;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2.5rem;
  animation: fadeUp .9s .9s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--red-darker);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

/* ── Contact ── */
.contact-line {
  font-size: .8rem;
  color: var(--muted);
  animation: fadeUp .9s 1s ease both;
}

  .contact-line a {
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, .3);
    transition: border-color .2s;
  }

    .contact-line a:hover {
      border-color: var(--red);
    }

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .68rem;
  color: rgba(255, 255, 255, .18);
  letter-spacing: .08em;
  z-index: 3;
}

/* ── Decorative lines ── */
.corner-tl,
.corner-br {
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: 2;
  opacity: .25;
}

.corner-tl {
  top: 1.5rem;
  left: 1.5rem;
  border-top: 1px solid var(--red-darker);
  border-left: 1px solid var(--red-darker);
}

.corner-br {
  bottom: 1.5rem;
  right: 1.5rem;
  border-bottom: 1px solid var(--red-darker);
  border-right: 1px solid var(--red-darker);
}

/* ── Animations ── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.85);
  }
}

@media (max-width: 480px) {
  .cd-block {
    min-width: 72px;
    padding: 1rem 1rem;
  }

  .corner-tl,
  .corner-br {
    display: none;
  }
}

/* Formulaire */
.form-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

  .form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color, #333);
    font-size: 0.95rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
  }

    .form-group input[type="text"]:focus,
    .form-group input[type="email"]:focus,
    .form-group input[type="tel"]:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--red, #e74c3c);
      box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    }

  .form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }

    .form-group.checkbox input[type="checkbox"] {
      margin-right: 0.5rem;
      margin-top: 0.25rem;
      cursor: pointer;
      width: 20px;
      height: 20px;
    }

    .form-group.checkbox label {
      margin-bottom: 0;
      cursor: pointer;
      font-weight: 400;
    }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--red, #e74c3c);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

  .btn-submit:hover {
    background-color: var(--red-dark, #c0392b);
  }

  .btn-submit:active {
    transform: scale(0.98);
  }

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  display: none;
}

  .form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }

  .form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
