/* ============================================================
   Voyage Sardaigne — 13 → 19 juillet 2026
   Design : carnet de voyage méditerranéen, mobile-first
   ============================================================ */

:root {
  --mer: #0b4f6c;
  --mer-fonce: #073a50;
  --turquoise: #01a7c2;
  --turquoise-clair: #e0f5f8;
  --sable: #faf5ec;
  --sable-fonce: #f0e6d4;
  --corail: #ff6b57;
  --corail-fonce: #e5533f;
  --soleil: #ffb703;
  --encre: #1f2d33;
  --encre-douce: #55686f;
  --blanc: #ffffff;
  --vert-ok: #12855f;
  --ombre: 0 2px 14px rgba(11, 79, 108, 0.10);
  --ombre-forte: 0 8px 30px rgba(11, 79, 108, 0.18);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--sable);
  color: var(--encre);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .fancy {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.15;
}

a { color: var(--turquoise); }

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--blanc);
  background: linear-gradient(160deg, var(--mer) 0%, var(--turquoise) 100%);
  overflow: hidden;
}

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 42, 60, 0.85) 0%, rgba(7, 42, 60, 0.25) 45%, rgba(7, 42, 60, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 22px 54px;
}

.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero p.sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 620px;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-cta {
  display: inline-block;
  margin-top: 22px;
  background: var(--blanc);
  color: var(--corail-fonce);
  text-decoration: none;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--ombre-forte);
  transition: transform 0.1s ease;
}
.hero-cta:hover { transform: translateY(-2px); }

/* ---------- Navigation ---------- */

.daynav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sable-fonce);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.daynav::-webkit-scrollbar { display: none; }

.daynav-inner {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  max-width: 1080px;
  margin: 0 auto;
  width: max-content;
  min-width: 100%;
}

.daynav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--mer);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.daynav a small {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--encre-douce);
  line-height: 1.1;
}

.daynav a:hover { background: var(--turquoise-clair); }

.daynav a.active {
  background: var(--mer);
  color: var(--blanc);
}
.daynav a.active small { color: rgba(255, 255, 255, 0.75); }

.daynav a.special { border-color: var(--corail); color: var(--corail-fonce); }
.daynav a.special.active { background: var(--corail); color: var(--blanc); }
.daynav a.special.active small { color: rgba(255,255,255,0.8); }

/* ---------- Layout ---------- */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

section.day, section.block {
  padding-top: 26px;
  margin-top: 8px;
  scroll-margin-top: 74px;
}

/* ---------- En-tête de journée ---------- */

.day-header {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--mer);
  color: var(--blanc);
  box-shadow: var(--ombre-forte);
  min-height: 230px;
  display: flex;
  align-items: flex-end;
}

.day-header img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.day-header::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 42, 60, 0.88), rgba(7, 42, 60, 0.05) 65%);
}

.day-header-content {
  position: relative;
  z-index: 2;
  padding: 22px;
  width: 100%;
}

.day-date {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin-bottom: 4px;
}

.day-header h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }

.day-tagline { margin-top: 6px; font-size: 0.98rem; opacity: 0.93; max-width: 640px; }

.day-mood {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mer);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: var(--ombre);
}

.photo-credit {
  position: absolute;
  bottom: 4px; right: 10px;
  z-index: 3;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Timeline ---------- */

.timeline {
  margin-top: 18px;
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--turquoise), var(--soleil));
  opacity: 0.45;
}

.step {
  position: relative;
  margin-bottom: 16px;
}

.step::before {
  content: '';
  position: absolute;
  left: -23px; top: 14px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--turquoise);
  border: 3px solid var(--sable);
  box-shadow: 0 0 0 2px var(--turquoise);
}

.step-card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.step-photo { position: relative; }

.step-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.step-body { padding: 15px 17px 16px; }

