/* L'ACCUEIL EN PEU DE SECTIONS (af, 29/10/2026 ; le propriétaire : « interactif, donner envie d'avoir son île et de monter dans
   le classement ») : la carte des îles, le podium du moment, les derniers exploits, le palais et la boutique en bandes.
   À charger après style.css et motifs.css. Le kit : aucun arrondi, aucune pastille ; une cible du doigt de 44 px au moins. */

/* ---------- TON ÎLE SUR LA MER ---------- */
.accueil-ile { padding: 90px 0; }
.accueil-ile .sur-titre { color: var(--or-clair); }
.accueil-ile .trois-gestes.court li { font-size: 17px; }
.en-ligne-iles[hidden], .podium-accueil[hidden], .bande-exploits[hidden] { display: none; }   /* hidden passe avant leur display */
.en-ligne-iles { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 0; font-weight: 700; color: #BFF5C8; }
.en-ligne-iles::before { content: ""; width: 10px; height: 10px; background: #5BE07A; box-shadow: 0 0 0 3px rgba(91, 224, 122, .25); animation: battement 1.6s ease-in-out infinite; }
@keyframes battement { 50% { box-shadow: 0 0 0 7px rgba(91, 224, 122, 0); } }

.carte-iles-cadre { padding: 16px 16px 14px; }
.carte-iles-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 10px; font-family: "Lilita One", sans-serif; font-size: 20px; color: var(--or-clair); }
.carte-iles-titre small { font-family: "Fredoka", sans-serif; font-size: 13px; color: #CBB8E6; }
/* la mer : --cols x --rangs cases (9 x 5 sans les îles ; js/accueil.js la grandit pour toutes les contenir), ses vagues dessinées (le fond du kit), la grille des places en pointillé très doux */
.carte-iles { position: relative; display: grid; --cols: 9; --rangs: 5; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rangs), minmax(0, 1fr)); aspect-ratio: var(--cols) / var(--rangs);
  background-color: #0E3550; background-image: var(--fond-mer-image, none), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(180deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: var(--fond-mer-taille, auto), calc(100% / var(--cols)) 100%, 100% calc(100% / var(--rangs)); border: 2px solid rgba(0, 0, 0, .45); }
.ilot { grid-column: var(--i); grid-row: var(--j); position: relative; margin: 14%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit;
  /* l'île : l'herbe, sa plage, son ombre sur l'eau (dessinée, aucune image) */
  background: radial-gradient(circle at 42% 38%, #79C95A 0 34%, #4E9A3B 35% 52%, #E7D08A 53% 62%, transparent 63%);
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); transition: transform .18s ease, filter .18s ease; }
.ilot.grand { margin: 4%; }
.ilot.deco { pointer-events: none; opacity: .85; }
button.ilot { min-width: 0; min-height: 0; }
button.ilot:hover, button.ilot:focus-visible, button.ilot.choisi { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 0 6px rgba(255, 215, 94, .8)) drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); outline: none; }
.ilot.belle::after { content: "\2605"; position: absolute; top: -6px; right: -4px; font-size: 14px; color: var(--or-clair); text-shadow: 0 1px 0 #000; }
.ilot.habitee::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 6px; height: 6px; margin-left: -3px; background: #5BE07A; box-shadow: 0 0 6px #5BE07A; }
.ilot-nom { position: absolute; left: 50%; bottom: -4px; transform: translate(-50%, 100%); white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 0 #000, 0 0 4px #000; opacity: 0; transition: opacity .15s; pointer-events: none; z-index: 2; }
button.ilot:hover .ilot-nom, button.ilot:focus-visible .ilot-nom, button.ilot.choisi .ilot-nom { opacity: 1; }
/* la place libre : un cadre d'or en pointillé qui respire ; un clic mène au téléchargement */
.ilot.libre { display: grid; place-items: center; margin: 6%; background: rgba(255, 215, 94, .08); border: 2px dashed var(--or-clair); filter: none; text-decoration: none; min-height: 44px;
  animation: respire 2.4s ease-in-out infinite; }
.ilot.libre span { font-size: 12px; font-weight: 700; line-height: 1.1; text-align: center; color: var(--or-clair); text-shadow: 0 1px 0 #000; padding: 2px; }
.ilot.libre:hover, .ilot.libre:focus-visible { background: rgba(255, 215, 94, .2); outline: none; }
@keyframes respire { 50% { box-shadow: 0 0 0 4px rgba(255, 215, 94, .18), 0 0 18px rgba(255, 215, 94, .35); } }
/* la fiche de l'île montrée */
.fiche-ile { min-height: 116px; margin-top: 12px; padding: 12px 14px; background: rgba(0, 0, 0, .28); border-left: 3px solid var(--or); }
.fiche-vide { margin: 0; color: #DCCDF2; font-size: 16px; }
.fiche-nom { font-size: 22px; color: #fff; }
.fiche-hote { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-weight: 700; color: #F4EAFF; }
.tete-pixel { display: inline-block; flex: none; image-rendering: pixelated; background-repeat: no-repeat; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); }
.fiche-etoiles { margin: 4px 0 0; color: var(--or-clair); letter-spacing: 2px; font-size: 18px; }
.fiche-traits { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; padding: 0; font-size: 15px; color: #DCCDF2; }
.fiche-traits .ouverte { color: #BFF5C8; }
.fiche-traits .en-jeu { color: #9BE8FF; }

/* ---------- LES BOSS : la ligne des armes, et LE PODIUM DU MOMENT ---------- */
.boss-bande .une-ligne { margin: 10px 0 0; font-size: 17px; color: #E6DAF7; }
.boss-bande .une-ligne strong { color: var(--or-clair); }
.podium-accueil { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: end; margin-top: 70px; }
.podium-accueil h3 { font-size: clamp(26px, 3vw, 38px); }
.podium-texte p { margin: 10px 0 18px; color: #E6DAF7; }
.podium-texte .sur-titre { color: var(--or-clair); }
.podium-marches { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 0 10px; margin: 0; padding: 26px 16px 0; border: 3px solid var(--or-fonce); }
.marche { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 215, 94, .16), rgba(27, 16, 40, .9)); border: 2px solid var(--or-fonce); border-bottom: 0; transition: transform .2s ease; }
.marche:hover { transform: translateY(-6px); }
.marche-1 { min-height: 210px; border-color: var(--or-clair); background: linear-gradient(180deg, rgba(255, 215, 94, .32), rgba(27, 16, 40, .9)); }
.marche-2 { min-height: 170px; }
.marche-3 { min-height: 140px; }
.marche-pseudo { display: block; width: 100%; font-size: 17px; color: #fff; white-space: nowrap; overflow: hidden; }
.marche-texte { font-size: 14px; color: var(--or-clair); }
.marche-rang { margin-top: auto; font-family: "Lilita One", sans-serif; font-size: 26px; color: var(--or-clair); text-shadow: 0 2px 0 #000; }

/* ---------- LES DERNIERS EXPLOITS, qui défilent ---------- */
.bande-exploits { padding: 26px 0 30px; overflow: hidden; }
.exploits-titre { max-width: 1180px; margin: 0 auto 14px; padding: 0 24px; font-size: 26px; color: #fff; }
.exploits-titre .sur-titre { color: var(--or-clair); }
.exploits-piste { display: flex; width: max-content; }
.exploits-piste.defile { animation: defile var(--duree, 60s) linear infinite; }
.exploits-piste.defile:hover, .exploits-piste.defile:focus-within { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }
.exploits-liste { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0 7px; }
.exploit { display: flex; flex-direction: column; gap: 2px; width: 300px; padding: 12px 14px; background: rgba(27, 16, 40, .86); border: 2px solid var(--or-fonce); border-left: 5px solid var(--or); }
.exploit-texte { font-weight: 700; color: #fff; font-size: 16px; line-height: 1.3; }
.exploit-quand { font-size: 13px; color: #CBB8E6; }
.exploit-oeuf_mythique { border-left-color: #FF7AD9; }
.exploit-casino_gros_gain { border-left-color: #5BE07A; }
.exploit-minijeu_victoire { border-left-color: #6CC8FF; }
.exploit-boss_heroique, .exploit-boss_heroique_record { border-left-color: #FF5A3C; }
@media (prefers-reduced-motion: reduce) { .exploits-piste { width: auto; } .exploits-liste { flex-wrap: wrap; justify-content: center; } }

/* ---------- AU PALAIS, et LA BOUTIQUE, en bandes ---------- */
.palais-bande { padding: 80px 0; }
.palais-bande .tete { margin-bottom: 34px; }
.palais-bande .sur-titre { color: var(--or-clair); }
.palais-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.palais-carte { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 18px; text-decoration: none; color: #F4EAFF; transition: transform .2s ease; }
.palais-carte:nth-child(2) { transform: translateY(18px); }
.palais-carte:hover, .palais-carte:focus-visible { transform: translateY(-6px); outline: none; }
.palais-carte:nth-child(2):hover, .palais-carte:nth-child(2):focus-visible { transform: translateY(10px); }
.palais-carte img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid rgba(0, 0, 0, .5); }
.palais-mot { font-family: "Lilita One", sans-serif; font-size: 24px; color: var(--or-clair); }
.palais-dit { font-size: 16px; line-height: 1.4; }
.boutique-bande { padding: 34px 0; }
.boutique-ligne { display: flex; align-items: center; gap: 24px; }
.boutique-ligne h2 { font-size: clamp(24px, 2.6vw, 34px); color: #fff; }
.boutique-ligne p { margin: 6px 0 0; color: #E6DAF7; }
.boutique-ligne > div { flex: 1; }
.boutique-bete { width: 110px; height: auto; flex: none; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); }
.boutique-ligne .bouton { flex: none; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- LE TÉLÉPHONE D'ABORD ---------- */
@media (max-width: 960px) {
  .podium-accueil { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .palais-cartes { grid-template-columns: minmax(0, 1fr); }
  .palais-carte:nth-child(2), .palais-carte:nth-child(2):hover { transform: none; }
}
@media (max-width: 768px) {
  .accueil-ile { padding: 64px 0; }
  .accueil-ile .deux-colonnes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ilot-nom { display: none; }
  .ilot.libre span { font-size: 10px; }
  .boutique-ligne { flex-wrap: wrap; }
  .boutique-bete { width: 72px; }
  .exploit { width: 250px; }
  .palais-bande { padding: 56px 0; }
}
@media (max-width: 430px) {

  .ilot.libre { margin: 2%; }
  .podium-marches { padding: 18px 8px 0; gap: 0 6px; }
  .podium-marches::after { margin: 0 -8px; }
  .marche-pseudo { font-size: 14px; }
  .marche-1 { min-height: 180px; }
}

/* ---------- LE VOYAGE AU TÉLÉPHONE (af) : la route GLISSE au doigt, une étape par écran (au lieu de cinq étapes empilées) ---------- */
@media (max-width: 768px) {
  #voyage .route { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 34px 4px 16px; margin-top: 0; scrollbar-width: thin; }
  #voyage .route::before { display: none; }
  #voyage .route .pas, #voyage .route .pas-fin { flex: 0 0 86%; display: flex; flex-direction: column; gap: 12px; margin: 0; scroll-snap-align: center; }
  #voyage .route .pas .borne { top: 0; left: 18px; margin: -33px 0 0; }
  #voyage .route .pas-photo { aspect-ratio: 16 / 10; }
  #voyage .route .pas:nth-child(even) .pas-mots { text-align: left; }
  #voyage .route .pas-fin .pas-photo { aspect-ratio: 16 / 10; }
  #voyage .route .pas-fin .pas-photo::after { display: none; }
  #voyage .route .pas-fin .pas-mots { padding: 0; max-width: none; pointer-events: auto; }
  #voyage .route .pas-mots p:not(.pas-niveau) { font-size: 16px; }
  #voyage .route .pas-photo .deborde { height: 70%; }
  #voyage .tete::after { content: "Glisse pour voir la suite de la route \2192"; display: block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--or-clair); }
}
/* (af) le palais au téléphone : ses trois cartes glissent aussi au doigt */
@media (max-width: 768px) {
  .palais-cartes { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 4px 14px; }
  .palais-carte { flex: 0 0 82%; scroll-snap-align: center; }
}

/* (af, 18:0x) LES ÎLOTS EN BLOCS : une forme en marches de pixel (clip-path), l'herbe en deux tons, un arbre, la plage de sable
   (une ombre intérieure) ; le survol les éclaire d'or (un contour, la forme coupe les ombres portées) */
.ilot:not(.libre) { filter: none; clip-path: polygon(22% 0, 78% 0, 78% 12%, 100% 12%, 100% 76%, 88% 76%, 88% 100%, 12% 100%, 12% 88%, 0 88%, 0 24%, 22% 24%);
  background:
    radial-gradient(circle at 34% 40%, #2F6B2A 0 9%, #3E8A35 10% 15%, transparent 16%),
    radial-gradient(circle at 66% 62%, #3E8A35 0 7%, transparent 8%),
    linear-gradient(135deg, #7CCB5C 0 45%, #5FAF46 45% 100%);
  box-shadow: inset 0 0 0 4px #E3C981, inset 0 -6px 0 4px #C8A862; }
.ilot.grand:not(.libre) { clip-path: polygon(14% 0, 70% 0, 70% 10%, 100% 10%, 100% 70%, 86% 70%, 86% 100%, 20% 100%, 20% 86%, 0 86%, 0 16%, 14% 16%); }
button.ilot:hover, button.ilot:focus-visible, button.ilot.choisi { filter: brightness(1.18) saturate(1.1); box-shadow: inset 0 0 0 4px var(--or-clair), inset 0 -6px 0 4px #C8A862; }
.ilot.belle::after { top: 2px; right: 6px; }
.fiche-lien { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; color: var(--or-clair); text-decoration: none; border-bottom: 2px solid transparent; }
.fiche-lien:hover, .fiche-lien:focus-visible { border-bottom-color: var(--or-clair); outline: none; }
/* (af, 18:0x) au téléphone : 7 colonnes (js/accueil.js), des îlots plus grands pour le doigt, la place libre lisible */
@media (max-width: 520px) {
  .carte-iles { --cols: 7; }
  .ilot { margin: 7%; }
  .ilot.libre { margin: 0; }
  .ilot.libre span { font-size: 11px; }
}

/* ---------- (af, 18:1x ; le propriétaire : « de mini animations ou une toute petite cinématique ») LA CARTE QUI VIT ----------
   les îles bercent sur l'eau (chacune son rythme, --b), l'eau scintille, le phare balaie la mer de sa lumière ; l'ouverture : la
   caméra glisse de la mer vers les îles (2,4 s, une fois par visite : js/accueil.js, la classe .ouverture) ; tout s'arrête pour qui
   demande moins de mouvement. Aucune image ni vidéo : du CSS. */
.ilot:not(.libre) { animation: berce calc(4.2s + var(--b, 0) * 1s) ease-in-out calc(var(--b, 0) * -1.3s) infinite; }
button.ilot:hover, button.ilot:focus-visible, button.ilot.choisi { animation-play-state: paused; }
@keyframes berce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.carte-iles::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1.6px 1.6px at 12% 30%, rgba(255, 255, 255, .7), transparent 60%), radial-gradient(1.6px 1.6px at 47% 72%, rgba(255, 255, 255, .6), transparent 60%),
              radial-gradient(1.6px 1.6px at 81% 18%, rgba(255, 255, 255, .6), transparent 60%), radial-gradient(1.6px 1.6px at 66% 88%, rgba(255, 255, 255, .5), transparent 60%),
              radial-gradient(1.6px 1.6px at 28% 90%, rgba(255, 255, 255, .5), transparent 60%);
  animation: scintille 3.2s steps(2, jump-none) infinite; }
@keyframes scintille { 50% { opacity: .25; } }
/* le phare, au coin de la carte : sa tour en blocs et un faisceau qui balaie la mer */
.carte-iles .phare { position: absolute; right: 2%; bottom: 4%; width: 16px; height: 34px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #FFE27A 0 18%, #3A2A1A 18% 24%, #EDEDED 24% 44%, #C8352B 44% 64%, #EDEDED 64% 84%, #6B6B6B 84%); box-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.carte-iles .phare::after { content: ""; position: absolute; left: 8px; top: 3px; width: min(340px, 60vw); height: 70px; margin-top: -35px; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 226, 122, .42), rgba(255, 226, 122, 0) 92%); clip-path: polygon(0 46%, 100% 0, 100% 100%, 0 54%);
  animation: faisceau 7s linear infinite; mix-blend-mode: screen; }
@keyframes faisceau { from { transform: rotate(180deg); } to { transform: rotate(540deg); } }
/* l'ouverture : la mer vue de loin, puis la caméra descend vers les îles */
/* la grille reste fixe (elle coupe ce qui dépasse) ; ce sont ses îles et son phare qui descendent vers nous */
.carte-iles.ouverture > * { animation: ouverture 2.4s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 50%; }
.carte-iles.ouverture { animation: eau-ouverture 2.4s ease-out both; }
@keyframes eau-ouverture { from { filter: saturate(.6) brightness(.75); } to { filter: none; } }
.carte-iles.ouverture .ilot { animation: ouverture 2.4s cubic-bezier(.2, .7, .2, 1) both, apparait-ilot .5s ease-out both; animation-delay: 0s, calc(.5s + var(--n, 0) * .05s); }
@keyframes ouverture { from { transform: scale(1.6) translateY(30%); } to { transform: none; } }
@keyframes apparait-ilot { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.carte-iles-cadre { overflow: hidden; }
.carte-iles { overflow: hidden; z-index: 1; }   /* sous le bouton « Passer » (le filtre de l ouverture lui donne son propre plan) */
.passer-ouverture { position: absolute; right: 22px; top: 54px; z-index: 5; min-height: 44px; padding: 0 12px; font: 700 13px "Fredoka", sans-serif; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .35); cursor: pointer; }
.passer-ouverture:hover, .passer-ouverture:focus-visible { border-color: var(--or-clair); color: var(--or-clair); outline: none; }
@media (prefers-reduced-motion: reduce) {
  .ilot:not(.libre), .carte-iles::before, .carte-iles .phare::after, .ilot.libre, .en-ligne-iles::before { animation: none; }
  .carte-iles.ouverture, .carte-iles.ouverture .ilot { animation: none; }
}
/* (af, 18:5x ; la relecture) à 400 px et moins, les îlots touchent le bord de leur case : 44 px au moins au doigt dès 360 */
@media (max-width: 400px) {
  .carte-iles { --cols: 6; }
  .ilot { margin: 1px; }
  .ilot.libre { margin: 0; }
}

/* ---------- (la tête, 22:05 ; le propriétaire : le podium « paraît coupé ») LE SOL DU PODIUM : un socle de pierre du château
   sous les trois marches, d'un bord à l'autre du cadre, sa lèvre d'or en haut (où les marches se posent), son ombre en bas ;
   il ferme le cadre. Le motif des pierres du kit (assets/motifs/pierres.svg), aucune image neuve. ---------- */
.podium-marches::after { content: ""; grid-column: 1 / -1; height: 30px; margin: 0 -16px;
  background: linear-gradient(180deg, var(--or-clair) 0 3px, var(--or) 3px 6px, var(--or-fonce) 6px 9px, rgba(0, 0, 0, .35) 9px 12px, transparent 12px),
              linear-gradient(180deg, rgba(8, 4, 14, 0) 40%, rgba(8, 4, 14, .55)), url("../assets/motifs/pierres.svg") 0 0 / 48px 24px, #3B2A52;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.marche { box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }

/* (la tête, 22:1x) sous l'aperçu : les deux liens de la fiche, et le bouton vers toute la carte */
.fiche-liens { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 2px 0 0; }
.carte-toute { display: flex; justify-content: center; margin: 14px 0 2px; }
.carte-toute .bouton { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- (af, 22:3x ; le propriétaire : « la partie carte sur la page d'accueil est moche et bâclée ») LA MER DESSINÉE : les
   îles comme sur la grande carte (js/ile.js, IlePixel.grande, agrandies au pixel près), la même mer (son dégradé, ses cases, une
   houle qui passe), les places de la grille en pointillé doux, l'épingle de chaque hôte (sa tête, ses étoiles) ; js/accueil.js
   pose la classe « dessinee ». Sans elle (le script de l'île absent) : la carte d'avant. ---------- */
.carte-iles.dessinee { background-color: #0E2C40; border: 2px solid rgba(0, 0, 0, .55);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(180deg, rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(180deg, #16506F, #0E2C40);
  background-size: calc(100% / var(--cols)) 100%, 100% calc(100% / var(--rangs)), 100% 100%; }
/* la houle : deux longues crêtes claires qui descendent lentement */
.carte-iles.dessinee::after { content: ""; position: absolute; inset: -40% 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(172deg, transparent 0 46px, rgba(220, 240, 255, .07) 46px 48px, transparent 48px 120px);
  animation: houle 14s linear infinite; }
@keyframes houle { from { translate: 0 -120px; } to { translate: 0 0; } }
.carte-iles.dessinee .ilot:not(.libre) { margin: 6%; overflow: visible; clip-path: none; background: none; box-shadow: none; filter: none; z-index: 1; }
.carte-iles.dessinee .ilot.belle::after { content: none; }
.ilot-dessin { display: block; width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .22)); transition: filter .15s; }
.carte-iles.dessinee button.ilot:hover, .carte-iles.dessinee button.ilot:focus-visible, .carte-iles.dessinee button.ilot.choisi { transform: translateY(-3px) scale(1.08); box-shadow: none; filter: none; z-index: 3; }
.carte-iles.dessinee button.ilot:hover .ilot-dessin, .carte-iles.dessinee button.ilot:focus-visible .ilot-dessin, .carte-iles.dessinee button.ilot.choisi .ilot-dessin { filter: drop-shadow(0 0 2px #FFD75E) drop-shadow(0 0 7px rgba(255, 215, 94, .7)); }
/* l'épingle : au-dessus de l'île (elle ne la cache pas), la tête de l'hôte et ses étoiles, sa pointe vers l'île */
.ilot-epingle { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); display: flex; align-items: center; gap: 3px; padding: 2px; white-space: nowrap;
  font: 700 10px/1 "Fredoka", sans-serif; color: var(--or-clair); background: rgba(14, 8, 24, .85); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); pointer-events: none; }
.ilot-epingle > span:last-child:not(.tete-pixel) { padding: 0 2px 0 1px; }
.ilot-epingle::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: rgba(14, 8, 24, .85); }
.ilot-epingle .tete-pixel { box-shadow: none; }
.carte-iles.dessinee .ilot.habitee::before { bottom: auto; top: 0; left: auto; right: 6%; margin: 0; z-index: 2; }
/* les places de la grille (dans l'étendue des îles) : un pointillé doux, comme la grande carte ; la plus proche du centre dit
   « Ton île ici ? » */
.ilot-place { grid-column: var(--i); grid-row: var(--j); margin: 24%; border: 1px dashed rgba(227, 207, 142, .3); pointer-events: none; z-index: 1; }
.carte-iles.dessinee .ilot.libre { margin: 8%; z-index: 1; }
.carte-iles.dessinee .ilot-nom { bottom: 0; }
/* le titre de la carte : « relue il y a… » passe dessous quand la place manque, jamais coupé en deux */
.carte-iles-titre { flex-wrap: wrap; row-gap: 2px; }
.carte-iles-titre small { white-space: nowrap; }
/* la fiche : la tête et le nom sur une ligne ; le nombre des étoiles à côté d'elles */
.fiche-nom { display: flex; align-items: center; gap: 10px; margin: 0; }
.fiche-nom > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.fiche-etoiles-nb { margin-left: 6px; font-size: 15px; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .carte-iles.dessinee::after { animation: none; } }
@media (max-width: 400px) { .carte-iles.dessinee .ilot:not(.libre) { margin: 4%; } .ilot-epingle { font-size: 9px; } }

/* (af, 22:5x ; la relecture de l'accueil entier) LA PLANÈTE : ses deux cartes sous la vidéo, de la même largeur qu'elle (avant :
   deux colonnes sur quatre, la moitié droite vide) */
.planete .cartes-planete { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; margin-left: auto; margin-right: auto; }
@media (max-width: 560px) { .planete .cartes-planete { grid-template-columns: minmax(0, 1fr); } }
/* LES TROIS ÉTAPES du téléchargement : chaque carte à la hauteur de son texte (avant : les deux premières étirées à la hauteur de
   la troisième, de grands vides) */
.etapes.trois.fil { align-items: start; }
.etapes.trois.fil .carte { height: auto; }
/* la carte de l'accueil : le nom d'une île n'apparaît plus sous elle (la fiche le dit, l'épingle montre son hôte) */
.carte-iles.dessinee .ilot-nom { display: none; }
/* (af, 23:2x) les îles uniques : un peu plus grandes que leur case (l'écume touche presque la voisine) ; l'épingle posée sur le
   haut de la terre (js/accueil.js lui donne son « top ») ; le ciel au-dessus de la mer, sans clic (la fumée, les mouettes, le
   navire qui passe) */
.carte-iles.dessinee .ilot:not(.libre) { margin: -9%; }
.carte-iles.dessinee .ilot-epingle { transform: translate(-50%, calc(-100% - 6px)); }
.carte-iles-ciel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
/* (af, 23:2x) la vraie vue du ciel d'une île ouverte (js/accueil.js) : sa terre à la taille d'une île dessinée, centrée sur elle
   (l'image : 320 blocs de côté, la terre au milieu de x 100 à 300) ; un peu plus vive ; le dessin caché quand elle est là */
.ilot-ciel { position: absolute; left: -37.5%; top: -21%; width: 140%; height: 140%; max-width: none; pointer-events: none; opacity: 0; filter: saturate(1.3) brightness(1.12); transition: opacity .4s; }
.ilot.vue-du-ciel .ilot-ciel { opacity: 1; }
.ilot.vue-du-ciel .ilot-dessin { visibility: hidden; }

/* ---------- (af, 23:3x) LE STYLE NEUF SUR L'ACCUEIL (le kit de b5, css/kit.css, la maquette validée par le propriétaire) : tout
   arrondi, des ombres douces, les titres en Chewy crème ; ce qui était encore carré : le badge du haut, la mer des îles et sa
   fiche, la place libre, les épingles, le podium, les cartes de la planète. Les dessins des îles restent en pixels (c'est le jeu). ---------- */
.en-ligne { border-radius: 999px; padding: 8px 16px 8px 12px; background: rgba(36, 26, 58, .78); border: 1px solid rgba(255, 207, 90, .4); box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.en-ligne::before, .en-ligne-iles::before { border-radius: 50%; }
.carte-iles-titre { font-family: var(--police-titre); font-size: 23px; color: var(--titre-creme); text-shadow: 0 2px 0 #3A1F12; }
.carte-iles, .carte-iles.dessinee { border-radius: 18px; border: 1px solid var(--trait); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset 0 10px 30px rgba(0, 0, 0, .18); }
.carte-iles .ilot.libre, .carte-iles.dessinee .ilot.libre { border-radius: 12px; }
.ilot-place { border-radius: 8px; }
.ilot-epingle { border-radius: 8px; padding: 2px 3px; }
.ilot-epingle .tete-pixel { border-radius: 4px; }
.passer-ouverture { border-radius: 12px; }
.carte-iles-cadre .fiche-ile { border-left: 0; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--trait); }
.fiche-nom { font-family: var(--police-titre); font-size: 25px; color: var(--titre-creme); text-shadow: 0 2px 0 #3A1F12; }
.fiche-nom .tete-pixel { border-radius: 7px; }
.fiche-etoiles { color: var(--or-k); }
.fiche-lien { color: var(--or-k); }
.podium-marches { border-radius: var(--r-panneau); border: 1px solid var(--trait); overflow: hidden; box-shadow: var(--ombre-douce); }
.marche { border-radius: 16px 16px 0 0; }
.marche .tete-pixel { border-radius: 8px; }
.planete .cartes-planete figure { border-radius: var(--r-carte); overflow: hidden; }

/* ---------- (af, 23:3x) LES ILLUSTRATIONS DE L'ACCUEIL (nos modèles rendus dans Blockbench : tete_48/illustrations_site, en 512) :
   décor seul (alt vide), chacune son mouvement doux, immobiles pour qui demande moins de mouvement. Le Phénix d'or vole au-dessus du
   titre ; le Kitsune céleste flotte au-dessus du Mouton cerisier, sur leur pré, sous « Une île à toi » ; le Gardien de Jade sous
   le texte des boss ; l'Esquif à côté du titre de la planète ; le Cerf céleste au-dessus du voyage. ---------- */
.illu { display: block; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
#haut { position: relative; }
.illu-phenix { position: absolute; z-index: 2; left: 5%; top: 17%; width: clamp(96px, 12vw, 180px); animation: vol-phenix 7s ease-in-out infinite; }
@keyframes vol-phenix { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 30% { transform: translate(18px, -16px) rotate(2deg); } 60% { transform: translate(34px, 4px) rotate(-1deg); } }
.illu-pre { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 150px; margin: 16px 0 10px; }
.illu-pre::before { content: ""; position: absolute; left: -10px; bottom: -6px; width: 290px; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 162, 62, .55), rgba(95, 162, 62, .18) 70%, transparent); }
.illu-mouton { position: relative; width: 132px; }
.illu-kitsune { position: relative; width: 128px; margin-bottom: 28px; animation: flotte 3.6s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-12px); } }
.illu-gardien { width: clamp(150px, 17vw, 230px); margin: 18px 0 0 -8px; animation: respire-boss 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes respire-boss { 50% { transform: scale(1.025, .985); } }
.planete .tete, .voyage-cinema .tete { position: relative; }
.illu-esquif { position: absolute; left: -200px; top: -20px; width: 170px; animation: frisson 6s ease-in-out infinite; }
@keyframes frisson { 0%, 92%, 100% { transform: translate(0, 0); } 94% { transform: translate(-1px, 1px); } 96% { transform: translate(1px, -1px); } 98% { transform: translate(-1px, 0); } }
.illu-cerf { position: absolute; right: -150px; top: -40px; width: 180px; animation: balance-cerf 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes balance-cerf { 50% { transform: rotate(-2deg) translateY(-4px); } }
@media (max-width: 1000px) { .illu-esquif, .illu-cerf { position: static; width: 120px; margin: 0 auto 6px; } }
@media (max-width: 600px) { .illu-phenix { left: auto; right: 4%; top: 12%; width: 92px; } .illu-pre { height: 120px; } .illu-mouton { width: 108px; } .illu-kitsune { width: 104px; } .illu-gardien { width: 150px; } }
@media (prefers-reduced-motion: reduce) { .illu-phenix, .illu-kitsune, .illu-gardien, .illu-esquif, .illu-cerf { animation: none; } }

/* ---------- (13/11/2026, le propriétaire : « avec le bateau, parler de la pêche ») LE HUBLOT DE LA PÊCHE, dans l'étape du navire :
   un rond cerclé de l'or des bornes (sa lèvre plus sombre) qui montre la vraie plongée du jeu, un poisson ferré. Il se pose au coin
   du haut OPPOSÉ au navire qui déborde (sur ordinateur : en bas à droite sur un rang impair, en bas à gauche sur un rang pair) ; il
   flotte doucement, immobile pour qui demande moins de mouvement et en photo ---------- */
.route .pas-photo .hublot-peche { position: absolute; z-index: 2; top: -26px; left: -26px; width: 36%; aspect-ratio: 1 / 1; padding: 5px; border-radius: 50%;
  background: linear-gradient(180deg, #FFE08A, var(--or-k) 45%, var(--or-k2)); box-shadow: 0 5px 0 var(--or-k-fonce), 0 0 0 5px var(--nuit), 0 16px 26px rgba(0, 0, 0, .5);
  animation: flotte 5.5s ease-in-out infinite; pointer-events: none; }
.route .pas-photo .hublot-peche img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #0A2233; }
.route .pas:nth-child(even) .pas-photo .hublot-peche { left: auto; right: -26px; animation-delay: -2s; }
.route .pas-peche b { color: var(--or-clair); }
/* de 769 à 1140 px, la marge de la page (20 px, .dedans) ne tient pas un hublot qui dépasse de 26 px plus son contour : la section
   coupe ce qui sort (overflow-x: clip, scene.css) ; il rentre un peu, tout entier visible */
@media (max-width: 1140px) {
  .route .pas-photo .hublot-peche { top: -18px; left: -8px; }
  .route .pas:nth-child(even) .pas-photo .hublot-peche { left: auto; right: -8px; }
}
/* LA ROUTE QUI GLISSE (768 px et moins) : le modèle qui déborde (l'Oni, le navire) reste en bas à droite sur TOUTES les cartes, comme
   au téléphone (voyage.css, 760 px) ; de 761 à 768 px (une tablette debout), retourné en bas à gauche, il couvrait le début du titre
   de sa carte (« NIVEAU 3... »). Le hublot se pose donc en haut à gauche : sous la borne de 66 px de 761 à 768 px ; au téléphone, la
   borne est dans la marge de gauche de la carte, le hublot monte tout en haut */
@media (max-width: 768px) {
  #voyage .route .pas:nth-child(even) .pas-photo .deborde { left: auto; right: -4%; bottom: -8%; transform: none; }
  #voyage .route .pas-photo .hublot-peche, #voyage .route .pas:nth-child(even) .pas-photo .hublot-peche { top: 44px; left: 10px; right: auto; width: 34%; padding: 4px;
    box-shadow: 0 4px 0 var(--or-k-fonce), 0 0 0 4px var(--nuit), 0 10px 18px rgba(0, 0, 0, .5); }
}
@media (max-width: 760px) { #voyage .route .pas-photo .hublot-peche, #voyage .route .pas:nth-child(even) .pas-photo .hublot-peche { top: 10px; width: 38%; } }
@media (prefers-reduced-motion: reduce) { .route .pas-photo .hublot-peche { animation: none; } }
html.photo .route .pas-photo .hublot-peche { animation: none; }

