/* ============================================================
   CAGNOTTE CARAÏBES — STYLES MOBILE-FIRST
   ============================================================ */

:root {
  --sand: #f4e6c8;
  --sand-light: #faf2dd;
  --sand-deep: #e8d4a8;
  --turquoise: #1fb8d4;
  --turquoise-deep: #0a7e96;
  --ocean: #053b52;
  --coral: #ff6b4a;
  --coral-deep: #e54b2c;
  --sunset: #ffa84a;
  --palm: #2d5a3d;
  --palm-light: #4a8a5e;
  --ink: #1a2e3a;
  --shadow: rgba(5, 59, 82, 0.15);

  /* safe-area pour iPhone notch */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Fraunces', serif;
  background: var(--sand-light);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: var(--safe-top);
}

a { color: var(--coral-deep); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, svg { max-width: 100%; display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg,
    #87ceeb 0%,
    #b8e0ec 30%,
    #1fb8d4 55%,
    #0a7e96 75%,
    #f4e6c8 75%,
    #f4e6c8 100%);
  padding: 50px 20px 60px;
}

.sun {
  position: absolute;
  top: 10%;
  right: 12%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5d4 0%, #ffd97a 40%, #ffa84a 100%);
  box-shadow: 0 0 50px 12px rgba(255, 200, 100, 0.5);
  animation: pulse 4s ease-in-out infinite;
}

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

.palm {
  position: absolute;
  bottom: 18%;
  font-size: 80px;
  line-height: 1;
  z-index: 2;
  filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.2));
}
.palm.left { left: 0%; transform: rotate(-8deg); animation: swayLeft 6s ease-in-out infinite; }
.palm.right { right: 0%; transform: rotate(8deg) scaleX(-1); animation: swayRight 7s ease-in-out infinite; }

@keyframes swayLeft {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(-5deg); }
}
@keyframes swayRight {
  0%, 100% { transform: rotate(8deg) scaleX(-1); }
  50% { transform: rotate(5deg) scaleX(-1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ocean);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: white;
  text-shadow: 0 4px 30px rgba(5, 59, 82, 0.4);
  margin-bottom: 12px;
  padding: 0 10px;
}

.hero h1 .accent {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-style: italic;
  color: var(--sunset);
  display: inline-block;
  transform: rotate(-3deg);
}

.hero-sub {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  color: white;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 0 20px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 60px 18px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ocean);
  text-align: center;
  margin-bottom: 36px;
  padding: 0 10px;
}

.section-title em {
  font-family: 'Caveat', cursive;
  font-style: italic;
  font-weight: 700;
  color: var(--coral);
}

/* ============================================================
   JAUGE PRINCIPALE
   ============================================================ */
.gauge-card {
  background: linear-gradient(135deg, white 0%, var(--sand-light) 100%);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 20px 50px var(--shadow);
  border: 2px solid white;
  position: relative;
  overflow: hidden;
}

.gauge-card::before {
  content: "🌴";
  position: absolute;
  font-size: 150px;
  top: -25px;
  right: -25px;
  opacity: 0.08;
  transform: rotate(15deg);
  pointer-events: none;
}

.gauge-totals {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.gauge-current {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  line-height: 1;
  color: var(--coral);
  letter-spacing: -0.03em;
}
.gauge-current .currency {
  font-size: 0.5em;
  color: var(--ocean);
  font-weight: 500;
}

.gauge-target {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--ocean);
  opacity: 0.8;
  text-align: right;
}
.gauge-target strong {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ocean);
  display: block;
  margin-top: 2px;
}

.gauge-bar {
  height: 28px;
  background: var(--sand-deep);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.1);
}

.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--turquoise) 0%, var(--coral) 50%, var(--sunset) 100%);
  border-radius: 100px;
  transition: width 1s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 107, 74, 0.5);
}

.gauge-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.gauge-percent {
  text-align: center;
  margin-top: 14px;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--palm);
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat {
  background: white;
  padding: 18px 14px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px var(--shadow);
}