.step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.step-time {
  background: var(--mer);
  color: var(--blanc);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.step h3 { font-size: 1.18rem; color: var(--mer-fonce); }

.step-text { margin-top: 7px; font-size: 0.95rem; color: var(--encre-douce); }
.step-text strong { color: var(--encre); }

.step-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.badge.resa { background: #fff1ef; color: var(--corail-fonce); border-color: #ffc9c0; }
.badge.prix { background: #fff7e0; color: #96690a; border-color: #f4dc9a; }
.badge.maps { background: var(--turquoise-clair); color: var(--mer); border-color: #b3e4ec; }
.badge.maps:hover { background: #c9edf3; }
.badge.info { background: #eef3f5; color: var(--encre-douce); border-color: #d8e2e6; }

.step-tip {
  margin-top: 11px;
  background: var(--turquoise-clair);
  border-left: 4px solid var(--turquoise);
  border-radius: 0 12px 12px 0;
  padding: 9px 13px;
  font-size: 0.88rem;
  color: var(--mer-fonce);
}
.step-tip::before { content: '💡 '; }

/* Trajet entre deux étapes */
.drive {
  position: relative;
  margin: 14px 0 14px 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mer);
  background: var(--sable-fonce);
  border-radius: 999px;
  padding: 6px 15px;
}
.drive::before {
  content: '';
  position: absolute;
  left: -21px; top: 50%;
  width: 9px; height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--soleil);
  border: 2px solid var(--sable);
}

/* ---------- Blocs génériques ---------- */

.block-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--mer-fonce);
  margin-bottom: 6px;
}

.block-sub { color: var(--encre-douce); margin-bottom: 20px; max-width: 720px; }

.block-title .emoji { margin-right: 8px; }

/* ---------- Activités payantes (sélection) ---------- */

.activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .activity-grid { grid-template-columns: 1fr 1fr; }
}

.activity {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 17px;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.1s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.activity.selected {
  border-color: var(--turquoise);
  background: #f4fcfd;
}

.activity-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.activity-check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  accent-color: var(--turquoise);
  margin-top: 3px;
  cursor: pointer;
}

.activity-title { font-size: 1.05rem; color: var(--mer-fonce); }

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--encre-douce);
  font-weight: 700;
}

.stars { color: var(--soleil); letter-spacing: 1px; font-size: 0.85rem; }

.activity-price {
  margin-left: auto;
  text-align: right;
  flex: 0 0 auto;
}

.activity-price .amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--corail-fonce);
  white-space: nowrap;
}

.activity-price .unit {
  display: block;
  font-size: 0.7rem;
  color: var(--encre-douce);
  font-weight: 700;
}

.activity-text { font-size: 0.9rem; color: var(--encre-douce); }

.activity-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.reco-flag {
  display: inline-block;
  background: var(--vert-ok);
  color: var(--blanc);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alt-flag { background: var(--encre-douce); }

/* Barre de total flottante */
.selection-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 60;
  background: var(--mer-fonce);
  color: var(--blanc);
  border-radius: 999px;
  box-shadow: var(--ombre-forte);
  padding: 11px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.25s ease;
  max-width: calc(100vw - 24px);
  white-space: nowrap;
}

.selection-bar.visible { transform: translateX(-50%) translateY(0); }

.selection-bar .total {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  color: var(--soleil);
}

/* ---------- Réservations ---------- */

.resa-list { display: flex; flex-direction: column; gap: 12px; }

.resa-item {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 16px 18px;
  border-left: 5px solid var(--corail);
}

.resa-item.done-style { border-left-color: var(--vert-ok); }

.resa-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.resa-item h3 { font-size: 1.05rem; color: var(--mer-fonce); }

.resa-when {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--corail-fonce);
  background: #fff1ef;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.resa-item p { font-size: 0.9rem; color: var(--encre-douce); margin-top: 6px; }

.resa-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Budget ---------- */

.budget-wrap { overflow-x: auto; }

table.budget {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  min-width: 480px;
}

table.budget th, table.budget td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--sable-fonce);
}

table.budget th {
  background: var(--mer);
  color: var(--blanc);
  font-weight: 800;
  font-size: 0.85rem;
}

table.budget td.amount { font-weight: 800; color: var(--mer-fonce); white-space: nowrap; }
table.budget td.note { color: var(--encre-douce); font-size: 0.85rem; }

table.budget tr.total td {
  background: var(--turquoise-clair);
  font-weight: 800;
  color: var(--mer-fonce);
  border-bottom: none;
}

