/* ============================================================
   DA CVV — jeucvv.serveurtestluc.fr
   Palette, typographie et composants calqués sur cvv.serveurtestluc.fr
   ============================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: currentColor; text-decoration: none; }
ul, ol { list-style: none; padding-left: 0; }

/* ============================================================
   Variables
   ============================================================ */
:root {
  /* Couleurs CVV */
  --black:      #22262b;
  --grey:       #2b3336;
  --white:      #fff;
  --light:      #efefef;
  --creme:      #fffaf0;
  --dark-creme: #eee1c1;
  --gold:       #be883a;   /* couleur accent principale */
  --gold-dim:   rgba(190,136,58,.12);
  --gold-mid:   rgba(190,136,58,.42);

  /* Texte */
  --color-text:      var(--black);
  --color-text-grey: var(--grey);

  /* Utilitaires */
  --radius:  .75rem;
  --shadow:  0 4px 32px rgba(0,0,0,.18);
  --padding: 1.5rem;

  /* Motif de fond rayé CVV */
  --stripe: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 9px,
    rgba(47,48,48,.7) 9px,
    rgba(47,48,48,.7) 12px
  );
}

/* ============================================================
   Base — fond sombre rayé
   ============================================================ */
body {
  font-family: "zeitung-pro-variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-variation-settings: "opsz" 20, "wght" 400;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--light);
  background:
    var(--stripe),
    linear-gradient(to bottom, var(--black), var(--grey));
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

p, button, a {
  font-family: "zeitung-pro-variable", "Segoe UI", system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.7;
}

strong, b { font-weight: 700; }

/* Titres */
h1, h2, h3, h4 {
  font-family: "Unbounded", sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  padding: 2.5rem 0 1.5rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
  opacity: .85;
  margin-bottom: .5rem;
  margin-top: 1.5rem;
}

h3, h4 {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: .95rem;
}

/* ============================================================
   Navbar CVV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    var(--stripe),
    rgba(34,38,43,.92);
  backdrop-filter: blur(10px);
  border-top: 5px solid var(--gold);
  display: flex;
  align-items: center;
  padding: .6rem var(--padding);
  gap: 1.5rem;
}

.site-header .logo {
  font-family: "Unbounded", sans-serif;
  font-size: .9rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .03em;
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.site-header nav a {
  font-family: "Unbounded", sans-serif;
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: .5rem .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .2s;
}

.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--gold);
}

/* ============================================================
   Sections claires (fond crème CVV)
   ============================================================ */
.beige, .layout, .form-section {
  background-color: var(--creme);
  color: var(--black);
}

/* ============================================================
   Hero — sombre avec motif
   ============================================================ */
.hero, .home-hero, .text-hero, .hero--message {
  position: relative;
  overflow: hidden;
  padding: 4rem var(--padding) 3rem;
  color: var(--white);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid rgba(190,136,58,.4);
  color: var(--gold);
  font-family: "Unbounded", sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35em 1em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1,
.home-hero__title,
.text-hero h1 {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  padding: 0 0 1rem;
}

.hero-intro,
.home-hero__intro,
.text-hero__intro {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.text-hero__date {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  margin-top: .5rem;
}

/* ============================================================
   Carte lot (hero)
   ============================================================ */
.prize-card,
.prize-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--creme);
  color: var(--black);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.prize-card .prize-icon,
.prize-badge__icon { font-size: 2rem; line-height: 1; }

.prize-card .prize-label,
.prize-badge__label {
  font-family: "Unbounded", sans-serif;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--grey);
  margin-bottom: .25rem;
}

.prize-card .prize-value,
.prize-badge__value {
  font-family: "Unbounded", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}

.prize-badge__desc {
  font-size: .82rem;
  color: var(--grey);
  margin-top: .35rem;
  line-height: 1.45;
}

/* ============================================================
   Layout principal
   ============================================================ */
main.concours,
.text-page {
  width: 100%;
  max-width: 680px;
  margin: -1.5rem auto 4rem;
  padding: 0 var(--padding);
  position: relative;
  z-index: 1;
}

.text-page { max-width: 760px; }

/* ============================================================
   Carte formulaire (fond crème)
   ============================================================ */
.form-card {
  background: var(--creme);
  color: var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
}

.form-card h2 {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
  opacity: 1;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Étapes */
.steps { display: flex; gap: .5rem; margin-bottom: 2rem; }

.step {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  color: var(--grey);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--dark-creme);
  color: var(--gold);
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Labels + inputs — style CVV : fond transparent, bordure basse */
label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-family: "Unbounded", sans-serif;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--black);
  margin-bottom: 1.1rem;
}

label small {
  font-family: "zeitung-pro-variable", sans-serif;
  font-weight: 400;
  color: var(--grey);
  font-size: .8rem;
  text-transform: none;
  letter-spacing: 0;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid rgba(34,38,43,.3);
  border-radius: 0;
  padding: .55rem 0;
  font-family: "zeitung-pro-variable", sans-serif;
  font-size: .9rem;
  color: var(--black);
  background: transparent;
  outline: none;
  transition: border-color .2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-bottom-color: var(--gold);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: rgba(34,38,43,.4);
}

/* Checkbox RGPD */
label.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: .6rem;
  font-family: "zeitung-pro-variable", sans-serif;
  font-weight: 400;
  font-size: .82rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--grey);
  cursor: pointer;
}