.stat-icon { font-size: 1.4rem; margin-bottom: 6px; display: block; }
.stat-value {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--coral-deep);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean);
  opacity: 0.8;
}

/* ============================================================
   CARTES COUPLES
   ============================================================ */
.couples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 30px;
  align-items: stretch;
  justify-items: stretch;
}

.couple-card {
  background: white;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px var(--shadow);
  position: relative;
  overflow: hidden;
  border-top: 5px solid transparent;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 1;
}

.couple-card:hover {
  box-shadow: 0 14px 36px rgba(5, 59, 82, 0.22);
}

.couple-card.coral { border-top-color: var(--coral); }
.couple-card.turquoise { border-top-color: var(--turquoise); }
.couple-card.mint { border-top-color: var(--palm-light); }
.couple-card.pink { border-top-color: #c44569; }

.couple-emoji {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 70px;
  opacity: 0.12;
  transform: rotate(15deg);
  pointer-events: none;
}

.couple-names {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ocean);
  margin-bottom: 2px;
  word-break: break-word;
}
.couple-names .amp {
  font-family: 'Caveat', cursive;
  color: var(--coral);
  font-size: 1.4rem;
}

.couple-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  margin-bottom: 16px;
}

.couple-progress {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--ocean);
  margin-bottom: 6px;
}
.couple-progress strong {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--coral-deep);
}

.couple-bar {
  height: 10px;
  background: var(--sand-deep);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}
.couple-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}
.couple-card.coral .couple-fill { background: linear-gradient(90deg, var(--coral), var(--sunset)); }
.couple-card.turquoise .couple-fill { background: linear-gradient(90deg, var(--turquoise), #6fd3e6); }
.couple-card.mint .couple-fill { background: linear-gradient(90deg, var(--palm-light), #8bc59e); }
.couple-card.pink .couple-fill { background: linear-gradient(90deg, #c44569, #ff6b9d); }

/* Pastilles des mois */
.couple-months {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.month-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--sand-deep);
  position: relative;
}
.month-dot.paid { background: var(--palm-light); }
.month-dot.future { background: rgba(232, 212, 168, 0.4); }
.month-dot.current { box-shadow: 0 0 0 2px var(--coral); }

.couple-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  text-align: center;
  min-height: 44px;          /* zone tactile minimale */
  user-select: none;
}

.btn:active:not(:disabled) { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.4);
}
.btn-primary:disabled {
  background: var(--palm-light);
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-secondary {
  background: var(--sand-light);
  color: var(--ocean);
  border: 2px solid var(--sand-deep);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--ocean);
  color: white;
  border-color: var(--ocean);
}
.btn-secondary.active {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: white;
}

.btn-link {
  background: transparent;
  color: var(--turquoise-deep);
  border: 1px solid var(--sand-deep);
  font-size: 0.65rem;
  padding: 10px 12px;
  word-break: break-all;
}
.btn-link:hover { background: var(--sand-light); }

/* ============================================================
   COMPTE À REBOURS
   ============================================================ */
.countdown-section {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--turquoise-deep) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.countdown-section .section-tag { color: var(--sunset); }
.countdown-section .section-title { color: white; }
.countdown-section .section-title em { color: var(--sunset); }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.countdown-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 22px 12px;
  text-align: center;
}

.countdown-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 1;
  color: var(--sunset);
  margin-bottom: 5px;
}

.countdown-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 59, 82, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

/* Modal d'identité obligatoire : fond plus opaque + bloque scroll body */
.modal-overlay.welcome-required.active {
  background: rgba(5, 59, 82, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.welcome-locked {
  overflow: hidden;
  height: 100vh;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 28px 22px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(5, 59, 82, 0.4);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ocean);
  margin-bottom: 8px;
}

.modal p {
  color: var(--ocean);
  opacity: 0.85;
  margin-bottom: 18px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.modal input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--sand-deep);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'DM Mono', monospace;
  margin-bottom: 16px;
  -webkit-appearance: none;
}
.modal input:focus { outline: none; border-color: var(--coral); }

.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .btn { flex: 1; }

/* ============================================================
   HISTORIQUE
   ============================================================ */
.activity-list {
  background: white;
  border-radius: 16px;
  padding: 18px 16px;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 8px 24px var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--sand-deep);
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  gap: 12px;
}
.activity-item:last-child { border: none; }
.activity-couple {
  color: var(--ocean);
  font-weight: 500;
  font-size: 0.85rem;
}
.activity-action {
  color: var(--turquoise-deep);
  text-align: right;
  font-size: 0.75rem;
  flex-shrink: 0;
  max-width: 50%;
}
.activity-date {
  font-size: 0.65rem;
  color: var(--ocean);
  opacity: 0.6;
  margin-top: 2px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--ocean);
  color: white;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.4s;
  z-index: 2000;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { background: var(--palm); }
