/* Restored look: the 3 Nov. original page, kept intact, plus the FR/EN toggle
   and a 5-button chart window row (15-month window). No counters, no meta explainer text. */
:root {
  color-scheme: light dark;
  --bg: #f3f6f4;
  --surface: #ffffff;
  --text: #102e35;
  --dim: #51707a;
  --border: #dce9e7;
  --accent: #07404d;
  --accent-deep: #052f3b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a2129;
    --surface: #103039;
    --text: #edf5f3;
    --dim: #9db8be;
    --border: #1e4550;
    --accent: #0e5a6b;
    --accent-deep: #06222b;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}
.display-font { font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif; }
.wrap { margin: 0 auto; width: 100%; max-width: 48rem; padding: 0 1.25rem; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
a { color: var(--accent); font-weight: 600; }

/* ---------- Accueil ---------- */
header.hero { background: var(--accent-deep); color: #fff; }
header.hero .wrap { padding-top: 2.5rem; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-logo { height: 6rem; width: 6rem; border-radius: 22%; flex: none; }
.seaweed-divider { display: block; width: min(620px, 88%); margin: 1.5rem auto 2rem; }
header.hero h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 700; }
@media (min-width: 640px) { header.hero h1 { font-size: 3rem; } }
header.hero .tagline { margin-top: 0.75rem; font-size: 1.125rem; color: rgba(255,255,255,.85); }
.lang { display: flex; gap: .25rem; flex-shrink: 0; }
.lang button {
  background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff;
  border-radius: 999px; padding: .3rem .8rem; font-weight: 600;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--accent-deep); }
.hero-fig { position: relative; margin-top: 1.5rem; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-actions button {
  background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff;
  border-radius: 999px; padding: .45rem 1rem; font-weight: 700; font-size: 15px;
}
.hero-fig img { display: block; width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 1.5rem 1.5rem 0 0; }
.hero-fig figcaption {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 999px;
  padding: 0.25rem 0.75rem; font-size: 13px; font-weight: 600;
}
.search-card {
  position: relative; z-index: 10; margin-top: -2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(4,32,41,.18);
}
.search-card label { font-size: 14px; font-weight: 600; }
.search-input {
  margin-top: 0.5rem; width: 100%;
  border: 2px solid var(--accent); border-radius: 1rem;
  background: var(--surface); color: var(--text);
  padding: 1rem 1.25rem; font-size: 1.125rem;
}
.search-input::placeholder { color: var(--dim); }
.suggestions {
  position: absolute; left: 0; right: 0; z-index: 20; margin-top: 0.5rem;
  list-style: none; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1rem;
  background: var(--surface); box-shadow: 0 12px 28px rgba(4,32,41,.18);
}
.suggestions button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 0.75rem 1.25rem; color: var(--text);
}
.suggestions button:hover { background: var(--bg); }
.suggestions .s-name { font-weight: 600; }
.suggestions .s-area { display: block; font-size: 14px; color: var(--dim); }
.search-submit {
  margin-top: 1rem; width: 100%;
  background: var(--accent); color: #fff; border: 0;
  border-radius: 1rem; padding: 1rem 1.25rem;
  font-size: 1.125rem; font-weight: 600;
}
.feedback {
  margin-top: 1rem; border: 1px solid var(--border); border-radius: 1rem;
  background: var(--surface); padding: 1.25rem; line-height: 1.6;
}
.feedback ul { list-style: none; margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.feedback li { display: flex; gap: 0.5rem; align-items: stretch; }
.feedback li .choice-btn { flex: 1; min-width: 0; }
.mini-btn { margin-top: 0; align-self: center; flex-shrink: 0; }
.suggestions li { display: flex; align-items: stretch; }
.suggestions li button[data-hotel], .suggestions li button[data-beach] { flex: 1; min-width: 0; }

/* ---------- Favoris (S3) ---------- */
.favorites { margin-top: 2.5rem; }
.favorites h2 { font-size: 1.5rem; font-weight: 700; }
.fav-empty { margin-top: 0.5rem; font-size: 14px; color: var(--dim); }
.favorites ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.5rem; }
.favorites li { display: flex; gap: 0.5rem; align-items: stretch; }
.favorites li .choice-btn { flex: 1; min-width: 0; }

/* ---------- Comparaison (S2) ---------- */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  margin-top: 0; border: 0; border-top: 1px solid var(--border); border-radius: 1rem 1rem 0 0;
  background: var(--surface); padding: 0.75rem 1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  box-shadow: 0 -4px 16px rgba(4,32,41,.18);
}
.compare-bar .back-btn { margin-top: 0; }
body.has-compare { padding-bottom: 4.5rem; }

/* ---------- Message de confirmation (partage, favori, comparaison) ---------- */
.toast {
  display: none; position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  z-index: 70; background: var(--accent-deep); color: #fff;
  border-radius: 999px; padding: 0.75rem 1.25rem; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); white-space: nowrap; max-width: calc(100% - 2rem);
}
.toast.show { display: block; }
body.has-compare .toast { bottom: 5rem; }
.compare-names { flex: 1; min-width: 10rem; font-size: 14px; }
.compare-grid { display: flex; overflow-x: auto; gap: 1rem; margin-top: 1.25rem; padding-bottom: 0.5rem; }
/* Cases de recherche de la comparaison, côte à côte */
.compare-slots { display: grid; gap: .75rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .compare-slots { grid-template-columns: 1fr 1fr; } }
.compare-slot { position: relative; }
.compare-slot .search-input { margin-top: 0; }
.compare-slot-filled {
  display: flex; gap: .5rem; align-items: center;
  border: 1px solid var(--border); border-radius: 1rem;
  background: var(--surface); padding: .75rem 1rem;
}
.compare-slot-filled .s-name { flex: 1; min-width: 0; font-weight: 600; }
.compare-col {
  flex: 0 0 85%; border: 1px solid var(--border); border-radius: 1rem;
  background: var(--surface); padding: 1rem; box-shadow: 0 1px 2px rgba(4,32,41,.06);
}
@media (min-width: 640px) { .compare-col { flex: 1 1 0; min-width: 0; } }
.compare-col h3 { font-size: 1.25rem; line-height: 1.3; }
.compare-col .hotel-fig img { aspect-ratio: 16/10; }
.compare-today { margin-top: 1rem; }
.compare-today .status-big, .compare-today .status-pct .n { font-size: 1.5rem; }
.choice-btn {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--border); border-radius: 0.75rem;
  background: var(--bg); color: var(--text); padding: 0.75rem 1rem;
}
.choice-btn .s-area { display: block; font-size: 14px; color: var(--dim); }
.sat-line { margin-top: 2rem; font-size: 14px; color: var(--dim); }
.countries { margin-top: 2.5rem; }
.countries h2 { font-size: 1.5rem; font-weight: 700; }
.country-grid { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .country-grid { grid-template-columns: 1fr 1fr 1fr; } }
.country-card {
  border: 1px solid var(--border); border-radius: 1rem;
  background: var(--surface); color: var(--text);
  padding: 1rem; text-align: left; box-shadow: 0 1px 2px rgba(4,32,41,.06);
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-weight: 700; font-size: 1rem;
}
.country-card .arrow { font-size: 1.125rem; color: var(--dim); }

