/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #7c6af7;
  --purple-deep:  #4a3490;
  --purple-light: #C4B5F4;
  --purple-pale:  #2a2340;
  --cream:        #F5F0E8;
  --green:        #3DBF94;
  --green-dark:   #2a9e78;
  --yellow:       #F5C518;
  --yellow-dark:  #d4a800;
  --pink:         #FF6B9D;
  --orange:       #FF8C42;
  --outline:      #0e0c1a;
  --bg:           #13101f;
  --surface:      #1e1a30;
  --border:       #2e2850;
  --text:         #eeeaff;
  --text-muted:   #9990c4;
  --text-dim:     #5a5478;
  --radius:       20px;
  --radius-sm:    12px;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100dvh;
  line-height: 1.6;
}

.hidden { display: none !important; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 16, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  border: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.nav-link-gift {
  color: var(--purple-light);
  border-color: var(--purple-deep);
}

.nav-link-gift:hover {
  background: var(--purple-pale);
  border-color: var(--purple);
  color: var(--purple-light);
}

.hero-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1.5px solid var(--border);
}

.lang-sep {
  color: var(--border);
  font-size: 0.7rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Brand / Logo ── */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.brand img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(107,77,196,0.25));
}

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,106,247,0.2) 0%, transparent 70%),
    var(--bg);
}

/* Centre le contenu du hero sur desktop */
#section-form,
#section-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

/* Confetti décoratifs */
.hero::before,
.hero::after {
  content: '✦';
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.18;
  pointer-events: none;
  color: var(--purple);
}
.hero::before { top: 12%; left: 8%; }
.hero::after  { top: 20%; right: 10%; color: var(--yellow); font-size: 1.8rem; }

/* ── Form ── */
.hero-title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.hero-title span {
  color: var(--purple-light);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  max-width: 300px;
}

.hero-disclaimer {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.date-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.date-form label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  align-self: flex-start;
  font-weight: 600;
}

.date-form input[type="date"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  color-scheme: dark;
}

.date-form input[type="date"]:focus { border-color: var(--purple); }

.error-msg {
  color: #e03070;
  font-size: 0.85rem;
  align-self: flex-start;
  font-weight: 600;
}

/* ── Counter ── */
.counter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.counter-number {
  font-size: clamp(5.5rem, 24vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--cream);
  text-shadow:
    3px 3px 0 var(--purple),
    5px 5px 0 var(--purple-deep);
  letter-spacing: -0.02em;
}

.counter-unit {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.counter-phrase {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 280px;
  font-style: italic;
}

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: var(--purple);
  color: var(--cream);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
  box-shadow: 4px 4px 0 var(--outline);
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--outline);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--outline);
}

.btn-ghost {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.1s;
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-1px);
}

.btn-danger:hover { border-color: #e03070; color: #e03070; }

/* ── Sections ── */
section:not(.hero) {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-header img {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(107,77,196,0.2));
}

.section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 700;
}

/* ── Prochain cap ── */
.next-card {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 4px 4px 0 var(--outline);
}

.next-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.next-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.next-days {
  font-size: 0.82rem;
  color: var(--surface);
  background: var(--purple);
  border: 2px solid var(--outline);
  padding: 0.22rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--outline);
}

.progress-bar-track {
  height: 14px;
  background: var(--purple-pale);
  border-radius: 99px;
  overflow: hidden;
  border: 2px solid var(--outline);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #6fe8bf);
  border-radius: 99px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 8px;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ── Récompenses débloquées ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.milestone-card {
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.25rem 2.5rem;
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--outline);
  transition: transform 0.1s, box-shadow 0.1s;
}

.milestone-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--outline);
}

.milestone-card.unlocked {
  cursor: pointer;
  background: linear-gradient(160deg, #1e1a30 0%, #162a22 100%);
  border-color: var(--green-dark);
}

.milestone-card .card-days {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

.milestone-card .card-reward {
  display: block;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.3;
  text-align: center;
}

.unlock-badge {
  position: absolute;
  bottom: 0.55rem;
  right: 0.6rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--outline);
  box-shadow: 2px 2px 0 var(--outline);
}

/* ── Tous les paliers ── */
.milestones-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.milestones-list::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
  border-radius: 99px;
}

.milestone-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  position: relative;
}

.milestone-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2.5px solid var(--outline);
  flex-shrink: 0;
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
  margin-left: 17px;
}

.milestone-row.done .milestone-dot {
  background: var(--green);
  border-color: var(--outline);
  box-shadow: 0 0 0 3px rgba(61,191,148,0.25);
}

.milestone-row.current .milestone-dot {
  background: var(--yellow);
  border-color: var(--outline);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245,197,24,0.3); }
  50%       { box-shadow: 0 0 0 7px rgba(245,197,24,0.1); }
}

.milestone-row-content { flex: 1; }