.toast.error { background: var(--coral-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 20px calc(30px + var(--safe-bottom));
  background: var(--ocean);
  color: white;
  text-align: center;
}
.footer-quote {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  color: var(--sunset);
  margin-bottom: 12px;
  line-height: 1.3;
}
.footer-credit {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  line-height: 1.6;
}

/* ============================================================
   CONFETTI
   ============================================================ */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall 3s ease-out forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   BANNIÈRE D'INSTALLATION PWA
   ============================================================ */
.install-banner {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--ocean), var(--turquoise-deep));
  color: white;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(5, 59, 82, 0.4);
  z-index: 500;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.install-banner.show {
  transform: translateY(0);
}

.install-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.install-text strong {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.install-text span {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.install-btn {
  background: var(--sunset);
  color: var(--ocean);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 100px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.install-btn:active { transform: scale(0.95); }

.install-close {
  background: rgba(255,255,255,0.15);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.install-close:active { transform: scale(0.9); }

/* ============================================================
   RESPONSIVE — TABLETTES
   ============================================================ */
@media (min-width: 600px) {
  .section { padding: 70px 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .couples-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .countdown-grid { grid-template-columns: repeat(4, 1fr); }
  .palm { font-size: 110px; }
  .sun { width: 100px; height: 100px; }
}

/* ============================================================
   RESPONSIVE — DESKTOP
   ============================================================ */
@media (min-width: 1024px) {
  .hero { min-height: 70vh; padding: 80px 20px 100px; }
  .section { padding: 90px 24px; }
  .gauge-card { padding: 40px 36px; }
  .couples-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
  .palm { font-size: 140px; }
  .palm.left { left: 2%; }
  .palm.right { right: 2%; }
  .sun { width: 120px; height: 120px; top: 12%; right: 12%; }
  .install-banner { bottom: 24px; }

  .gauge-current { font-size: 4.5rem; }
}

/* ============================================================
   CARTE POSTALE MÉTÉO
   ============================================================ */
.postcard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px auto 0;
  padding: 14px 18px 14px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,230,200,0.96));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(5, 59, 82, 0.3);
  max-width: 360px;
  width: calc(100% - 32px);
  opacity: 0;
  transform: translateY(20px) rotate(-1.5deg);
  transition: opacity 0.6s, transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
  /* Bordure type timbre, façon carte postale */
  border: 2px dashed rgba(5, 59, 82, 0.12);
}

.postcard.show {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg);
}

.postcard:hover {
  transform: translateY(-3px) rotate(0deg);
}

.postcard-header {
  position: absolute;
  top: -10px;
  left: 16px;
}

.postcard-tag {
  display: inline-block;
  background: var(--coral);
  color: white;
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(255, 107, 74, 0.4);
}

.postcard-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.postcard-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.15));
}

.postcard-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.postcard-city {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ocean);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.postcard-country {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--coral-deep);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.postcard-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--ocean);
  flex-wrap: wrap;
}