/* ---------- Marchés & infos ---------- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.market {
  background: var(--blanc);
  border-radius: 14px;
  box-shadow: var(--ombre);
  padding: 14px 16px;
}

.market .day-chip {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blanc);
  background: var(--turquoise);
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.market h3 { font-size: 1rem; margin-top: 8px; color: var(--mer-fonce); }
.market p { font-size: 0.83rem; color: var(--encre-douce); margin-top: 3px; }
.market.tonight .day-chip { background: var(--corail); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}

.info-card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 18px;
}

.info-card h3 { font-size: 1.05rem; color: var(--mer-fonce); margin-bottom: 8px; }
.info-card ul { padding-left: 20px; font-size: 0.9rem; color: var(--encre-douce); }
.info-card li { margin-bottom: 5px; }
.info-card li strong { color: var(--encre); }

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 40px 20px 90px;
  color: var(--encre-douce);
  font-size: 0.85rem;
}

footer .heart { color: var(--corail); }

footer .credits { font-size: 0.68rem; margin-top: 12px; opacity: 0.7; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Divers ---------- */

.pill-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

@media (min-width: 720px) {
  .step-photo img { height: 240px; }
  .day-header { min-height: 280px; }
}

@media print {
  .daynav, .selection-bar, .fab { display: none; }
  .hero { min-height: 30vh; }
}

/* ============================================================
   ALBUM PHOTO (souvenirs.html)
   ============================================================ */

/* Lien vers l'album depuis le planning */
.album-link {
  display: block;
  margin: 24px auto 0;
  max-width: 1080px;
}
.album-link a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(120deg, var(--corail), var(--soleil));
  color: var(--blanc);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--ombre-forte);
  font-weight: 800;
}
.album-link .al-emoji { font-size: 2rem; flex: 0 0 auto; }
.album-link .al-text { flex: 1; }
.album-link .al-text small { display: block; font-weight: 600; opacity: 0.92; font-size: 0.82rem; margin-top: 2px; }
.album-link .al-arrow { font-size: 1.5rem; }

.hero-album { min-height: 60vh; }
.hero-album::after { background: linear-gradient(160deg, rgba(255,107,87,0.72), rgba(11,79,108,0.85)); }
.hero-album { background: linear-gradient(150deg, var(--corail-fonce), var(--mer)); }

.hero-back {
  display: inline-block;
  color: var(--blanc);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
  opacity: 0.9;
}
.hero-back:hover { opacity: 1; }

/* Sections par jour */
.album-day { padding-top: 26px; scroll-margin-top: 74px; }

.album-day-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--sable-fonce);
  padding-bottom: 8px;
}
.album-day-date {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--corail-fonce);
  background: #fff1ef; padding: 3px 10px; border-radius: 999px;
}
.album-day-head h2 { font-size: clamp(1.3rem, 4vw, 1.8rem); color: var(--mer-fonce); }
.album-day-count { margin-left: auto; font-size: 0.82rem; font-weight: 700; color: var(--encre-douce); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 620px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }

.photo {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ombre);
  background: var(--sable-fonce);
  aspect-ratio: 1 / 1;
}
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.photo img:hover { transform: scale(1.05); }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(7,42,60,0.85), transparent);
  color: var(--blanc);
  font-size: 0.78rem;
  padding: 20px 46px 8px 10px;
  pointer-events: none;
}

/* Bouton ❤️ sur chaque vignette */
.heart-btn {
  position: absolute;
  right: 7px; bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 999px;
  padding: 4px 9px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--corail-fonce);
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  transition: transform 0.12s ease, background 0.15s ease;
}
.heart-btn .heart-count { min-width: 8px; }
.heart-btn.liked { background: #fff1ef; }
.heart-btn.pop { transform: scale(1.25); }
.heart-ico { line-height: 1; }

/* Fil des nouveautés */
.album-day.recent { padding-top: 22px; }
.recent-badge { background: linear-gradient(120deg, var(--corail), var(--soleil)) !important; color: var(--blanc) !important; }

.daynav a.empty { color: var(--encre-douce); opacity: 0.55; }
.daynav a.empty small { color: var(--encre-douce); }

/* État vide */
.album-empty { text-align: center; padding: 60px 20px; }
.album-empty-emoji { font-size: 3.5rem; }
.album-empty h2 { font-size: 1.5rem; color: var(--mer-fonce); margin: 12px 0 8px; }
.album-empty p { color: var(--encre-douce); max-width: 420px; margin: 0 auto; }

/* Bouton flottant */
.fab {
  position: fixed;
  bottom: 18px; right: 18px;
  z-index: 60;
  background: var(--corail);
  color: var(--blanc);
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--ombre-forte);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.fab:hover { background: var(--corail-fonce); transform: translateY(-2px); }
.fab:active { transform: translateY(0); }

/* Modale */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7,42,60,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-overlay[hidden], .lightbox[hidden] { display: none; }
@media (min-width: 620px) { .modal-overlay { align-items: center; padding: 20px; } }

.modal {
  position: relative;
  background: var(--sable);
  width: 100%;
  max-width: 460px;
  border-radius: 22px 22px 0 0;
  padding: 26px 22px 30px;
  box-shadow: var(--ombre-forte);
  max-height: 92vh;
  overflow-y: auto;
}
@media (min-width: 620px) { .modal { border-radius: 22px; } }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--sable-fonce); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: var(--encre);
}
.modal-title { font-size: 1.4rem; color: var(--mer-fonce); margin-bottom: 6px; }
.modal-note { font-size: 0.88rem; color: var(--encre-douce); margin-bottom: 16px; }

