/* Pignon-hub, style « Verre » : verre dépoli clair sur fond crème (jamais blanc pur), couleurs douces.
   Cellulaire d'abord; le flou est allégé sur les petits écrans (il coûte cher aux téléphones). */
:root {
  --fond: #EFE8DE;
  --texte: #2A2622;
  --doux: #645C53;
  --accent: #C25E3B;
  --accent-fonce: #9E4A2D;
  --sauge: #4F7F64;
  --verre: rgba(255, 252, 248, .42);
  --verre-fort: rgba(255, 252, 248, .62);
  --bord: rgba(255, 255, 255, .72);
  --ombre: 0 18px 40px -18px rgba(80, 58, 36, .28), 0 2px 6px rgba(80, 58, 36, .06);
  --flou: 18px;
  --rayon: 22px;
  --titre: "Bricolage Grotesque", "Nunito", system-ui, sans-serif;
  --corps: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (max-width: 720px) { :root { --flou: 10px; --rayon: 18px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--fond); color: var(--texte);
  font: 400 1.0625rem/1.55 var(--corps); overflow-x: hidden;
}
/* Grain très léger : donne de la matière au verre */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.saut { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--texte); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.saut:focus { left: 8px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Ambiance : taches de couleur floues derrière le verre --- */
.ambiance { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.tache { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .85; animation: flotte 26s ease-in-out infinite alternate; }
.tache--1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: #F4C9B0; }
.tache--2 { width: 40vmax; height: 40vmax; right: -10vmax; top: 6vmax; background: #C6DECC; animation-delay: -8s; }
.tache--3 { width: 36vmax; height: 36vmax; left: 20vmax; bottom: -16vmax; background: #D8D0EC; animation-delay: -15s; }
.tache--4 { width: 28vmax; height: 28vmax; right: 14vmax; bottom: -8vmax; background: #C9DFEA; animation-delay: -4s; }
@keyframes flotte { to { transform: translate(4vmax, 3vmax) scale(1.08); } }
@media (max-width: 720px) { .tache { filter: blur(40px); } }

/* --- Verre --- */
.verre {
  position: relative;
  background: linear-gradient(140deg, rgba(255, 255, 255, .62), rgba(255, 252, 248, .28));
  -webkit-backdrop-filter: blur(var(--flou)) saturate(150%);
  backdrop-filter: blur(var(--flou)) saturate(150%);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25);
}
.verre--fort { background: linear-gradient(140deg, rgba(255, 255, 255, .78), rgba(255, 252, 248, .5)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .verre { background: rgba(250, 246, 240, .94); }
}

/* --- Boutons et liens --- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  padding: .65rem 1.2rem; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 var(--corps); color: #FFF9F4; background: linear-gradient(180deg, #D06A45, var(--accent-fonce));
  box-shadow: 0 8px 20px -8px rgba(158, 74, 45, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(158, 74, 45, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.bouton--grand { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.bouton--verre { color: var(--texte); background: var(--verre-fort); border: 1px solid var(--bord); box-shadow: none; }
.bouton--desactive { opacity: .5; cursor: not-allowed; }
.lien-discret { color: var(--doux); font-weight: 700; text-decoration: none; }
.lien-discret:hover { color: var(--accent-fonce); text-decoration: underline; }

/* --- En-tête --- */
.entete { position: sticky; top: 10px; z-index: 50; padding: 0 12px; }
.entete__barre {
  max-width: 1180px; margin: 10px auto 0; padding: .5rem .6rem .5rem 1rem;
  display: flex; align-items: center; gap: 1rem; border-radius: 999px;
}
.marque { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font: 800 1.2rem/1 var(--titre); }
.marque b { color: var(--accent); font-weight: 800; }
.marque__patte { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #FFF9F4; background: linear-gradient(160deg, #D97A55, var(--accent-fonce)); }
.marque__patte svg { width: 20px; height: 20px; }
.entete__liens { display: flex; gap: 1.2rem; margin-left: 1rem; }
.entete__liens a { text-decoration: none; font-weight: 700; color: var(--doux); }
.entete__liens a:hover { color: var(--texte); }
.entete__actions { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
@media (max-width: 860px) { .entete__liens { display: none; } }
@media (max-width: 520px) {
  .entete__actions .lien-discret { display: none; }
  .entete__actions .bouton { padding: .55rem .9rem; font-size: .92rem; }
  .marque { font-size: 1.05rem; }
}

/* --- Mise en page --- */
.enveloppe { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 3.5rem 0 1rem; }
.section--haut { padding-top: 2.5rem; }
.section__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 1rem; }
.titre-page { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.2rem; }
.titre-section { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.titre-section--petit { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.surtitre { margin: 0 0 .6rem; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sauge); }
.compte { font: 700 .9rem var(--corps); color: var(--doux); margin-left: .3rem; }
.vide { padding: 1.2rem 1.4rem; color: var(--doux); }

/* --- Recherche --- */
.recherche { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: .5rem; padding: .55rem; border-radius: 26px; align-items: end; }
.recherche__champ { display: grid; gap: .15rem; padding: .45rem .9rem; border-radius: 18px; background: rgba(255, 255, 255, .45); }
.recherche__champ span { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); }
.recherche input, .recherche select {
  width: 100%; border: 0; background: transparent; padding: .15rem 0; min-height: 30px;
  font: 600 1rem var(--corps); color: var(--texte); appearance: none; -webkit-appearance: none;
}
.recherche select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23645C53' stroke-width='2'/%3E%3C/svg%3E") right center no-repeat; padding-right: 1.2rem; }
.recherche input:focus, .recherche select:focus { outline: none; }
.recherche__champ:focus-within { background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 2px var(--accent); }
.recherche .bouton { height: 100%; min-height: 56px; border-radius: 20px; }
@media (max-width: 760px) {
  .recherche { grid-template-columns: 1fr 1fr; }
  .recherche__champ--texte, .recherche .bouton { grid-column: 1 / -1; }
  .recherche .bouton { min-height: 50px; }
}

/* --- Cartes --- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.rangee { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.carte { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -20px rgba(80, 58, 36, .36), inset 0 1px 0 rgba(255, 255, 255, .9); }
.carte__visuel { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(160deg, rgba(244, 201, 176, .55), rgba(255, 255, 255, .2)); }
.carte__visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte__visuel--chat { background: linear-gradient(160deg, rgba(198, 222, 204, .7), rgba(255, 255, 255, .2)); }
.carte__visuel--lapin { background: linear-gradient(160deg, rgba(216, 208, 236, .7), rgba(255, 255, 255, .2)); }
.carte__visuel--perruche { background: linear-gradient(160deg, rgba(201, 223, 234, .75), rgba(255, 255, 255, .2)); }
.carte__visuel--cochon-inde { background: linear-gradient(160deg, rgba(246, 222, 170, .7), rgba(255, 255, 255, .2)); }
.carte__corps { display: grid; gap: .25rem; padding: .85rem 1rem 1.05rem; justify-items: start; }
.carte__titre { font: 700 1.12rem/1.2 var(--titre); }
.carte__meta { color: var(--doux); font-size: .93rem; }
.carte__meta--doux { font-size: .86rem; opacity: .85; }
.carte--invitation { justify-content: center; min-height: 160px; border-style: dashed; border-color: rgba(194, 94, 59, .45); }
.pastille { display: inline-block; padding: .14rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 800; background: rgba(255, 255, 255, .7); color: var(--doux); }
.pastille--vedette { color: #7A4A00; background: rgba(246, 195, 67, .45); }
.pastille--verifie { color: #27553E; background: rgba(120, 180, 140, .3); }
.pastille--available { color: #27553E; background: rgba(120, 180, 140, .3); }
.pastille--reserved { color: #7A4A00; background: rgba(246, 195, 67, .4); }
.pastille--sold, .pastille--retired { color: #5C5650; }
/* Catalogue des commerces */
.pastille--stock-in_stock { color: #27553E; background: rgba(120, 180, 140, .3); }
.pastille--stock-on_order { color: #7A4A00; background: rgba(246, 195, 67, .4); }
.pastille--stock-out { color: #8A2A1E; background: rgba(220, 110, 90, .22); }
.carte__prix { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: 1.35rem; margin: .4rem 0; }
.carte--article .carte__lien { display: block; color: inherit; text-decoration: none; height: 100%; }
.photos--galerie { margin-top: 1.25rem; }


.puces-categories { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.puce { display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.puce:hover { background: rgba(255, 255, 255, .8); }

.appel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 2.2rem; }
.appel p { margin: .5rem 0 0; color: var(--doux); }
@media (max-width: 720px) { .appel { flex-direction: column; align-items: flex-start; padding: 1.5rem; } }

.fiche { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden; }
.fiche__visuel { display: grid; place-items: center; min-height: 280px; background: linear-gradient(160deg, rgba(244, 201, 176, .55), rgba(255, 255, 255, .2)); }
.fiche__visuel img { width: 100%; height: 100%; object-fit: cover; }
.fiche__corps { padding: 1.6rem 1.8rem; }
.fiche__corps .titre-page { margin-bottom: .4rem; }
.fiche__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.2rem; }
@media (max-width: 720px) { .fiche { grid-template-columns: 1fr; } .fiche__visuel { min-height: 200px; } .fiche__corps { padding: 1.2rem; } }

.pied { padding: 3rem 12px 1.5rem; }
.pied__barre { max-width: 1180px; margin: 0 auto; padding: 1.2rem 1.5rem; color: var(--doux); font-size: .95rem; }
.pied__barre p { margin: .2rem 0; }
.pied__liens a { color: var(--doux); }

/* --- Héros : version statique (sans JavaScript, ou « réduire les animations ») --- */
.heros { position: relative; }
.heros__scene { max-width: 1180px; margin: 0 auto; padding: 3rem 16px 1rem; display: grid; gap: 2rem; }
.heros__titre { text-align: center; max-width: 820px; margin: 0 auto; }
.heros__titre h1 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 800; }
.souligne { background: linear-gradient(transparent 62%, rgba(244, 175, 140, .7) 62%, rgba(244, 175, 140, .7) 90%, transparent 90%); }
.heros__texte { margin: 1rem auto 0; max-width: 560px; color: var(--doux); font-size: clamp(1.02rem, 2vw, 1.2rem); }
.heros__indice { display: none; }
.heros__animaux { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.bulle { width: clamp(84px, 14vw, 150px); aspect-ratio: 1; border-radius: 50%; padding: 6px; }
.bulle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.bulle--chien { background: linear-gradient(150deg, rgba(244, 201, 176, .8), rgba(255, 255, 255, .3)); }
.bulle--chat { background: linear-gradient(150deg, rgba(198, 222, 204, .85), rgba(255, 255, 255, .3)); }
.bulle--lapin { background: linear-gradient(150deg, rgba(216, 208, 236, .85), rgba(255, 255, 255, .3)); }
.bulle--perruche { background: linear-gradient(150deg, rgba(201, 223, 234, .9), rgba(255, 255, 255, .3)); }
.bulle--cochon-inde { background: linear-gradient(150deg, rgba(246, 222, 170, .85), rgba(255, 255, 255, .3)); }
.bulle--poutine { background: linear-gradient(150deg, rgba(244, 201, 176, .8), rgba(255, 255, 255, .3)); }
.bulle--pizza { background: linear-gradient(150deg, rgba(198, 222, 204, .85), rgba(255, 255, 255, .3)); }
.bulle--burger { background: linear-gradient(150deg, rgba(216, 208, 236, .85), rgba(255, 255, 255, .3)); }
.bulle--sushi { background: linear-gradient(150deg, rgba(201, 223, 234, .9), rgba(255, 255, 255, .3)); }
.bulle--cafe { background: linear-gradient(150deg, rgba(246, 222, 170, .85), rgba(255, 255, 255, .3)); }
.heros__recherche { width: min(900px, 100%); margin: 0 auto; }
.heros__vedettes { width: min(980px, 100%); margin: 0 auto; }
.heros__vedettes-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.heros__vedettes-tete .lien-discret { white-space: nowrap; }
@media (max-width: 760px) {
  .heros .rangee { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
  .heros .rangee > .carte { flex: 0 0 72%; scroll-snap-align: start; }
}

/* --- Héros animé : --p va de 0 (haut) à 1 (fin de la section), donné par heros.js --- */
.heros-anime .heros {
  --p: 0;
  --a: clamp(0, calc(var(--p) / .38), 1);          /* les animaux s'écartent, le titre monte */
  --b: clamp(0, calc((var(--p) - .3) / .28), 1);   /* la recherche arrive */
  --c: clamp(0, calc((var(--p) - .6) / .28), 1);   /* les vedettes arrivent */
  height: 320vh;
}
.heros-anime .heros__scene {
  position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none; padding: 0; display: block; overflow: hidden;
}
.heros-anime .heros__titre {
  position: absolute; left: 50%; top: 46%; width: min(860px, 92vw);
  transform: translate(-50%, calc(-50% - var(--a) * 25vh)) scale(calc(1 - var(--a) * .34));
  transform-origin: 50% 50%;
}
.heros-anime .heros__texte, .heros-anime .heros__titre .surtitre { opacity: calc(1 - var(--a) * 1.6); }
.heros-anime .heros__indice {
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; margin-top: 1.4rem;
  font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--doux);
  opacity: calc(1 - var(--a) * 4);
}
.heros__fleche { font-size: 1.4rem; animation: invite 1.6s ease-in-out infinite; }
@keyframes invite { 50% { transform: translateY(6px); } }

/* Chaque bulle part d'une rangée en bas (x0, y0, t0) et va se ranger sur les côtés (x1, y1, t1). */
.heros-anime .heros__animaux { position: absolute; inset: 0; display: block; }
.heros-anime .bulle {
  position: absolute; width: auto;
  left: calc(var(--x0) + (var(--x1) - var(--x0)) * var(--a));
  top: calc(var(--y0) + (var(--y1) - var(--y0)) * var(--a));
  height: calc(var(--t0) + (var(--t1) - var(--t0)) * var(--a));
}
.heros-anime .bulle { animation: berce 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
@keyframes berce { 50% { transform: translateY(-5%) rotate(-2deg); } }
.heros__animaux > .bulle:nth-child(1) { --x0: 4vw;  --y0: 70vh; --t0: 21vw; --x1: 3vw;  --y1: 14vh; --t1: 11vw; }
.heros__animaux > .bulle:nth-child(2) { --x0: 23vw; --y0: 75vh; --t0: 19vw; --x1: 5vw;  --y1: 46vh; --t1: 9vw; }
.heros__animaux > .bulle:nth-child(3) { --x0: 41vw; --y0: 69vh; --t0: 20vw; --x1: 3vw;  --y1: 75vh; --t1: 10vw; }
.heros__animaux > .bulle:nth-child(4) { --x0: 60vw; --y0: 74vh; --t0: 18vw; --x1: 86vw; --y1: 17vh; --t1: 10vw; }
.heros__animaux > .bulle:nth-child(5) { --x0: 77vw; --y0: 70vh; --t0: 20vw; --x1: 85vw; --y1: 58vh; --t1: 10vw; }

.heros-anime .heros__recherche {
  position: absolute; left: 50%; top: 41%; width: min(900px, 64vw);
  transform: translate(-50%, calc(-50% + (1 - var(--b)) * 30vh)); opacity: var(--b);
  pointer-events: none;
}
.heros-anime .heros__vedettes {
  position: absolute; left: 50%; top: 71%; width: min(980px, 64vw);
  transform: translate(-50%, calc(-50% + (1 - var(--c)) * 26vh)); opacity: var(--c);
  pointer-events: none;
}
.heros-anime .heros__vedettes .carte__visuel { aspect-ratio: auto; height: 15vh; min-height: 90px; }
.heros-anime .heros__vedettes .carte__visuel img { height: 15vh; min-height: 90px; }
.heros-anime .heros--recherche .heros__recherche, .heros-anime .heros--vedettes .heros__vedettes { pointer-events: auto; }

/* Cellulaire : moins de bulles, elles montent en haut puis s'effacent; le formulaire prend la largeur. */
@media (max-width: 760px) {
  .heros-anime .heros { height: 260vh; }
  .heros-anime .heros__titre { top: 42%; transform: translate(-50%, calc(-50% - var(--a) * 17vh)) scale(calc(1 - var(--a) * .22)); }
  .heros-anime .bulle { opacity: calc(1 - var(--b) * 1.4); }
  .heros__animaux > .bulle:nth-child(1) { --x0: 2vw;  --y0: 72vh; --t0: 34vw; --x1: 4vw;  --y1: 13vh; --t1: 16vw; }
  .heros__animaux > .bulle:nth-child(2) { --x0: 34vw; --y0: 77vh; --t0: 32vw; --x1: 80vw; --y1: 13vh; --t1: 16vw; }
  .heros__animaux > .bulle:nth-child(3) { --x0: 66vw; --y0: 72vh; --t0: 32vw; --x1: 42vw; --y1: 86vh; --t1: 16vw; }
  .heros__animaux > .bulle:nth-child(n+4) { display: none; }
  .heros-anime .heros__recherche { width: 92vw; top: 51%; }
  .heros-anime .heros__vedettes { width: 100vw; top: 82%; padding: 0 0 0 16px; }
  .heros-anime .heros__vedettes-tete { padding-right: 16px; }
  .heros-anime .heros__vedettes .carte__visuel { display: none; }
  .heros-anime .heros__vedettes .titre-section--petit { font-size: 1.05rem; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .heros-anime .heros__vedettes .carte__visuel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tache, .heros__fleche, .bulle { animation: none; }
  .carte, .bouton { transition: none; }
}

/* Petits écrans : deux cartes par rangée, en-têtes de section qui passent à la ligne */
@media (max-width: 520px) {
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .carte__corps { padding: .6rem .7rem .8rem; }
  .carte__titre { font-size: 1rem; }
  .carte__meta { font-size: .84rem; }
  .section__tete { flex-wrap: wrap; row-gap: .3rem; }
}

/* --- Espace du membre (phase 3) --- */
.enveloppe--etroite { max-width: 640px; }
.messages { display: grid; gap: .5rem; margin-top: 1rem; }
.message { margin: 0 0 1rem; padding: .8rem 1.1rem; font-weight: 600; }
.message--success { color: #27553E; }
.message--warning, .message--info { color: #7A4A00; }
.message--error { color: #8E2F1A; }
.fil { margin: 0 0 .6rem; color: var(--doux); font-weight: 700; }
.fil a { color: var(--doux); text-decoration: none; }
.fil a:hover { color: var(--accent-fonce); }
.panneau { padding: 1.4rem 1.5rem; }
.panneau__tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.panneau--danger { border-color: rgba(194, 94, 59, .3); }
.colonnes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.pile { display: grid; gap: 1.2rem; }
@media (max-width: 900px) { .colonnes { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .panneau { padding: 1.1rem 1rem; } }

.formulaire { display: grid; gap: 1rem; margin-top: 1rem; }
.champ { display: grid; gap: .3rem; }
.champ > label, .champ legend { font-weight: 800; font-size: .9rem; color: var(--texte); }
.champ input[type=text], .champ input[type=search], .champ input[type=email], .champ input[type=password], .champ input[type=url],
.champ input[type=date], .champ input[type=number], .champ input[type=tel], .champ select, .champ textarea,
.champ input[type=file] {
  width: 100%; min-height: 46px; padding: .6rem .85rem; border-radius: 14px; border: 1px solid rgba(100, 92, 83, .22);
  background: rgba(255, 255, 255, .7); font: 500 1rem var(--corps); color: var(--texte);
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 94, 59, .2); background: #FFFCF8; }
.champ small { color: var(--doux); font-size: .84rem; }
.champ__erreur, .erreurs p { margin: 0; color: #8E2F1A; font-weight: 700; font-size: .9rem; }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: #C2483B; }
.champ--case label { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.champ--case input, .champ--choix input { width: 20px; height: 20px; accent-color: var(--accent); }
.champ fieldset { border: 0; padding: 0; margin: 0; }
.champ--choix fieldset > div { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.champ--choix fieldset > div > div label, .champ--choix fieldset label {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(100, 92, 83, .15); font-weight: 600; cursor: pointer;
}
.piege { position: absolute; left: -9999px; }

.tableau__tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tableau__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.etat { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.etat li { display: grid; gap: .1rem; padding: 1rem 1.2rem; }
.etat strong { font: 800 1.3rem var(--titre); }
.etat span { color: var(--doux); font-size: .9rem; }
@media (max-width: 520px) { .etat { grid-template-columns: 1fr 1fr; } .etat li:last-child { grid-column: 1 / -1; } }
.liste-fiches { display: grid; gap: .8rem; }
.ligne-fiche { display: flex; align-items: center; gap: 1rem; padding: .7rem; }
.ligne-fiche__visuel { flex: 0 0 72px; height: 72px; border-radius: 16px; overflow: hidden; }
.ligne-fiche__visuel img { width: 100%; height: 100%; object-fit: cover; }
.ligne-fiche__corps { display: grid; gap: .2rem; justify-items: start; flex: 1; min-width: 0; }
.ligne-fiche__actions { display: flex; align-items: center; gap: .8rem; }
@media (max-width: 520px) { .ligne-fiche { flex-wrap: wrap; } .ligne-fiche__actions { width: 100%; justify-content: flex-end; } }
.pastille--statut-draft { background: rgba(100, 92, 83, .12); }
.pastille--statut-published { color: #27553E; background: rgba(120, 180, 140, .3); }
.pastille--statut-suspended { color: #8E2F1A; background: rgba(194, 72, 59, .15); }

.liste-simple { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.liste-simple li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; background: rgba(255, 255, 255, .45); }
.liste-simple a { text-decoration: none; display: grid; }

.photos { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
.photos__item { display: grid; gap: .3rem; justify-items: start; }
.photos__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.photos__item--principale img { outline: 3px solid #F3B13A; outline-offset: 2px; }
.photos__item form { margin: 0; }
.lien-bouton { border: 0; background: none; padding: 0; font: 700 .84rem var(--corps); color: var(--doux); cursor: pointer; text-decoration: underline; }
.lien-bouton--danger { color: #8E2F1A; }
.ajout-photo { display: grid; gap: .7rem; }
.bouton--danger { background: linear-gradient(180deg, #C2483B, #962F25); box-shadow: 0 8px 20px -8px rgba(150, 47, 37, .6); }

/* --- Messagerie (phase 5) --- */
.enveloppe--moyenne { max-width: 820px; }
.lien-messages { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--texte); background: var(--verre-fort); border: 1px solid var(--bord); }
.lien-messages svg { width: 22px; height: 22px; }
.lien-messages__compte { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #FFF9F4; font: 800 .74rem/20px var(--corps); text-align: center; }
.avatar { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 1.15rem var(--titre); color: #7A3E25; background: linear-gradient(150deg, #F6CDB4, #F3E3D2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.boite { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.boite__ligne { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; text-decoration: none; }
.boite__ligne--non-lu { background: linear-gradient(140deg, rgba(255, 255, 255, .85), rgba(255, 244, 236, .6)); }
.boite__ligne--non-lu strong, .boite__ligne--non-lu .boite__extrait { color: var(--texte); font-weight: 800; }
.boite__corps { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.boite__haut { display: flex; justify-content: space-between; gap: .6rem; }
.boite__haut time { color: var(--doux); font-size: .84rem; white-space: nowrap; }
.boite__sujet { font-size: .88rem; color: var(--sauge); font-weight: 700; }
.boite__extrait { color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.point-non-lu { flex: 0 0 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(194, 94, 59, .18); }

.conv { padding: 0; overflow: hidden; }
.conv__tete { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .7); }
.conv__qui { flex: 1; min-width: 0; }
.conv__nom { font-size: 1.25rem; }
.conv__qui .carte__meta { margin: .15rem 0 0; }
.conv__animal { display: flex; align-items: center; gap: .8rem; margin: .8rem 1.2rem 0; padding: .55rem; border-radius: 16px; background: rgba(255, 255, 255, .55); text-decoration: none; }
.conv__animal img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.fil-messages { list-style: none; margin: 0; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; min-height: 160px; }
.fil-messages__jour { align-self: center; margin: .6rem 0 .2rem; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--doux); }
.bulle-message { align-self: flex-start; max-width: min(78%, 520px); padding: .6rem .85rem .4rem; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .85); box-shadow: 0 4px 12px -6px rgba(80, 58, 36, .25); }
.bulle-message p { margin: 0; overflow-wrap: anywhere; }
.bulle-message time { display: block; margin-top: .15rem; font-size: .72rem; color: var(--doux); text-align: right; }
.bulle-message--moi { align-self: flex-end; border-radius: 18px 18px 6px 18px; color: #FFF9F4; background: linear-gradient(180deg, #CF6C47, var(--accent-fonce)); }
.bulle-message--moi time { color: rgba(255, 249, 244, .8); }
.fil-messages__vu { align-self: flex-end; font-size: .76rem; color: var(--doux); font-weight: 700; }
.conv__reponse { display: flex; align-items: flex-end; gap: .6rem; padding: .8rem 1rem 1rem; border-top: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .35); }
.conv__reponse textarea { flex: 1; min-height: 48px; max-height: 200px; padding: .7rem .9rem; border-radius: 18px; border: 1px solid rgba(100, 92, 83, .22); background: rgba(255, 255, 255, .85); font: 500 1rem var(--corps); resize: vertical; }
.conv__reponse textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 94, 59, .2); }
.conseil { margin-top: .9rem; }
.pile-carte { display: grid; gap: .5rem; }
.bouton--plein { width: 100%; }
@media (max-width: 520px) {
  .conv__tete { padding: .8rem .9rem; }
  .fil-messages { padding: .8rem .9rem; }
  .bulle-message { max-width: 86%; }
  .conv__reponse { padding: .7rem; }
}

/* --- Recherche complète (phase 4) --- */
.recherche-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.filtres { padding: 0; position: sticky; top: 96px; }
.filtres__titre { padding: 1rem 1.3rem; font: 800 1.1rem var(--titre); cursor: pointer; list-style: none; }
.filtres__titre::-webkit-details-marker { display: none; }
.filtres__form { padding: 0 1.3rem 1.3rem; margin-top: 0; gap: .8rem; }
.filtres .champ input, .filtres .champ select { min-height: 42px; }
.champ--ville .lien-bouton { justify-self: start; margin-top: .2rem; }
.resultats { min-width: 0; }
.section__tete--haut { margin-top: 0; }
.onglets { display: flex; gap: .4rem; margin: 1.2rem 0 .8rem; padding: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .4); width: fit-content; max-width: 100%; overflow-x: auto; }
.onglet { padding: .5rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--doux); white-space: nowrap; }
.onglet--actif { background: rgba(255, 255, 255, .9); color: var(--texte); box-shadow: 0 4px 12px -6px rgba(80, 58, 36, .3); }
.pastille--distance { color: #2F5C7A; background: rgba(150, 195, 225, .35); }
.pages { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.6rem 0 .6rem; }
.source { margin-top: 1.4rem; }
.source a { color: var(--doux); }
.grille--vedettes { margin-bottom: .4rem; }
@media (max-width: 900px) {
  .recherche-page { grid-template-columns: 1fr; }
  .filtres { position: static; }
  .filtres:not([open]) .filtres__titre::after { content: " ▾"; }
}

/* --- Confiance (phase 6) --- */
.liste-confiance { margin: .4rem 0 1rem; padding-left: 1.2rem; color: var(--doux); }
.liste-confiance li { margin: .25rem 0; }
.etat__lien { display: grid; gap: .1rem; text-decoration: none; }
.etat__lien span { color: var(--accent-fonce); font-weight: 700; }
.conv__actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.conv__actions form { margin: 0; }
.lien-signaler { color: inherit; opacity: .75; font-size: .82rem; }
.alerte-arnaque { margin: 0 0 .45rem !important; padding: .5rem .7rem; border-radius: 12px; background: #FFF1C9; color: #6B4300; font-size: .9rem; font-weight: 700; }
.bulle-message--masque { opacity: .6; font-style: italic; }
.conv__bloque { margin: 0; padding: 1rem 1.2rem; text-align: center; color: var(--doux); font-weight: 700; border-top: 1px solid rgba(255, 255, 255, .7); }
.pile-carte .lien-signaler { justify-self: end; font-size: .8rem; color: var(--doux); }
.grille--larges { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.piece { width: 100%; max-height: 360px; object-fit: contain; border-radius: 14px; background: #fff; margin: .6rem 0; }
.rangee-boutons { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 520px) {
  .conv__tete { flex-wrap: wrap; }
  .conv__actions { width: 100%; justify-content: flex-start; padding-left: calc(46px + .9rem); }
}

/* --- Langue (phase 7) --- */
.langue { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 .55rem; border-radius: 999px; text-decoration: none; font: 800 .82rem var(--corps); letter-spacing: .06em; color: var(--doux); background: rgba(255, 255, 255, .5); border: 1px solid var(--bord); }
.langue:hover { color: var(--texte); background: rgba(255, 255, 255, .85); }

/* --- Lancement (phase 8) --- */
.enveloppe--etroite > .panneau + .panneau { margin-top: 1rem; }
.carte__meta--depart { color: #7A4A00; font-weight: 700; font-size: .84rem; }
.texte-legal { padding: 1.8rem 2rem; line-height: 1.65; }
.texte-legal h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.texte-legal ul { padding-left: 1.2rem; }
.texte-legal li { margin: .3rem 0; }
@media (max-width: 520px) { .texte-legal { padding: 1.2rem 1rem; } }

/* --- Favoris et alertes (phase 9) --- */
.carte-env { position: relative; display: grid; }
.coeur-form { margin: 0; }
.carte-env > .coeur-form, .carte-env > a.coeur { position: absolute; top: .55rem; right: .55rem; z-index: 2; }
.coeur { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bord); background: rgba(255, 252, 248, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--accent-fonce); font-size: 1.25rem; line-height: 1; cursor: pointer; text-decoration: none; box-shadow: 0 6px 14px -8px rgba(80, 58, 36, .5); transition: transform .15s ease; }
.coeur:hover { transform: scale(1.08); }
.coeur--actif { color: #FFF9F4; background: linear-gradient(180deg, #D86A6A, #B83F4A); border-color: transparent; }
.fiche__actions .coeur-form, .fiche__actions > a.coeur { position: static; }
.alerte-recherche { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .7rem 1rem; margin: 0 0 1rem; }
.alerte-recherche p { margin: 0; color: var(--doux); font-weight: 600; }
.alerte-recherche form { margin: 0; }
@media (prefers-reduced-motion: reduce) { .coeur { transition: none; } }
ul.liste-fiches { list-style: none; margin: 0; padding: 0; }
.entete__actions .bouton, .marque { white-space: nowrap; }
@media (max-width: 430px) {
  .entete__barre { gap: .5rem; padding-left: .6rem; }
  .marque > span:last-child { display: none; }  /* la patte suffit sur les tout petits écrans */
  .entete__actions { gap: .45rem; }
}

/* --- Liste d'attente (phase 10) --- */
.carte--portee .carte__corps { gap: .4rem; }
.carte--portee .bouton { margin-top: .3rem; }
.file-attente { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: file; }
.file-attente__ligne { counter-increment: file; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .7rem .8rem .7rem 2.6rem; border-radius: 14px; background: rgba(255, 255, 255, .5); position: relative; }
.file-attente__ligne::before { content: counter(file); position: absolute; left: .7rem; top: .75rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem var(--corps); color: #FFF9F4; background: var(--accent); }
.file-attente form { margin: 0; }
.pastille--attente-waiting { color: #7A4A00; background: rgba(246, 195, 67, .4); }
.pastille--attente-offered { color: #2F5C7A; background: rgba(150, 195, 225, .4); }
.pastille--attente-reserved { color: #27553E; background: rgba(120, 180, 140, .3); }
.pastille--attente-declined, .pastille--attente-withdrawn { color: #5C5650; }

/* --- Avis (phase 11) --- */
.etoiles { color: #E0A21B; letter-spacing: .06em; }
.carte__note { font-weight: 800; font-size: .92rem; }
.carte__note a { text-decoration: none; }
.liste-avis { display: grid; gap: .8rem; }
.avis { padding: 1rem 1.2rem; }
.avis p { margin: .45rem 0 0; }
.avis__tete { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.avis__reponse { margin-top: .8rem; padding: .7rem .9rem; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .55); }
.avis__reponse p { margin-top: .2rem; }
.avis__pied { display: flex; justify-content: flex-end; margin-top: .4rem; }
.avis__pied form { margin: 0; }
.avis--espace { padding: .8rem 0; border-top: 1px solid rgba(100, 92, 83, .12); }
.formulaire--avis .champ--choix input { width: 18px; height: 18px; }

/* --- Déconnexion --- */
.deconnexion { margin: 0; display: inline-flex; }
.lien-bouton-simple { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
@media (max-width: 860px) { .deconnexion--entete { display: none; } }  /* sur cellulaire : dans Mon espace */

/* --- Fil d'actualité et page d'un animal (phase 12a) --- */
.fil { display: grid; gap: .9rem; }
.nouvelle { padding: 1rem 1.2rem; }
.nouvelle p { margin: .5rem 0 0; }
.nouvelle__tete { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nouvelle__fiche { text-decoration: none; }
.nouvelle__photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-top: .7rem; }
.retirer-nouvelle { margin: .3rem 0 0; text-align: right; }
.fiche__actions form { margin: 0; }
.details { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0; }
.details dt { font-weight: 800; color: var(--doux); }
.details dd { margin: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }

/* --- Centre d'aide --- */
.aide h3 { font-size: 1.02rem; margin: 1.2rem 0 .3rem; }
.aide .sommaire { margin: 1rem 0 1.5rem; padding: .9rem 1.2rem; border-radius: 16px; background: rgba(255, 255, 255, .55); }
.aide .sommaire ol { margin: 0; padding-left: 1.2rem; }
.aide .sommaire a { font-weight: 700; }
.aide h2 { scroll-margin-top: 90px; }
.faq dt { font-weight: 800; margin-top: .9rem; }
.faq dd { margin: .2rem 0 0; color: var(--doux); }

/* --- Phase 12b : notifications et familles adoptives --- */
.notifications { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .6rem; }
.notification { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 1rem;
  align-items: baseline; padding: .9rem 1.1rem; border: 0; border-radius: 16px; cursor: pointer; font: inherit; color: inherit; }
.notification--non-lue { box-shadow: inset 4px 0 0 var(--accent, #7c5cf0); font-weight: 700; }
.notification__texte { flex: 1; }
.pastille--famille { background: rgba(255, 196, 120, .35); }
.ligne-boutons { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 560px) { .notification { flex-direction: column; } }

/* --- Herménégilde, phase 6 : tableau de bord --- */
.tableau-simple { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau-simple th, .tableau-simple td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.tableau-simple th { font-weight: 800; }
.panneau:has(.tableau-simple) { overflow-x: auto; }
.question-ouverte { padding-top: .8rem; border-top: 1px solid rgba(0, 0, 0, .08); }

/* --- Forfait Pignon-hub --- */
.forfaits { margin: 1rem 0; gap: 1rem; }
.carte-forfait { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem; border-radius: 20px; }
.carte-forfait__prix { font-size: 2rem; font-weight: 900; line-height: 1; }
.carte-forfait .bouton { margin-top: auto; }
.grille--deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Mon fil : la liste des fiches suivies */
.abonnements { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .5rem; }
.abonnements__fiche { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-radius: 14px; }
.abonnements__fiche a { font-weight: 700; }

/* --- Portail Pignon-hub : catégories (Animaux, Restos, bientôt d'autres) --- */
.categories-pignon { display: flex; gap: .35rem; margin-left: .8rem; }
.categories-pignon__lien { padding: .3rem .75rem; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .92rem; color: var(--doux); white-space: nowrap; }
.categories-pignon__lien:hover { color: var(--texte); background: rgba(255, 255, 255, .45); }
.categories-pignon__lien--actif { color: var(--texte); background: rgba(255, 255, 255, .7); }
.categories-pignon__court { display: none; }
/* Tablette et cellulaire : la barre des catégories passe sur une 2e ligne, noms courts, rien ne déborde */
@media (max-width: 1100px) {
  .entete__barre { flex-wrap: wrap; row-gap: .35rem; border-radius: 26px; }
  .categories-pignon { order: 3; flex: 1 0 100%; margin-left: 0; justify-content: center; }
}
@media (max-width: 560px) {
  .categories-pignon { gap: .2rem; }
  .categories-pignon__lien { padding: .25rem .55rem; font-size: .86rem; }
  .categories-pignon__long { display: none; }
  .categories-pignon__court { display: inline; }
  .entete__actions .bouton { padding: .45rem .7rem; font-size: .86rem; }
  .entete__actions .lien-messages { width: 36px; height: 36px; }
  .entete__actions .langue { padding: 0 .5rem; }
  .entete__actions .lien-discret { display: inline; font-size: .86rem; white-space: nowrap; }  /* Se connecter reste visible */
}
@media (max-width: 370px) { .entete__actions > .bouton:not(.bouton--verre) { display: none; } }  /* l'inscription passe par Se connecter */
html, body { overflow-x: clip; }  /* filet : jamais de défilement de côté sur cellulaire */
.portail { text-align: center; }
.portail__titre { margin-bottom: 1.2rem; }
.portail__recherche { width: min(900px, 100%); margin: 0 auto 2rem; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 1rem; text-align: left; }
@media (max-width: 760px) { .portail__recherche { grid-template-columns: 1fr; } }
.tuiles { list-style: none; padding: 0; margin: 1.2rem auto 0; width: min(980px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.tuile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; height: 100%; padding: 1.2rem 1.3rem; border-radius: var(--rayon); text-decoration: none; color: inherit; text-align: left; transition: transform .15s ease; }
a.tuile:hover { transform: translateY(-2px); }
.tuile__picto { font-size: 2rem; line-height: 1; }
.tuile__nom { font-size: 1.15rem; }
.tuile__detail { color: var(--doux); font-size: .92rem; }
.tuile--bientot { opacity: .62; filter: grayscale(.7); cursor: default; }
.tuile--bientot .pastille { position: absolute; top: .8rem; right: .8rem; }
/* En-tête : avec la barre de catégories, les liens de section ne passent plus à la ligne et cèdent la place plus tôt */
.entete__liens { gap: .9rem; }
.entete__liens a, .deconnexion--entete button { white-space: nowrap; }
@media (max-width: 1180px) { .entete__liens { display: none; } }
@media (max-width: 1320px) { .deconnexion--entete { display: none; } }  /* reste dans Mon espace */
.portail__cases { grid-column: 1 / -1; display: flex; gap: 1.2rem; margin: 0; font-weight: 700; }
.portail__cases input { width: 18px; height: 18px; vertical-align: -3px; }
.pastille--animaux { color: #5B3A1E; background: rgba(244, 201, 176, .55); }
/* Portail : six catégories dans le héros, sur une rangée compacte (le détail reste dans le titre de la tuile) */
.heros-anime .heros__vedettes .tuiles { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .6rem; margin-top: .6rem; }
.heros-anime .heros__vedettes .tuile { padding: .8rem .9rem; gap: .2rem; }
.heros-anime .heros__vedettes .tuile__picto { font-size: 1.5rem; }
.heros-anime .heros__vedettes .tuile__nom { font-size: .98rem; }
.heros-anime .heros__vedettes .tuile__detail { display: none; }
.heros-anime .heros__vedettes .tuile--bientot .pastille { top: .5rem; right: .5rem; font-size: .66rem; }
.heros-anime .heros--portail .heros__vedettes { top: 74%; }
@media (max-width: 760px) { .heros-anime .heros__vedettes .tuiles { grid-template-columns: repeat(3, 1fr); padding-right: 16px; } }
.fiche__animaux { margin: 1rem 0; }
.fiche__animaux .titre-section { margin-bottom: .5rem; }
/* Tuiles de catégories : personnage en pâte à modeler (Figma, 9 novembre 2026) */
.tuile__image { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 14px -8px rgba(80, 58, 36, .45); }
.heros-anime .heros__vedettes .tuile__image { width: 52px; height: 52px; }
.tuile--bientot .tuile__image { filter: grayscale(.6); }
/* Bulles du héros : couleur de fond selon le rang (pêche, sauge, lavande, ciel, beurre), pour toutes les pages */
.heros__animaux > .bulle:nth-child(1) { background: linear-gradient(150deg, rgba(244, 201, 176, .8), rgba(255, 255, 255, .3)); }
.heros__animaux > .bulle:nth-child(2) { background: linear-gradient(150deg, rgba(198, 222, 204, .85), rgba(255, 255, 255, .3)); }
.heros__animaux > .bulle:nth-child(3) { background: linear-gradient(150deg, rgba(216, 208, 236, .85), rgba(255, 255, 255, .3)); }
.heros__animaux > .bulle:nth-child(4) { background: linear-gradient(150deg, rgba(201, 223, 234, .9), rgba(255, 255, 255, .3)); }
.heros__animaux > .bulle:nth-child(5) { background: linear-gradient(150deg, rgba(246, 222, 170, .85), rgba(255, 255, 255, .3)); }
/* Mon espace unifié (9 novembre 2026) : deux rangées de raccourcis, tuiles « Ajouter » en boutons */
.raccourcis { display: grid; gap: .6rem; margin: 1rem 0 1.4rem; }
.raccourcis__rangee { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.raccourcis__rangee form { margin: 0; }
.raccourcis__titre { flex: 0 0 100%; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
@media (max-width: 560px) { .raccourcis .bouton { padding: .45rem .75rem; font-size: .86rem; } }
button.tuile { width: 100%; font: inherit; border: 0; cursor: pointer; }
/* Restos suivis dans Mon fil (phase 5) */
.pastille--special { color: #7A4A00; background: rgba(246, 195, 67, .45); }
.publication-resto { padding: .8rem 1rem; margin-top: .7rem; border-radius: 16px; }
.publication-resto p { margin: .3rem 0 0; }
/* Notifications : archiver ou supprimer les cochées */
.onglets-notifs { display: flex; gap: .5rem; margin: .4rem 0 .8rem; }
.onglets-notifs .pastille { text-decoration: none; padding: .35rem .9rem; font-size: .88rem; }
.pastille--active { background: var(--accent, #7c5cf0); color: #fff; }
.notifs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.notifs-actions__tout { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; margin-right: auto; }
.notifications__ligne { display: flex; align-items: center; gap: .6rem; }
.notifications__ligne > form { flex: 1; min-width: 0; }
.notifications__case { width: 1.2rem; height: 1.2rem; flex: none; }
.bouton--danger-doux { color: #9b2c2c; }
.publication-resto__photo { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin-top: .6rem; }