.postcard-time {
  font-weight: 500;
  color: var(--turquoise-deep);
  font-variant-numeric: tabular-nums;
}

.postcard-temp {
  font-weight: 700;
  color: var(--coral-deep);
}

.postcard-cond {
  opacity: 0.8;
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-size: 0.78rem;
}

.postcard-sep {
  opacity: 0.4;
}

.postcard-shuffle {
  background: var(--sand-deep);
  color: var(--ocean);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.4s;
}
.postcard-shuffle:hover {
  background: var(--coral);
  color: white;
}
.postcard-shuffle.spinning {
  animation: spinShuffle 0.6s ease-out;
}
@keyframes spinShuffle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .postcard {
    max-width: 100%;
    padding: 12px 14px 12px 12px;
  }
  .postcard-icon { font-size: 2rem; }
  .postcard-city { font-size: 0.95rem; }
  .postcard-country { font-size: 0.85rem; }
  .postcard-meta { font-size: 0.65rem; }
}

/* ============================================================
   BANNIÈRE RAPPEL MENSUEL
   ============================================================ */
.monthly-reminder {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  color: white;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(255, 107, 74, 0.5);
  z-index: 600;
  transform: translateY(-200%);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.monthly-reminder.show {
  transform: translateY(0);
}

.reminder-icon {
  font-size: 28px;
  flex-shrink: 0;
  animation: bellShake 2s ease-in-out infinite;
}

@keyframes bellShake {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}

.reminder-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reminder-message strong {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.reminder-message span {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  opacity: 0.95;
  letter-spacing: 0.03em;
}

.reminder-btn {
  background: white;
  color: var(--coral-deep);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 100px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s;
}
.reminder-btn:active { transform: scale(0.95); }

.reminder-close {
  background: rgba(255,255,255,0.2);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

/* Animation pulse sur le bouton "mettre de côté" quand on cible */
.btn.pulse-attention {
  animation: pulseAttention 1s ease-in-out 3;
  position: relative;
  z-index: 5;
}

@keyframes pulseAttention {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 74, 0.7), 0 0 0 8px rgba(255, 107, 74, 0.2);
  }
}

@media (min-width: 1024px) {
  .monthly-reminder { top: 24px; }
}

/* ============================================================
   PERSONNALISATION VISITEUR
   ============================================================ */

/* Bandeau de bienvenue dans le hero */
.welcome-strip {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ocean);
  border-radius: 100px;
  box-shadow: 0 8px 30px rgba(5, 59, 82, 0.25);
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
  max-width: 95%;
}

.welcome-strip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.welcome-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.welcome-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-greeting {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.9rem;
}

.welcome-name {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--coral-deep);
}