/* ---------- Fiche hôtel ---------- */
.back-btn {
  margin-top: 1rem; display: inline-flex;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--accent);
  padding: 0.5rem 1rem; font-size: 14px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(4,32,41,.08);
}
/* Boutons d'action bien visibles (Partager, Favoris, Comparer) */
.action-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.action-btn[aria-pressed="true"] { background: var(--accent-deep); border-color: var(--accent-deep); }
.hotel-fig { position: relative; margin-top: 1.25rem; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(4,32,41,.12); }
.hotel-fig img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hotel-fig .pill {
  position: absolute; top: 1rem; right: 1rem;
  border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.hotel-fig .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.3) 55%, transparent);
  padding: 4rem 1.25rem 1.25rem;
}
.hotel-fig .overlay h2 { color: #fff; font-size: 1.875rem; line-height: 1.2; font-weight: 700; }
.hotel-fig .overlay p { margin-top: 0.25rem; color: rgba(255,255,255,.85); }
.hotel-name { margin-top: 1.25rem; font-size: 1.875rem; line-height: 1.2; font-weight: 700; }
.hotel-area { margin-top: 0.25rem; color: var(--dim); }
.no-photo { margin-top: 0.75rem; font-size: 14px; color: var(--dim); }
.photocap { margin-top: .35rem; font-size: 13px; color: var(--dim); }
.closed-badge {
  display: inline-block; margin-top: 1rem; border-radius: 999px;
  background: #e6e9ea; color: #33424a; padding: .35rem .9rem; font-weight: 700; font-size: 14px;
}
.info-grid { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.sheet-actions .back-btn { margin-top: 0; }
.info-card {
  border: 1px solid var(--border); border-radius: 1rem;
  background: var(--surface); padding: 1rem; box-shadow: 0 1px 2px rgba(4,32,41,.06);
}
.info-card .k { font-size: 13px; font-weight: 600; color: var(--dim); }
.info-card .v { margin-top: 0.25rem; font-size: 1.125rem; line-height: 1.35; font-weight: 700; }
.info-card .s { margin-top: 0.125rem; font-size: 14px; color: var(--dim); }
section.panel {
  margin-top: 2rem; border: 1px solid var(--border); border-radius: 1.5rem;
  background: var(--surface); padding: 1.25rem; box-shadow: 0 1px 2px rgba(4,32,41,.06);
}
@media (min-width: 640px) { section.panel { padding: 1.5rem; } }
section.panel h3 { font-size: 1.5rem; font-weight: 700; }
section.status-panel { margin-top: 1.25rem; padding: 1.5rem; }
.status-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.status-k { font-size: 14px; font-weight: 700; color: var(--dim); }
.status-big { margin-top: 0.25rem; font-size: 2.25rem; line-height: 1.1; font-weight: 700; }
.status-pct { text-align: right; }
.status-pct .n { font-size: 2.25rem; line-height: 1.1; font-weight: 700; }
.status-pct .u { font-size: 14px; color: var(--dim); }
.status-plain { margin-top: 0.75rem; font-size: 1.125rem; line-height: 1.6; }
.source-line { margin-top: 0.75rem; font-size: 14px; color: var(--dim); }
.flags { list-style: none; margin-top: .75rem; display: grid; gap: .5rem; }
.flags li { background: #fff8e1; border: 1px solid #f0df9e; border-radius: .75rem; padding: .5rem .75rem; font-size: 14px; color: var(--text); }

/* ---------- Image satellite ---------- */
.sat-frame { position: relative; overflow: hidden; border-radius: 0.75rem; border: 1px solid var(--border); margin-top: 1rem; }
.sat-frame canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.sat-marker {
  position: absolute; width: 16px; height: 16px; border-radius: 999px;
  border: 3px solid #fff; background: #102e35;
  box-shadow: 0 0 0 2px rgba(16,46,53,.7);
  transform: translate(-50%, -50%); pointer-events: none;
}
.sat-you { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; font-size: 14px; font-weight: 600; }
.sat-you .dot { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--text); background: #fff; display: inline-block; }
.sat-legend { margin-top: 0.75rem; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem 1rem; font-size: 13px; color: var(--dim); }
.sat-legend li { display: flex; align-items: center; gap: 0.5rem; }
.sat-legend .sw { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.sat-caption { margin-top: 0.5rem; font-size: 14px; color: var(--dim); }
.sat-real { margin-top: 1.5rem; }
.sat-real h4 { font-size: 1.125rem; font-weight: 700; }
.sat-real img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0.75rem; border: 1px solid var(--border); margin-top: .75rem; }
.sat-note { margin-top: .5rem; font-size: 14px; color: var(--dim); }
.unavailable { margin-top: 1rem; color: var(--dim); }

/* ---------- Caméra ---------- */
.live-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #d95d39; color: #fff; border-radius: 999px;
  padding: 0.25rem 0.75rem; font-size: 13px; font-weight: 700;
}
.live-badge .pulse { width: 8px; height: 8px; border-radius: 999px; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-badge .pulse { animation: none; } }
.cambox { border: 1px solid var(--border); border-radius: .75rem; padding: .75rem; margin-top: .75rem; }
.cam-name { margin-top: 0.75rem; font-size: 15px; line-height: 1.6; }
.cam-media { margin-top: 0.75rem; }
.cam-media img, .cam-media iframe, .cam-media video {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 0.75rem; border: 1px solid var(--border); background: #000;
}
.cam-caption { margin-top: 0.5rem; font-size: 14px; color: var(--dim); }
.cam-loading {
  display: flex; width: 100%; aspect-ratio: 16/9; align-items: center; justify-content: center;
  border-radius: 0.75rem; background: #000; color: #fff; padding: 0 1.5rem; text-align: center;
  font-size: 15px; font-weight: 600;
}
.video-btn {
  margin-top: 0.75rem; background: var(--accent); color: #fff; border: 0;
  border-radius: 0.75rem; padding: 0.75rem 1rem; font-weight: 600;
}
.cam-links { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 600; color: var(--accent); text-decoration: underline; }
.badge-confirm { background: #fff3cd; color: #664d03; border-radius: 999px; padding: .15rem .7rem; font-size: 13px; font-weight: 700; }
.badge-live { background: #d9ecd9; color: #1d5c1d; border-radius: 999px; padding: .15rem .7rem; font-size: 13px; font-weight: 700; }

/* ---------- Graphique (ancien look, valeurs en bandes) ---------- */
.win-group { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
@media (max-width: 640px) { .win-group { grid-template-columns: repeat(3, 1fr); } .win-group button:nth-child(4), .win-group button:nth-child(5) { grid-column: span 1; } }
.win-btn {
  border-radius: 0.75rem; padding: 0.75rem 0.25rem;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.win-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chart-box { margin-top: 1rem; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-dates { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.chart-readout { margin-top: 0.5rem; min-height: 1.5rem; font-size: 15px; }
.chart-readout .dim { color: var(--dim); }
.chart-note { margin-top: .75rem; font-size: 13px; color: var(--dim); line-height: 1.5; }
.stat-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; text-align: center; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface); padding: 0.75rem 0.5rem; }
.stat-cell .n { font-size: 1.25rem; font-weight: 700; }
.stat-cell .k { font-size: 13px; color: var(--dim); }
.chart-refresh { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.refresh-btn {
  background: var(--accent); color: #fff; border: 0;
  border-radius: 0.75rem; padding: 0.75rem 1rem; font-weight: 600;
}
.refresh-btn:disabled { opacity: 0.6; cursor: default; }
.chart-updated { font-size: 14px; color: var(--dim); }

/* ---------- Recherche ouverte + pied ---------- */
.open-card { margin-top: 2rem; }
.open-row { display: flex; gap: .5rem; margin-top: .75rem; }
.open-row input { flex: 1; min-width: 0; border: 2px solid var(--accent); border-radius: 1rem; background: var(--surface); color: var(--text); padding: .75rem 1rem; font-size: 1rem; }
.open-row button { background: var(--accent); color: #fff; border: 0; border-radius: 1rem; padding: .75rem 1rem; font-weight: 600; white-space: nowrap; }
.open-result { border: 1px solid var(--border); border-radius: .75rem; padding: .75rem 1rem; margin-top: .75rem; }
.open-result button { margin-top: .5rem; background: var(--accent); color: #fff; border: 0; border-radius: .75rem; padding: .5rem .9rem; font-weight: 600; }
footer.site { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2rem 0; }
footer.site .wrap { font-size: 14px; color: var(--dim); }
footer.site strong { color: var(--text); }
.hidden { display: none !important; }
