/* ============================================================
   link.provencelia.com/go — page « Choisissez votre pays »
   Charte boutique : ivoire #FAFAF8 / encre #1C1C1C / vert #2F4D36.
   Titres Manrope 600, textes Inter 400/500 (polices variables
   self-hostées, sous-ensembles latin + latin-ext pour cs/pl/sk).
   Aucun JS requis : la page est une liste de liens.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('fonts/manrope-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('fonts/manrope-latin-ext-var.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/inter-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/inter-latin-ext-var.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --c-ink: #1C1C1C;
  --c-ink-2: #3A3A3A;
  --c-muted: #6B6B74;
  --c-paper: #FAFAF8;
  --c-white: #FFFFFF;
  --c-line: #E6E4DF;
  --c-green: #2F4D36;
  --c-green-2: #3E6447;
  --c-green-tint: #EEF3EE;
  --f-head: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --r-md: 14px;
  --r-lg: 20px;
  --sh-card: 0 1px 2px rgba(28, 28, 28, .04), 0 6px 20px -12px rgba(28, 28, 28, .18);
  --sh-lift: 0 2px 4px rgba(28, 28, 28, .05), 0 18px 34px -16px rgba(47, 77, 54, .35);
  --wrap: 980px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.top { display: flex; justify-content: center; padding: 34px 24px 8px; }
.brand { display: inline-flex; text-decoration: none; }
.logo { display: block; height: 36px; width: auto; }
.logo-text { font: 600 28px/1 var(--f-head); letter-spacing: .01em; color: var(--c-ink); }

/* ---------- Corps ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 28px 24px 48px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero { text-align: center; margin: 0 auto 28px; max-width: 560px; }
h1 {
  margin: 0 0 10px;
  font: 600 clamp(1.7rem, 2.2vw + 1rem, 2.35rem)/1.15 var(--f-head);
  letter-spacing: -.015em;
  color: var(--c-ink);
}
.sub { margin: 0; color: var(--c-muted); font-size: 1.02rem; }

/* ---------- Recherche ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  width: min(420px, 100%); margin: 0 auto 26px;
  padding: 11px 14px;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: 12px;
  color: var(--c-muted);
}
.search:focus-within { border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(47, 77, 54, .12); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--c-ink);
}
.search input::placeholder { color: var(--c-muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* ---------- Tuiles pays ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  height: 100%;
  padding: 26px 14px 22px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  box-shadow: var(--sh-card);
  text-decoration: none; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-2px); box-shadow: var(--sh-lift); border-color: var(--c-green-2); }
.tile.is-suggested { border-color: var(--c-green); background: linear-gradient(180deg, #FFFFFF 0%, var(--c-green-tint) 100%); }

.flag {
  display: block;
  width: 72px; height: 54px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(28, 28, 28, .1), 0 4px 10px -4px rgba(28, 28, 28, .35);
  background: var(--c-paper);
}
.flag-emoji { display: flex; align-items: center; justify-content: center; font-size: 40px; line-height: 1; box-shadow: none; }
.flag-globe { display: flex; align-items: center; justify-content: center; background: var(--c-green); color: var(--c-white); box-shadow: none; }
.flag-globe svg { width: 28px; height: 28px; }

.tile-name { font: 600 1rem/1.3 var(--f-head); color: var(--c-ink); overflow-wrap: break-word; }
.tile-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-green); color: var(--c-white);
  font: 500 .72rem/1.2 var(--f-body); letter-spacing: .02em;
  box-shadow: 0 4px 10px -6px rgba(47, 77, 54, .7);
}

/* ---------- État vide ---------- */
.empty { text-align: center; color: var(--c-muted); padding: 24px 0; }
.btn {
  display: inline-block; margin-top: 12px;
  padding: 12px 22px; border-radius: var(--r-md);
  background: var(--c-green); color: var(--c-white);
  font-weight: 500; text-decoration: none;
}
.btn:hover { background: var(--c-green-2); }

/* ---------- Pied ---------- */
.foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted); font-size: .85rem;
}
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang select {
  font: inherit; color: var(--c-ink);
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-white);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}
.lang-go { font: inherit; padding: 7px 12px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-white); color: var(--c-ink); cursor: pointer; }
.legal { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .top { padding-top: 26px; }
  .wrap { padding: 20px 16px 36px; }
  .hero { margin-bottom: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 18px 8px 16px; gap: 10px; border-radius: 14px; }
  .flag { width: 56px; height: 42px; }
  .tile-name { font-size: .9rem; }
  .foot { padding: 16px; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover, .tile:focus-visible { transform: none; }
}