.welcome-edit {
  background: var(--sand-deep);
  color: var(--ocean);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.welcome-edit:hover { background: var(--coral); color: white; }
.welcome-edit:active { transform: scale(0.9); }

/* Modal d'accueil */
.welcome-modal {
  text-align: center;
  border-radius: 26px;
  background: linear-gradient(180deg, white, var(--sand-light));
  border-top: 6px solid var(--coral);
}

.welcome-icon {
  font-size: 60px;
  margin-bottom: 14px;
  animation: gentleBob 3s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

.welcome-modal h3 {
  text-align: center;
  font-size: 1.6rem;
}

.welcome-modal p {
  text-align: center;
}

#welcomeInput {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--sand-deep);
  border-radius: 14px;
  font-size: 1.1rem;
  font-family: 'Fraunces', serif;
  text-align: center;
  margin-bottom: 14px;
  -webkit-appearance: none;
  background: white;
}
#welcomeInput:focus { outline: none; border-color: var(--coral); }

.welcome-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

/* Variante grille pour les 8 personnes */
.welcome-quick.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.welcome-quick-btn {
  background: white;
  border: 1.5px solid var(--sand-deep);
  color: var(--ocean);
  padding: 10px 14px;
  border-radius: 14px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-quick-btn:hover {
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  color: white;
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 107, 74, 0.3);
}
.welcome-quick-btn:active { transform: scale(0.95); }

/* Mise en valeur de la carte du visiteur */
.couple-card.is-mine {
  position: relative;
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(255, 107, 74, 0.35);
  border: 2px solid var(--coral);
  border-top-width: 5px;
  animation: cardWelcome 0.8s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.couple-card.is-mine::after {
  content: "C'est toi ! 🌴";
  position: absolute;
  top: -14px;
  right: 18px;
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  color: white;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(255, 107, 74, 0.4);
  white-space: nowrap;
  z-index: 5;
  animation: badgeBounce 0.6s ease-out 0.4s backwards;
}

@keyframes cardWelcome {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(-4px) scale(1); }
}

@keyframes badgeBounce {
  0% { transform: translateY(-10px) scale(0); opacity: 0; }
  60% { transform: translateY(2px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Mobile : badge un peu plus petit pour ne pas dépasser */
@media (max-width: 480px) {
  .welcome-strip { font-size: 0.9rem; padding: 8px 12px 8px 14px; }
  .welcome-name { font-size: 1.3rem; }
  .couple-card.is-mine::after {
    font-size: 0.95rem;
    padding: 4px 12px;
    right: 14px;
    top: -12px;
  }
}


@media (display-mode: standalone) {
  .install-banner { display: none !important; }
  body { padding-top: var(--safe-top); }
}


/* ============================================================
   HUB SUMMER BODY (sur la page principale)
   ============================================================ */
.sb-hub-section {
  padding: 60px 18px;
  background: linear-gradient(180deg, var(--sand-light), #ffeeda);
}

.sb-hub-card {
  background: white;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 14px 40px var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.sb-hub-intro {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--sand-deep);
  margin-bottom: 20px;
}

.sb-hub-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  filter: drop-shadow(2px 3px 6px rgba(0,0,0,0.1));
}

.sb-hub-text h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ocean);
  margin-bottom: 4px;
}

.sb-hub-text p {
  font-size: 0.85rem;
  color: var(--ocean);
  opacity: 0.8;
  line-height: 1.5;
}

/* Bouton "Mon suivi" */
.sb-hub-mybtn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  color: white;
  border-radius: 16px;
  text-decoration: none;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sb-hub-mybtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 107, 74, 0.4);
}

.sb-hub-mybtn-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.sb-hub-mybtn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sb-hub-mybtn-text strong {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.sb-hub-mybtn-text span {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  opacity: 0.95;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.sb-hub-mybtn-arrow {
  font-size: 1.4rem;
  flex-shrink: 0;
  color: white;
  transition: transform 0.2s;
}

.sb-hub-mybtn:hover .sb-hub-mybtn-arrow { transform: translateX(4px); }

/* Section "partagés au groupe" */
.sb-hub-shared-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  margin-bottom: 14px;
}

.sb-hub-shared-icon {
  font-size: 1rem;
}

.sb-hub-shared-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sb-hub-shared-empty {
  text-align: center;
  padding: 26px 16px;
  background: var(--sand-light);
  border-radius: 14px;
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--ocean);
  opacity: 0.7;
}
.sb-hub-shared-empty small {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 6px;
  opacity: 0.7;
}

.sb-hub-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--sand-light);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ocean);
  border: 2px solid transparent;
  transition: all 0.2s;
}

.sb-hub-person:hover {
  background: white;
  border-color: var(--turquoise);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--shadow);
}

.sb-hub-person.is-me {
  border-color: var(--coral);
  background: linear-gradient(135deg, #fff5e8, white);
}

.sb-hub-person-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--sand-deep);
}

.sb-hub-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-hub-avatar-emoji {
  font-size: 1.6rem;
}

.sb-hub-person-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sb-hub-person-info strong {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1rem;
}

.sb-hub-person-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--ocean);
  opacity: 0.7;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.sb-hub-person-arrow {
  font-size: 1.2rem;
  color: var(--turquoise-deep);
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .sb-hub-shared-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sb-hub-card { padding: 20px 16px; }
  .sb-hub-icon { font-size: 2.2rem; }
}