.milestone-row-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.milestone-row-days {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.milestone-row.done .milestone-row-days { color: var(--green-dark); }
.milestone-row.current .milestone-row-days { color: var(--purple); }

.milestone-row-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}

.milestone-row.done .milestone-row-name,
.milestone-row.current .milestone-row-name { color: var(--text); }

.milestone-row-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Gestion date ── */
.manage-date {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.copy-confirm {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  background: rgba(61,191,148,0.12);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green-dark);
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 2px solid var(--border);
}

.footer-credit {
  margin-top: 1.5rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: 0.45;
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.footer-disclaimer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Sparkles décoratifs ── */
.sparkle {
  display: inline-block;
  color: var(--yellow);
  font-size: 0.9em;
  margin: 0 0.1em;
}

/* ── Modale certificat ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 10, 26, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-cert {
  position: relative;
  background: linear-gradient(160deg, #1e1a30 0%, #162a22 60%, #1e1a30 100%);
  border: 3px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.5rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 0 1px var(--outline), 8px 8px 0 var(--outline);
  animation: certPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes certPop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Bordure déco en haut */
.modal-cert::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), var(--yellow), var(--green), transparent);
  border-radius: 99px;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--border); }

/* Médaille */
.cert-medal {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: conic-gradient(var(--yellow), var(--orange), var(--yellow-dark), var(--yellow));
  border: 3px solid var(--outline);
  box-shadow: 0 0 0 2px var(--yellow-dark), 4px 4px 0 var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cert-medal-inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-medal-check {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--outline);
  line-height: 1;
}

.cert-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cert-days {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cert-reward {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 1.75rem;
}

.cert-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--outline);
  border: 2px solid var(--outline);
  border-radius: 6px;
  padding: 0.45rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--outline);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Gift counter hero sections ── */
#section-gift-counter,
#section-gift-loading,
#section-gift-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.loading-text {
  color: var(--text-muted);
  animation: fadePulse 1.4s ease-in-out infinite;
}

.error-text {
  color: var(--text-muted);
  line-height: 1.6;
}

@keyframes fadePulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ── Section créer un cadeau ── */
.create-gift {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 2px solid var(--border);
}

.create-gift-header {
  margin-bottom: 2rem;
}

.create-gift-header h2 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.create-gift-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.gift-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gift-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gift-form-group label,
.gift-rewards-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.gift-form-group input[type="text"],
.gift-form-group input[type="date"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  color-scheme: dark;
}

.gift-form-group input:focus { border-color: var(--purple); }

/* ── Reward rows ── */
.gift-rewards-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reward-row {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.reward-row-fields {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.5rem;
}

.reward-days,
.reward-title,
.reward-desc {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.reward-days:focus,
.reward-title:focus,
.reward-desc:focus { border-color: var(--purple); }

.reward-desc {
  resize: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-remove-reward {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.btn-remove-reward:hover {
  color: #e03070;
  background: rgba(224, 48, 112, 0.1);
}

.btn-add {
  align-self: flex-start;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
}

/* ── Gift result ── */
.gift-result {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 2.5px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--outline);
}

.gift-result-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.gift-result-link-wrapper {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-icon:hover {
  color: var(--text);
  border-color: var(--purple);
  background: var(--purple-pale);
}

#gift-result-link {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--purple-light);
  font-size: 0.85rem;
  font-family: monospace;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-result .btn-primary {
  width: auto;
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

/* ── Responsive mobile ── */
@media (max-width: 400px) {
  .cards-grid { grid-template-columns: 1fr; }
  .counter-number { -webkit-text-stroke: 3px var(--outline); }
}

/* ── Desktop ── */
@media (min-width: 768px) {
  .brand img { width: 300px; }

  section:not(.hero) {
    max-width: 760px;
    padding: 2.5rem 2rem;
  }

  .manage-date {
    max-width: 760px;
    padding: 0 2rem 3rem;
  }

  .next-card { padding: 1.8rem 2rem; }

  .next-name { font-size: 1.3rem; }

  .cards-grid {
    gap: 1rem;
  }

  .milestone-card { padding: 2.2rem 1.1rem; }

  .milestone-row { padding: 1rem 0; }
  .milestone-row-name { font-size: 1rem; }
  .milestone-row-text { font-size: 0.87rem; }
  .milestone-dot { width: 14px; height: 14px; }

  .milestones-list::before { left: 24px; }

  /* Image de section à gauche sur desktop */
  .next-cap,
  #section-unlocked,
  .all-milestones {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: start;
    gap: 2rem;
    max-width: 900px;
  }

  .next-cap .section-header,
  .unlocked .section-header,
  .all-milestones .section-header {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    padding-top: 0.5rem;
  }

  .next-cap .section-header img,
  .unlocked .section-header img,
  .all-milestones .section-header img {
    height: 130px;
  }

  .create-gift {
    max-width: 760px;
    padding: 2.5rem 2rem 4rem;
  }

  .reward-row-fields {
    grid-template-columns: 100px 1fr;
  }
}