label.checkbox input[type="checkbox"] {
  margin-top: .15rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

label.checkbox a { color: var(--gold); }

/* Bouton principal — style CVV */
button[type="submit"] {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: .9rem 1.5rem;
  font-family: "Unbounded", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, color .2s;
  margin-top: 1rem;
}

button[type="submit"]:hover {
  background: var(--gold);
  color: var(--white);
}

/* ============================================================
   Messages succès / erreur
   ============================================================ */
.message {
  border-radius: 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
  font-size: .9rem;
}

.message h2 {
  font-size: 1rem;
  margin-bottom: .5rem;
  margin-top: 0;
  opacity: 1;
  color: inherit;
  text-transform: none;
}

.message p { font-size: .88rem; }
.message .small { margin-top: .5rem; font-size: .78rem; opacity: .75; }

.message--success {
  background: rgba(190,136,58,.1);
  border-left: 3px solid var(--gold);
  color: var(--black);
}

.message--error {
  background: rgba(200,50,50,.08);
  border-left: 3px solid #c83232;
  color: #8b0000;
}

/* ============================================================
   Pages message (merci / deja-confirme / lien-invalide)
   ============================================================ */
.hero--message { padding-bottom: 5rem; }

.message-card {
  text-align: center;
  padding: 2.5rem 2.25rem;
}

.message-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.message-body {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--grey);
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.message-body p + p { margin-top: .75rem; }
.message-body strong { color: var(--black); }
.message-body a { color: var(--gold); }

.btn-cta {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border-radius: 0;
  padding: .8rem 2.25rem;
  font-family: "Unbounded", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s, color .2s;
}

.btn-cta:hover {
  background: var(--gold);
}

/* ============================================================
   Home — Héro
   ============================================================ */
.home-hero {
  padding: 5rem var(--padding) 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
  background: var(--stripe), rgba(34, 38, 43, .92);
}

@media (min-width: 780px) {
  .home-hero {
    grid-template-columns: 1fr 340px;
    padding: 6rem 4rem 5rem;
    gap: 4rem;
  }
}

.home-hero__inner { max-width: 560px; }

.home-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  font-weight: 800;
  padding: .5rem 0 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.home-hero__intro {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.home-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn-hero {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: "Unbounded", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .85rem 2rem;
  text-decoration: none;
  transition: background .2s;
}

.btn-hero:hover { background: #a8762e; }

.btn-hero--ghost {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.35);
}

.btn-hero--ghost:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}

/* ============================================================
   Home — Étapes
   ============================================================ */
.home-steps {
  background: var(--creme);
  color: var(--black);
  padding: 4rem var(--padding);
}

.home-steps__inner { max-width: 900px; margin: 0 auto; }

.section-title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: center;
  color: var(--gold);
  opacity: .85;
  position: relative;
  margin-bottom: 3rem;
}

/* Ligne décorative à travers le titre (style CVV) */
.section-title::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(50% - 1px);
  height: 2px;
  background: var(--gold);
  opacity: .25;
}

.section-title span {
  display: inline-block;
  padding: 0 1.5rem;
  background: var(--creme);
  position: relative;
  z-index: 1;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.steps-list__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 1.75rem 1rem;
  background: var(--white);
  border-bottom: 3px solid var(--dark-creme);
  transition: border-color .2s;
}

.steps-list__item:hover { border-color: var(--gold); }

.steps-list__icon {
  font-size: 1.8rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--dark-creme);
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-list__body strong {
  font-family: "Unbounded", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  color: var(--black);
  margin-bottom: .5rem;
}

.steps-list__body p {
  font-size: .82rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ============================================================
   Home — CTA final
   ============================================================ */
.home-cta {
  background: var(--gold);
  padding: 4rem var(--padding);
  text-align: center;
}

.home-cta__inner { max-width: 520px; margin: 0 auto; }

.home-cta h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: 1;
  margin-bottom: .75rem;
}

.home-cta p {
  color: rgba(255,255,255,.85);
  margin-bottom: 1.75rem;
  font-size: .95rem;
}

.home-cta .btn-hero {
  background: var(--black);
  color: var(--white);
}

.home-cta .btn-hero:hover { background: var(--grey); }

/* ============================================================
   Pages texte (règlement, mentions légales)
   ============================================================ */
.text-hero { text-align: left; }
.text-hero__inner { max-width: 760px; margin: 0 auto; }
.text-hero h1 { padding: 1.5rem 0 .75rem; }

.prose {
  background: var(--creme);
  color: var(--black);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 2.5rem 2.75rem;
  line-height: 1.8;
  font-size: .95rem;
}

.prose h2 {
  font-family: "Unbounded", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
  opacity: .9;
  margin: 2rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--dark-creme);
}

.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: "Unbounded", sans-serif; font-size: .85rem; font-weight: 800; margin: 1.25rem 0 .4rem; }
.prose p { margin-bottom: .9rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: .9rem; }
.prose ul > li { list-style: disc; }
.prose ol > li { list-style: decimal; }
.prose li { margin-bottom: .35rem; }
.prose strong { color: var(--black); }
.prose a { color: var(--gold); text-decoration: underline; }
.prose a:hover { color: #a8762e; }

.prose blockquote {
  border-left: 2px solid var(--gold);
  margin: 1.25rem 0;
  padding: .6rem 1rem;
  color: var(--grey);
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--dark-creme);
  margin: 2rem 0;
}

/* ============================================================
   Footer CVV
   ============================================================ */
.site-footer {
  background:
    var(--stripe),
    var(--black);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 2rem var(--padding);
  font-size: .78rem;
  line-height: 1.8;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--gold); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
  .form-card, .prose { padding: 1.5rem 1.25rem; }
  .steps { display: none; }
  main.concours { margin-top: -1rem; }
  .home-hero { text-align: center; }
  .home-hero__inner { max-width: 100%; }
}