/* ============================================================
   MODAL LOGIN (mot de passe)
   ============================================================ */
.login-modal {
  text-align: center;
}

.login-input-wrap {
  position: relative;
  margin: 8px 0 4px;
}

.login-modal input[type="password"],
.login-modal input[type="text"] {
  width: 100%;
  padding: 14px 50px 14px 18px;
  font-size: 1.1rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  border: 2px solid var(--sand-deep);
  border-radius: 14px;
  background: white;
  color: var(--ocean);
  -webkit-appearance: none;
  text-align: center;
}
.login-modal input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.12);
}

.login-toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
}
.login-toggle-eye:hover {
  opacity: 1;
  background: var(--sand-light);
}

.login-error {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 107, 74, 0.1);
  border-left: 3px solid var(--coral);
  border-radius: 8px;
  color: var(--coral-deep);
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  text-align: left;
}

.login-submit {
  min-width: 140px;
}

/* ============================================================
   GROSSES MODALES ENGAGEANTES (email manquant, notifs)
   ============================================================ */
.big-prompt-modal {
  text-align: center;
  padding: 36px 28px 26px;
  max-width: 480px;
  border-top: 6px solid var(--coral);
}

.big-prompt-modal.big-prompt-coral {
  border-top-color: var(--coral);
}

.big-prompt-modal.big-prompt-turquoise {
  border-top-color: var(--turquoise);
}

.big-prompt-icon {
  font-size: 4rem;
  margin-bottom: 12px;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.15));
  display: inline-block;
  animation: bigPromptIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bigPromptIconPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.big-prompt-icon-bell {
  animation: bigPromptIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
             bigPromptBell 2s ease-in-out 0.6s infinite;
}

@keyframes bigPromptBell {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}

.big-prompt-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 8px;
  font-weight: 700;
}

.big-prompt-turquoise .big-prompt-tag {
  color: var(--turquoise-deep);
}

.big-prompt-modal h3 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--ocean);
  margin: 4px 0 14px;
  letter-spacing: -0.01em;
}

.big-prompt-modal p {
  color: var(--ocean);
  line-height: 1.55;
  margin: 0 0 14px;
  font-size: 1rem;
}

.big-prompt-modal p strong {
  color: var(--coral-deep);
}

.big-prompt-turquoise p strong {
  color: var(--turquoise-deep);
}

.big-prompt-sub {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem !important;
  color: var(--sunset) !important;
  opacity: 0.8;
  margin-bottom: 20px !important;
}

.big-prompt-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.big-prompt-modal .modal-actions .btn {
  flex: 1;
  max-width: 200px;
  padding: 14px 20px;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .big-prompt-modal { padding: 30px 20px 22px; }
  .big-prompt-modal h3 { font-size: 1.4rem; }
  .big-prompt-icon { font-size: 3rem; }
  .big-prompt-modal .modal-actions { flex-direction: column-reverse; }
  .big-prompt-modal .modal-actions .btn { max-width: none; width: 100%; }
}

/* ============================================================
   CARTES COUPLE VERROUILLÉES (autres que celle du visiteur)
   ============================================================ */
.couple-card.is-locked {
  opacity: 0.85;
  position: relative;
}

.couple-card.is-locked .couple-actions button {
  cursor: not-allowed;
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(60%);
  transition: opacity 0.2s, filter 0.2s;
}

.couple-card.is-locked .couple-actions button:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Petit message clin d'œil sous les boutons */
.couple-lock-msg {
  margin-top: 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 168, 74, 0.08), rgba(31, 184, 212, 0.08));
  border-radius: 12px;
  border: 1px dashed rgba(5, 59, 82, 0.15);
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: var(--ocean);
  text-align: center;
  line-height: 1.3;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .couple-lock-msg {
    font-size: 0.95rem;
    padding: 8px 12px;
  }
}
