/* Repoya — repoya.com. Feuille unique, sans ressource tierce (pile de polices système).
   Clair/sombre par prefers-color-scheme. Toute modification : incrémenter ?v= dans les pages. */

:root {
  --accent: #3D3BC7;
  --accent-strong: #2F2DA8;
  --accent-soft: #ECECFB;
  --plum: #700288;
  --navy: #0F1675;
  --bg: #F7F7FB;
  --bg-elev: #FFFFFF;
  --bg-sunk: #EEEEF6;
  --text: #15152B;
  --text-soft: #4A4A66;
  --text-faint: #6B6B85;
  --line: #DEDEEB;
  --ok: #1E7F4F;
  --ok-soft: #E3F4EA;
  --soon: #8A4B00;
  --soon-soft: #FFF1DC;
  --shadow: 0 1px 2px rgba(21,21,43,.06), 0 8px 24px rgba(21,21,43,.07);
  --radius: 18px;
  --radius-s: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8C8AF5;
    --accent-strong: #A9A7FF;
    --accent-soft: #23234A;
    --bg: #0C0C18;
    --bg-elev: #16162A;
    --bg-sunk: #111122;
    --text: #EEEEF8;
    --text-soft: #B8B8D0;
    --text-faint: #9191AC;
    --line: #2A2A45;
    --ok: #6FD39E;
    --ok-soft: #12301F;
    --soon: #FFC46B;
    --soon-soft: #33250F;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--bg-elev); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-sunk); }
.lang, .menu { position: relative; }
/* Icône de profil devant la langue (13/10/2026, demande de David) : même pastille que la langue et le menu. */
.compte {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); text-decoration: none;
}
.compte svg { width: 20px; height: 20px; }
.compte:hover { color: var(--accent); }
@media (max-width: 420px) { .site-header .wrap { gap: 8px; } }
/* Très petit écran (320 px) : le logo seul, le nom reste lu par les lecteurs d'écran. */
@media (max-width: 360px) { .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.lang summary, .menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .9rem;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text);
  min-height: 40px;
}
.lang summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.lang ul, .menu nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none; min-width: 180px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang li a, .menu nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.lang li a:hover, .menu nav a:hover { background: var(--bg-sunk); }
.lang li a[aria-current="true"] { color: var(--accent); }
.menu { display: none; }
.menu nav { display: flex; flex-direction: column; min-width: 220px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Boutons, pastilles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #0C0C18; } }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-soon { background: var(--soon-soft); color: var(--soon); }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Héros ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-soft); max-width: 36em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero .note { color: var(--text-faint); font-size: .92rem; margin: 0; }
.eyebrow { margin-bottom: 18px; }
.hero-visual {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; justify-self: center;
  border-radius: 36px; overflow: hidden;
  background: linear-gradient(155deg, var(--plum) 0%, #3A0E9E 45%, var(--navy) 100%);
  box-shadow: 0 30px 60px -20px rgba(47,45,168,.55);
}
.hero-visual .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .icon {
  position: absolute; left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%);
  border-radius: 22%; box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.hero-visual .chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.94); color: #15152B; border-radius: 14px; padding: 8px 12px;
  font-size: .85rem; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.hero-visual .chip svg { width: 18px; height: 18px; color: #3D3BC7; }
.hero-visual .chip-a { right: 7%; bottom: 8%; }
.hero-visual .chip-b { right: 7%; top: 9%; }
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 380px; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head p { color: var(--text-soft); font-size: 1.08rem; }
.alt { background: var(--bg-sunk); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px;
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #0C0C18; } }
.steps p { color: var(--text-soft); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 14px; }
.card p { color: var(--text-soft); margin: 0; font-size: .97rem; }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.card .ico svg { width: 24px; height: 24px; }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card.soon { box-shadow: none; background: transparent; border-style: dashed; }
.card.soon .ico { background: var(--soon-soft); color: var(--soon); }

.group-title { display: flex; align-items: center; gap: 12px; margin: 40px 0 16px; font-size: 1.25rem; }
.group-title:first-of-type { margin-top: 0; }

/* Bandeau confidentialité */
.privacy-band {
  background: linear-gradient(150deg, var(--plum), #3A0E9E 50%, var(--navy));
  color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.privacy-band h2 { color: #fff; }
.privacy-band p { color: rgba(255,255,255,.86); }
.privacy-band a { color: #fff; }
.privacy-band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.privacy-band li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px; }
.privacy-band li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; } }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.specs div { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; }
.specs dt { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.specs dd { margin: 6px 0 0; font-weight: 650; }
@media (max-width: 900px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .specs { grid-template-columns: 1fr; } }

.availability { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 24px; }
.availability p { margin: 0; color: var(--text-soft); max-width: 40em; }

/* ---------- Pages de texte ---------- */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 800px; }
.page header.intro { margin-bottom: 28px; }
.page header.intro p { color: var(--text-soft); font-size: 1.08rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose .updated { color: var(--text-faint); font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius-s); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-sunk); font-weight: 750; }
tr:last-child td { border-bottom: 0; }
.callout { background: var(--accent-soft); border-radius: var(--radius-s); padding: 16px 18px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-s); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 18px 16px; color: var(--text-soft); }
.faq .answer p:last-child { margin: 0; }
.faq-group { margin: 34px 0 12px; font-size: 1.2rem; }

.contact-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 36px; }
.contact-card p { margin: 0; color: var(--text-soft); }

/* Forum (bientôt) */
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .topics { grid-template-columns: 1fr; } }
.topics ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--text-soft); }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound img { width: 96px; margin: 0 auto 20px; border-radius: 22px; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: .95rem; color: var(--text-soft); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--text-faint); font-size: .88rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* Tailles des icônes en ligne (sans elles, un SVG sans largeur prend toute la place) */
.btn svg, .lang summary svg, .contact-card svg { width: 20px; height: 20px; flex: none; }
.privacy-band li svg { color: #fff; }

/* ---------- Formulaire de contact (30/09/2026) — sans JavaScript ---------- */
.contact-form { display: grid; gap: 18px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 28px); box-shadow: var(--shadow); }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; min-height: 48px;
}
.contact-form textarea { resize: vertical; min-height: 180px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .hint, .contact-form .form-note { margin: 0; color: var(--text-faint); font-size: .92rem; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .btn svg { width: 20px; height: 20px; }
/* Pot de miel : hors écran pour les humains, rempli par les robots. */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result { padding: 24px 0; }
.result ul { color: var(--text-soft); padding-left: 1.2em; }
.result .btn { margin-top: 8px; }

/* ---------- Crédit « Créé avec ❤️ par ElpisIA » — identique aux autres sites ElpisIA ---------- */
.site-footer .ftr-made { display: inline-flex; align-items: center; gap: .34rem; flex-wrap: wrap; }
.ftr-heart {
  display: inline-block;
  filter: brightness(1.12) saturate(1.15) drop-shadow(0 0 7px rgba(255,60,90,.85)) drop-shadow(0 0 16px rgba(255,60,90,.5));
  animation: ftrHeartPulse 1.6s ease-in-out infinite;
}
@keyframes ftrHeartPulse {
  0%, 100% { transform: scale(1); filter: brightness(1.12) saturate(1.15) drop-shadow(0 0 7px rgba(255,60,90,.85)) drop-shadow(0 0 15px rgba(255,60,90,.45)); }
  50% { transform: scale(1.18); filter: brightness(1.22) saturate(1.25) drop-shadow(0 0 10px rgba(255,80,110,1)) drop-shadow(0 0 22px rgba(255,60,90,.7)); }
}
@media (prefers-reduced-motion: reduce) { .ftr-heart { animation: none; } }
.site-footer .ftr-link { font-weight: 600; }

/* Bandeau de consentement (assets/repoya-analytics.js) — aucun style en ligne : la CSP l'interdit. */
.ck { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px;
  background: var(--bg-elev); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 22, 117, .16); }
.ck-txt { margin: 0; flex: 1 1 300px; font-size: .93rem; line-height: 1.5; color: var(--text-soft); }
.ck-txt a { color: var(--accent); font-weight: 600; }
.ck-bs { display: flex; gap: 10px; }
.ck-b { font: inherit; font-size: .92rem; font-weight: 600; min-width: 112px; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.ck-no { background: var(--bg-sunk); color: var(--text); border: 1px solid var(--line); }
.ck-ok { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.ck-b:hover { filter: brightness(1.06); }
.ck-b:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Téléphone (contrôle du 13/10/2026 : le bandeau, haut de 158 px, cachait légendes, flèches et points du diaporama) :
   bandeau compact, texte à gauche et les deux boutons, de même taille, l'un sous l'autre à droite. */
@media (max-width: 600px) {
  .ck { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); flex-wrap: nowrap; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; }
  .ck-txt { flex: 1 1 auto; min-width: 0; font-size: .8rem; line-height: 1.38; }
  .ck-bs { flex: 0 0 auto; flex-direction: column; gap: 6px; }
  .ck-b { min-width: 0; width: 100%; padding: 8px 14px; font-size: .85rem; line-height: 1.2; }
}
@media (prefers-color-scheme: dark) { .ck-ok { color: #0C0C18; } .ck { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); } }
/* Bandeau affiché (classe et hauteur --ck-h posées par repoya-analytics.js) : marge basse de la page, pour que la fin
   de page reste atteignable, et diaporama ramené à la hauteur libre de l'écran s'il le faut, pour que ses légendes,
   flèches et points restent visibles au-dessus du bandeau. Rien ne change une fois le choix fait. */
html.ck-ouvert { scroll-padding-bottom: calc(var(--ck-h, 0px) + 16px); }
html.ck-ouvert body { padding-bottom: calc(var(--ck-h, 0px) + 16px); }
html.ck-ouvert .diapo { --diapo-l: min(236px, 64vw, max(150px, calc((100svh - var(--ck-h, 0px) - 250px) * .46))); }

/* Carte du monde (page Carte, 12/10/2026) */
.page-carte { padding-bottom: 48px; }
.page-carte header.intro { margin-bottom: 18px; }
.carte-compte { font-weight: 600; color: var(--accent); min-height: 1.4em; }
/* Filtres par type de lieu (12/10/2026) : puces cumulables au-dessus de la carte ; elles passent à la ligne
   sur grand écran et défilent horizontalement sur téléphone (jamais de défilement de la page). */
/* Listes Pays et Ville (12/10/2026) au-dessus des puces. */
.carte-listes { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; margin: 0 auto 10px; padding: 0 16px; }
.carte-liste { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; flex: 0 1 auto; padding: 8px 34px 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233D3BC7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center; color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.carte-liste:hover { border-color: var(--accent); }
.carte-liste:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carte-liste:disabled { opacity: .5; cursor: default; }
@media (max-width: 700px) { .carte-liste { flex: 1 1 140px; } }
.carte-filtres { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; margin: 0 auto 12px; padding: 0 16px; }
.carte-filtres:empty { display: none; }
.carte-filtre { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.carte-filtre:hover { border-color: var(--accent); }
.carte-filtre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carte-filtre small { font-size: .8em; font-weight: 500; color: var(--text-soft); }
.carte-filtre[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.carte-filtre[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.carte-filtre.vide:not([aria-pressed="true"]) { opacity: .5; }
@media (max-width: 700px) {
  .carte-filtres { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .carte-filtres::-webkit-scrollbar { display: none; }
}
/* Carte plus grande (12/10/2026, demandes de David) : toute la largeur de la page et presque toute la hauteur d'écran. */
.carte-cadre { position: relative; max-width: none; margin: 0 0 32px; padding: 0 16px; }
.carte { height: calc(100vh - 140px); height: calc(100svh - 140px); min-height: 520px; max-height: 1200px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunk); box-shadow: var(--shadow); }
.carte-etat { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; max-width: calc(100% - 64px); padding: 12px 16px; border-radius: var(--radius-s); background: var(--bg-elev); color: var(--text-soft); box-shadow: var(--shadow); text-align: center; }
.carte-volet { position: absolute; z-index: 5; top: 12px; right: 28px; width: min(380px, calc(100% - 56px)); max-height: calc(100% - 24px); overflow: auto; padding: 16px 18px; border-radius: var(--radius-s); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line); }
.carte-volet h2 { font-size: 1.12rem; margin: 0 28px 4px 0; }
.carte-photo { margin: -16px -18px 12px; }
.carte-photo img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: var(--radius-s) var(--radius-s) 0 0; background: var(--bg-sunk); }
/* Crédit photo (13/10/2026, décision de David) : aucun pour CC0 / domaine public ; sinon « © Auteur · Licence », gris,
   petit, sous l'image (jamais posé dessus), une ligne coupée par une ellipse (texte complet en title). */
.carte-photo figcaption { padding: 4px 18px 0; font-size: .7rem; line-height: 1.4; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-photo-credit { color: inherit; text-decoration: none; }
.carte-photo-credit:hover, .carte-photo-credit:focus-visible { text-decoration: underline; }
.carte-meta { margin: 0 0 10px; color: var(--text-soft); font-size: .92rem; }
.carte-desc { margin: 0 0 10px; white-space: pre-line; font-size: .95rem; }
.carte-auteur { margin: 0; color: var(--text-faint); font-size: .85rem; }
.carte-actions { margin: 0 0 12px; }
.carte-forum { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; }
.carte-forum:hover { background: var(--accent-strong); color: #fff; }
.carte-forum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carte-fermer { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-sunk); color: var(--text-soft); font-size: 20px; line-height: 1; cursor: pointer; }
.carte-fermer:hover { color: var(--text); }
.carte-credit { color: var(--text-faint); font-size: .85rem; }
.carte .maplibregl-ctrl-attrib a { color: inherit; }
@media (max-width: 600px) {
  .carte { height: 80vh; height: 80svh; min-height: 420px; }
  .carte-volet { top: auto; bottom: 12px; right: 28px; left: 28px; width: auto; max-height: 55%; }
}

.lang-drapeau { font-size: 1.15em; line-height: 1; margin-right: 2px; }

/* Titres modernes et icônes colorées (12/10/2026, demande de David) : pastille d'icône en dégradé devant les
   titres (couleurs --c1/--c2 par section), mots clés en dégradé indigo → violet → prune. */
.titre-moderne { display: flex; align-items: center; gap: .5em; letter-spacing: -0.03em; }
.titre-ico { flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: .36em;
  background: linear-gradient(135deg, var(--c1, #3D3BC7), var(--c2, #B0259E)); color: #fff;
  box-shadow: 0 10px 24px -10px var(--c1, #3D3BC7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.titre-ico svg { width: 56%; height: 56%; }
.accent { background: linear-gradient(115deg, #3D3BC7 0%, #6A2BC2 45%, #B0259E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-titre { letter-spacing: -0.035em; }
@media (prefers-color-scheme: dark) { .accent { background-image: linear-gradient(115deg, #A9A7FF, #D7A6F5 60%, #F2A6D8); } }

/* Fond blanc « glassy » (12/10/2026, demande de David) : blanc avec de légers halos de couleur fixes, et des
   surfaces en verre dépoli (cartes, bandes, en-tête). Mode clair seulement ; le mode sombre ne change pas. */
@media (prefers-color-scheme: light) {
  :root { --bg: #FFFFFF; }
  body {
    background:
      radial-gradient(42vw 42vw at 6% -8%, rgba(61, 59, 199, .10), transparent 70%),
      radial-gradient(38vw 38vw at 98% 6%, rgba(176, 37, 158, .08), transparent 70%),
      radial-gradient(48vw 48vw at 72% 108%, rgba(14, 165, 233, .07), transparent 70%),
      #FFFFFF;
    background-attachment: fixed;
  }
  .site-header { background: rgba(255, 255, 255, .62); border-bottom-color: rgba(222, 222, 235, .7); }
  .alt { background: rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .8); border-bottom: 1px solid rgba(255, 255, 255, .8); }
  .card, .specs div, .carte-filtre, .carte-liste {
    background-color: rgba(255, 255, 255, .66);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    border-color: rgba(255, 255, 255, .9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 30px -14px rgba(30, 27, 75, .22);
  }
  .carte-filtre[aria-pressed="true"] { background-color: var(--accent); }
}

/* Couleurs des pictogrammes de titre (13/10/2026) : classes et non attribut style, que la CSP
   (style-src 'self') bloque. */
.titre-ico.ti-indigo { --c1: #3D3BC7; --c2: #B0259E; }
.titre-ico.ti-ciel { --c1: #0EA5E9; --c2: #3D3BC7; }
.titre-ico.ti-orange { --c1: #F97316; --c2: #DB2777; }
.titre-ico.ti-vert { --c1: #10B981; --c2: #0EA5E9; }
.titre-ico.ti-violet { --c1: #6366F1; --c2: #A855F7; }

/* Diaporama des captures de l'app (accueil, section « L'app Repoya », 13/10/2026). La piste défile
   d'elle-même au doigt ; repoya-diaporama.js ajoute .js, la vue active, les flèches et les points. */
.diapo { --diapo-l: 236px; position: relative; margin: 6px 0 44px; }
.diapo-piste { position: relative; display: flex; gap: 26px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 14px calc(50% - var(--diapo-l) / 2) 10px; scrollbar-width: none; }
.diapo-piste::-webkit-scrollbar { display: none; }
.diapo-piste:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.diapo-vue { flex: 0 0 var(--diapo-l); margin: 0; scroll-snap-align: center; text-align: center;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.diapo.js .diapo-vue { opacity: .5; transform: scale(.88); }
.diapo.js .diapo-vue.actif { opacity: 1; transform: none; }
.diapo-ecran { display: block; padding: 7px; border-radius: 38px; background: #101022;
  box-shadow: 0 34px 60px -30px rgba(30, 27, 75, .6), 0 12px 24px -16px rgba(30, 27, 75, .35), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.diapo-ecran img { width: 100%; height: auto; border-radius: 31px; background: var(--bg-sunk); }
.diapo-vue figcaption { margin-top: 16px; font-weight: 650; font-size: .98rem; line-height: 1.35; color: var(--text); }
.diapo-vue figcaption span { display: block; margin-top: 3px; font-weight: 400; font-size: .88rem; color: var(--text-soft); }
.diapo-commandes { display: none; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.diapo.js .diapo-commandes { display: flex; }
.diapo-fleche { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); }
.diapo-fleche:hover { border-color: var(--accent); color: var(--accent); }
.diapo-fleche svg { width: 20px; height: 20px; }
.diapo-prec svg { transform: scaleX(-1); }
.diapo-points { display: flex; gap: 7px; }
.diapo-point { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--line); transition: width .3s, background .3s; }
.diapo-point[aria-current="true"] { width: 24px; background: linear-gradient(90deg, #3D3BC7, #B0259E); }
@media (max-width: 600px) { .diapo { --diapo-l: min(64vw, 236px); } .diapo-piste { gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .diapo-vue, .diapo-point { transition: none; } }

/* Note sur 5 étoiles dans la fiche d'un lieu de la carte (13/10/2026). */
.carte-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 12px; font-size: .95rem; }
.carte-etoiles { display: inline-flex; gap: 1px; font-size: 1.15rem; line-height: 1; }
.carte-etoiles .plein { color: #F5A524; }
.carte-etoiles .vide { color: var(--line); }
.carte-etoiles .demi { background: linear-gradient(90deg, #F5A524 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.carte-note strong { font-size: 1rem; }
.carte-note-n { color: var(--text-soft); }
.carte-noter { flex-basis: 100%; font-size: .9rem; font-weight: 600; color: var(--accent); }

/* Raccourci vers « l'essentiel du pays » (fiche sous la carte, 13/10/2026). */
.carte-essentiel { align-self: center; font-size: .92rem; font-weight: 650; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.carte-essentiel[hidden] { display: none; }

/* Liste des lieux sous la carte (13/10/2026) : suit les filtres de la carte, photo d'abord, 24 par page. */
.carte-liste-zone { max-width: 1320px; margin: 26px auto 10px; padding: 0 16px; }
.carte-liste-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.carte-liste-tete h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }
.carte-liste-n { margin: 0; color: var(--text-soft); font-size: .95rem; }
/* Sélecteur « Trier » de la liste (13/10/2026) : à droite de l'en-tête, à la ligne sur téléphone. */
.carte-tri { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--text-soft); }
.carte-tri .carte-liste { flex: 0 1 auto; }
@media (max-width: 600px) { .carte-tri { margin-left: 0; } }
.carte-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.carte-carte { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--bg-elev);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.carte-carte:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(21, 21, 43, .06), 0 16px 32px -14px rgba(30, 27, 75, .35); }
.carte-carte.attente { min-height: 300px; background: linear-gradient(100deg, var(--bg-elev) 30%, var(--bg-sunk) 50%, var(--bg-elev) 70%) 0 0 / 300% 100%;
  animation: carte-attente 1.2s linear infinite; }
@keyframes carte-attente { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .carte-carte, .carte-carte.attente { transition: none; animation: none; } }
.carte-carte-lien { display: flex; flex-direction: column; flex: 1 1 auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.carte-carte-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px; }
.carte-carte-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sunk); }
.carte-carte-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte-carte-photo.sans { display: grid; place-items: center; background: linear-gradient(135deg, rgba(61, 59, 199, .12), rgba(176, 37, 158, .10)); }
.carte-carte-emoji { font-size: 2.6rem; opacity: .85; }
.carte-carte-corps { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 10px; min-width: 0; }
.carte-carte-meta { font-size: .8rem; color: var(--text-soft); overflow-wrap: anywhere; }
.carte-carte-nom { font-size: 1.02rem; line-height: 1.3; color: var(--text); }
/* Note des cartes de la liste : cinq étoiles toujours affichées, « 4,3 (12 notes) » ou « Pas encore de note » (13/10/2026). */
.carte-carte-note { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: .85rem; color: var(--text-soft); }
.carte-carte-note .carte-etoiles { font-size: 1rem; }
.carte-carte-note strong { color: var(--text); font-weight: 700; }
.carte-carte-texte { font-size: .88rem; line-height: 1.45; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-carte-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; padding: 0 14px 12px; font-size: .78rem; }
.carte-carte-credit { flex: 1 1 0; min-width: 0; font-size: .7rem; color: var(--text-faint); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-carte-credit:hover, .carte-carte-credit:focus-visible { text-decoration: underline; }
.carte-carte-forum { flex: 0 0 auto; margin-left: auto; font-weight: 650; color: var(--accent); }
@media (max-width: 600px) { .carte-carte-credit { flex-basis: 100%; } }   /* téléphone : le crédit a sa ligne, le lien Forum passe dessous */
.carte-liste-plus { display: block; margin: 20px auto 0; }
.carte-liste-plus[hidden] { display: none; }   /* sinon « Afficher 0 lieux de plus » restait visible (13/10/2026) */
.carte-liste-erreur { grid-column: 1 / -1; color: var(--text-soft); }
@media (max-width: 600px) { .carte-cartes { grid-template-columns: 1fr 1fr; gap: 10px; } .carte-carte-corps { padding: 10px; } .carte-carte-texte { -webkit-line-clamp: 2; } .carte-carte-pied { padding: 0 10px 10px; } }
@media (max-width: 380px) { .carte-cartes { grid-template-columns: 1fr; } }

/* Fiche d'un lieu : lien « Comment fonctionnent les notes ? » et liens partenaires (13/10/2026). */
.carte-notes-info { flex-basis: 100%; font-size: .78rem; color: var(--text-faint); }
.carte-partenaires { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; font-size: .92rem; }
.carte-partenaires a { font-weight: 650; color: var(--accent); }
.carte-partenaire-mention { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }

/* Bulle au survol d'un point de la carte (13/10/2026, appareils à souris) : décorative, ne capte pas la souris,
   couleurs du thème (clair et sombre), pointe de la même couleur que la bulle quel que soit son côté. */
.carte-bulle { pointer-events: none; z-index: 3; }
.carte-bulle .maplibregl-popup-content { pointer-events: none; padding: 8px 10px; border-radius: 12px; background: var(--bg-elev); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); font: inherit; }
.carte-bulle.maplibregl-popup-anchor-top .maplibregl-popup-tip, .carte-bulle.maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .carte-bulle.maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--bg-elev); }
.carte-bulle.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .carte-bulle.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .carte-bulle.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--bg-elev); }
.carte-bulle.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--bg-elev); }
.carte-bulle.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--bg-elev); }
.carte-bulle-corps { display: block; max-width: 268px; font-size: .85rem; line-height: 1.3; }
.carte-bulle-corps.avec-photo { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.carte-bulle-corps.amas { font-weight: 650; white-space: nowrap; }
.carte-bulle-img { display: block; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg-sunk); }
.carte-bulle-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.carte-bulle-nom { font-size: .92rem; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.carte-bulle-meta { font-size: .78rem; color: var(--text-soft); }
.carte-bulle .carte-carte-note { font-size: .78rem; }
.carte-bulle-credit { grid-column: 1 / -1; margin-top: 5px; font-size: .62rem; line-height: 1.3; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