.field-label {
  display: block;
  font-weight: 800; font-size: 0.82rem;
  color: var(--mer-fonce);
  margin: 14px 0 6px;
}
.field, .field-file {
  width: 100%;
  border: 1.5px solid var(--sable-fonce);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--blanc);
  color: var(--encre);
}
.field:focus { outline: none; border-color: var(--turquoise); }
.field-file { padding: 10px; font-size: 0.9rem; }
.field-error { color: var(--corail-fonce); font-size: 0.85rem; font-weight: 700; margin-top: 8px; }

.btn-primary {
  width: 100%;
  margin-top: 20px;
  background: var(--corail);
  color: var(--blanc);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.btn-primary:hover { background: var(--corail-fonce); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none; border: none;
  color: var(--encre-douce);
  font-family: inherit; font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}
.upload-progress { text-align: center; margin-top: 14px; font-weight: 700; color: var(--mer-fonce); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7,42,60,0.94);
  display: flex; align-items: center; justify-content: center;
}
.lb-img { max-width: 92vw; max-height: 82vh; border-radius: 8px; object-fit: contain; }
.lb-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.15); color: var(--blanc);
  border: none; width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: var(--blanc);
  border: none; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.8rem; cursor: pointer;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-caption {
  position: absolute; bottom: 74px; left: 0; right: 0;
  text-align: center; color: var(--blanc);
  font-size: 0.95rem; padding: 0 20px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.lb-actions {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; padding: 0 16px;
}
.lb-like {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.9); color: var(--corail-fonce);
  border: none; border-radius: 999px; padding: 9px 16px;
  font-family: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer;
}
.lb-like.liked { background: #fff1ef; }
.lb-download {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); color: var(--blanc);
  text-decoration: none; border-radius: 999px; padding: 9px 16px;
  font-weight: 800; font-size: 0.85rem;
}
.lb-download:hover { background: rgba(255,255,255,0.25); }
.lb-delete {
  background: rgba(255,107,87,0.9); color: var(--blanc);
  border: none; border-radius: 999px; padding: 9px 16px;
  font-family: inherit; font-weight: 800; font-size: 0.85rem; cursor: pointer;
}

/* ============================================================
   PAGE D'UPLOAD (upload.html)
   ============================================================ */
.hero-upload { min-height: 42vh; }

.upload-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}

.up-card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 22px 20px 24px;
}
.up-card-title { font-size: 1.3rem; color: var(--mer-fonce); margin-bottom: 6px; }
.up-note { font-size: 0.9rem; color: var(--encre-douce); margin-bottom: 6px; }

.up-day-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--corail-fonce);
  background: #fff1ef; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 10px;
}

.up-section-title { font-size: 1.2rem; color: var(--mer-fonce); margin-bottom: 14px; text-align: center; }

.day-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) { .day-links { grid-template-columns: 1fr 1fr; } }

.day-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--blanc);
  border-radius: 14px;
  box-shadow: var(--ombre);
  padding: 14px 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.day-link:hover { border-color: var(--turquoise); transform: translateY(-2px); }
.day-link-label { font-weight: 800; color: var(--mer); font-size: 0.95rem; }
.day-link-title { color: var(--encre-douce); font-size: 0.85rem; }
.day-link-arrow { margin-top: 6px; font-weight: 800; color: var(--corail-fonce); font-size: 0.85rem; }

.up-added { margin-top: 20px; }
.up-added h3 { font-size: 1rem; color: var(--mer-fonce); margin-bottom: 10px; }
.up-added-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.up-added-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; box-shadow: var(--ombre); }

.up-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.btn-secondary {
  flex: 1;
  text-align: center;
  background: var(--turquoise-clair);
  color: var(--mer);
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
}
.btn-secondary:hover { background: #c9edf3; }
