/* =====================================================================
   Dynasty 8 AlyniaRP : partie publique
   S'appuie sur base.css (variables et composants communs).
   Animations : transform et opacity uniquement.
   ===================================================================== */

/* ---------- Mise en page générale ---------- */
:root { --rail: 86px; --rail-ouvert: 284px; }
.principal { padding-left: var(--rail); min-height: 100vh; }
.page { max-width: 1520px; margin: 0 auto; padding: 20px var(--gouttiere) 40px; }
.lien-evitement { position: fixed; top: 10px; left: 10px; z-index: 3000; padding: 10px 16px; border-radius: var(--rayon-s); background: var(--vert-plein); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform var(--duree); }
.lien-evitement:focus { transform: none; text-decoration: none; }
.petit { font-size: 0.92rem; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #0b1a12 0%, #050706 62%);
  transition: opacity 500ms ease, transform 500ms var(--courbe);
  will-change: opacity, transform;
}
.intro-vue .intro { display: none; }
.intro__grille {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
}
.intro__halo { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 212, 119, 0.22), transparent 65%); opacity: 0; animation: d8-fondu 900ms ease 100ms forwards; }
.intro__contenu { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 20px; }
.intro__logo {
  width: 112px; height: 112px; border-radius: 26px; object-fit: cover;
  border: 2px solid rgba(240, 222, 72, 0.56); box-shadow: 0 0 60px rgba(34, 212, 119, 0.35);
  opacity: 0; transform: translateY(24px) scale(0.82);
  animation: intro-logo 620ms var(--courbe-rebond) 100ms forwards; will-change: transform, opacity;
}
.intro__sur, .intro__titre, .intro__sous { opacity: 0; transform: translateY(14px); animation: d8-apparition 520ms var(--courbe) forwards; will-change: transform, opacity; }
.intro__sur { color: var(--or-vif); font-weight: 600; font-size: 1.05rem; animation-delay: 360ms; margin-top: 10px; }
.intro__titre { font-family: var(--police-titre); font-weight: 700; font-size: clamp(2.8rem, 9vw, 5rem); line-height: 1; color: #fff; animation-delay: 440ms; }
.intro__trait { width: 220px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #22d477, #f0de48); transform: scaleX(0); transform-origin: left; animation: intro-trait 700ms var(--courbe) 610ms forwards; will-change: transform; }
.intro__sous { color: #aab1bd; font-weight: 500; animation-delay: 780ms; }
.intro__ligne { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #22d477, #f0de48, #22d477); transform: scaleX(0); animation: intro-trait 1200ms var(--courbe) 200ms forwards; will-change: transform; }
.intro--sortie { opacity: 0; transform: scale(1.025); pointer-events: none; }
@keyframes intro-logo { to { opacity: 1; transform: none; } }
@keyframes intro-trait { to { transform: scaleX(1); } }

/* ---------- Barre latérale ---------- */
/* Astuce de fluidité : la barre fait toujours 284 px ; fermée, elle est
   décalée vers la gauche et son contenu décalé d'autant vers la droite.
   L'ouverture n'anime donc que des transform. */
.barre {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
  width: var(--rail-ouvert);
  background: var(--barre-laterale);
  border-right: 1px solid var(--bordure);
  overflow: hidden;
  transform: translateX(calc(var(--rail) - var(--rail-ouvert)));
  transition: transform 240ms var(--courbe);
  will-change: transform;
}
.barre::after { /* ombre portée quand la barre est ouverte par-dessus le contenu */
  content: ""; position: absolute; top: 0; bottom: 0; right: -40px; width: 40px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent);
  opacity: 0; transition: opacity 240ms; pointer-events: none;
}
.barre__interieur {
  display: flex; flex-direction: column; gap: 6px;
  width: var(--rail-ouvert); height: 100%;
  padding: 18px 16px;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  transform: translateX(calc(var(--rail-ouvert) - var(--rail)));
  transition: transform 240ms var(--courbe);
  will-change: transform;
}
.barre__interieur::-webkit-scrollbar { display: none; }
@media (hover: hover) {
  .barre:hover { transform: none; }
  .barre:hover .barre__interieur { transform: none; }
  .barre:hover .lien-nav__libelle, .barre:hover .barre__nom { opacity: 1; }
  .barre:hover::after { opacity: 1; }
}
.barre:focus-within { transform: none; }
.barre:focus-within .barre__interieur { transform: none; }
.barre:focus-within .lien-nav__libelle, .barre:focus-within .barre__nom { opacity: 1; }

.barre__marque { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 4px 5px 14px; color: var(--texte); text-decoration: none; }
.barre__marque:hover { text-decoration: none; }
.barre__marque img { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(240, 222, 72, 0.45); flex: none; object-fit: cover; }
.barre__nom { display: grid; line-height: 1.2; opacity: 0; transition: opacity 200ms; white-space: nowrap; }
.barre__nom strong { font-family: var(--police-titre); font-weight: 700; font-size: 1.2rem; }
.barre__nom small { color: var(--or); font-weight: 600; font-size: 0.86rem; }
.barre__vedettes { display: grid; gap: 4px; }
.barre__separateur { height: 1px; margin: 8px 6px; background: var(--bordure); flex: none; }
.barre__nav { display: grid; gap: 4px; }
.barre__pied { display: grid; gap: 4px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bordure); }

.lien-nav {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 48px; padding: 0 9px;
  border: 0; border-radius: 12px; background: transparent;
  color: var(--texte-2); font-weight: 600; font-size: 0.98rem; text-align: left; text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms var(--courbe), color 0s;
}
.lien-nav:hover { text-decoration: none; color: var(--texte); transform: translateX(2px); }
.lien-nav::before { /* fond actif (opacité seulement) */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--vert-teinte); opacity: 0; transition: opacity 200ms;
}
.lien-nav__icone { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; }
.lien-nav__icone .icone { width: 21px; height: 21px; }
.lien-nav__libelle { position: relative; opacity: 0; transition: opacity 200ms; }
.lien-nav.est-actif { color: var(--texte); }
.lien-nav.est-actif::before { opacity: 1; }
.lien-nav.est-actif .lien-nav__icone { color: var(--vert); }
.lien-nav--avis .lien-nav__icone { background: rgba(34, 212, 119, 0.14); color: var(--vert); }
.lien-nav--candidature .lien-nav__icone { background: var(--discord-teinte); color: #a5adff; }
.lien-nav--offres .lien-nav__icone { color: var(--or-vif); }
.lien-nav--offres::before { background: var(--or-teinte); }
.lien-nav--offres.est-actif .lien-nav__icone { color: var(--or-vif); }

/* Thème clair : état actif en fond plein foncé + texte blanc */
.theme-light .lien-nav::before { background: var(--vert-plein); }
.theme-light .lien-nav.est-actif, .theme-light .lien-nav.est-actif .lien-nav__icone { color: #fff; }
.theme-light .lien-nav--offres::before { background: var(--or-plein); }
.theme-light .lien-nav--candidature .lien-nav__icone { background: var(--discord); color: #fff; }
.theme-light .lien-nav--avis .lien-nav__icone { background: var(--vert-plein); color: #fff; }
.theme-light .lien-nav--offres .lien-nav__icone { color: var(--or); }
.theme-light .lien-nav--offres.est-actif .lien-nav__icone { color: #fff; }

/* Icône du thème : soleil en sombre (pour passer en clair), lune en clair */
.icone-lune { display: none; }
.theme-light .icone-soleil { display: none; }
.theme-light .icone-lune { display: block; }
.bascule-theme .lien-nav__icone { color: var(--or-vif); }
.theme-light .bascule-theme .lien-nav__icone { color: var(--info); }

/* Grand écran : barre toujours ouverte */
@media (min-width: 1400px) {
  :root { --rail: 284px; }
  .barre, .barre .barre__interieur { transform: none; }
  .barre .lien-nav__libelle, .barre .barre__nom { opacity: 1; }
  .barre::after { display: none; }
}

/* ---------- Bandeau promo ---------- */
.bandeau-promo {
  display: grid; grid-template-columns: minmax(240px, auto) 1fr auto auto; align-items: center; gap: 18px 24px;
  margin-bottom: 18px; padding: 16px 20px;
  border-radius: var(--rayon-l);
  background: linear-gradient(110deg, #3d0f18 0%, #2a0f16 40%, #0f2a1c 100%);
  border: 1px solid rgba(255, 110, 110, 0.38);
  color: #fff;
}
.bandeau-promo.rejoue { animation: d8-apparition 520ms var(--courbe) both; }
.bandeau-promo__principal { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bandeau-promo__icone { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--danger-plein); flex: none; }
.bandeau-promo__principal > div { display: grid; line-height: 1.3; }
.bandeau-promo__sur { color: #ffc2c2; font-weight: 600; font-size: 0.9rem; }
.bandeau-promo__titre { font-family: var(--police-titre); font-weight: 700; font-size: 1.3rem; }
.bandeau-promo__sous { color: #e8dcdc; font-size: 0.9rem; }
.bandeau-promo__puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce-promo { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--rayon-pilule); background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 500; font-size: 0.9rem; color: #fff; }
.bandeau-promo__temps { display: grid; text-align: right; line-height: 1.25; }
.bandeau-promo__temps span { color: #e8dcdc; font-size: 0.88rem; font-weight: 500; }
.bandeau-promo__temps strong { font-size: 1.2rem; font-weight: 700; }
.bandeau-promo__bouton { flex-wrap: wrap; row-gap: 0; }
.bandeau-promo__bouton small { font-weight: 500; opacity: 0.88; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  min-height: 560px; padding: 56px 48px 48px;
  border-radius: 28px;
  background: #050607;
  color: #fff;
}
.hero__fond { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; animation: hero-entree 1.8s var(--courbe) both, hero-respiration 26s ease-in-out 1.8s infinite alternate; will-change: transform; }
.hero::before { /* voile pour la lisibilité (statique) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94) 0%, rgba(5, 6, 7, 0.7) 42%, rgba(5, 6, 7, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 6, 7, 0.85) 0%, rgba(5, 6, 7, 0) 45%);
}
.hero::after { /* filet vert -> or en bas */
  content: ""; position: absolute; left: 48px; right: 48px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #22d477, #f0de48 55%, transparent);
}
@keyframes hero-entree { from { transform: scale(1.12); opacity: 0.4; } to { transform: scale(1.02); opacity: 1; } }
@keyframes hero-respiration { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1%); } }
.hero__contenu { display: grid; justify-items: start; gap: 14px; max-width: 760px; }
.hero__contenu > * { animation: d8-apparition 700ms var(--courbe) both; }
.hero__contenu > :nth-child(2) { animation-delay: 80ms; }
.hero__contenu > :nth-child(3) { animation-delay: 160ms; }
.hero__contenu > :nth-child(4) { animation-delay: 240ms; }
.hero__logo { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; border: 2px solid rgba(240, 222, 72, 0.55); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
.hero__sur { color: #f0de48; font-size: 1.05rem; margin-top: 6px; }
.hero h1 { color: #fff; }
.hero h1 span { display: block; color: #22d477; }
.hero__accroche { color: #d6dbe2; font-size: 1.1rem; max-width: 56ch; line-height: 1.65; }
.hero__panneau {
  display: grid; gap: 6px; min-width: 280px; max-width: 360px;
  padding: 22px 24px; border-radius: 20px;
  background: rgba(8, 10, 12, 0.88); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: d8-apparition 700ms var(--courbe) 300ms both;
}
.hero__panneau.rejoue .hero__panneau-titre { animation: d8-apparition 480ms var(--courbe) both; }
.hero__panneau-libelle { color: #f0de48; font-weight: 600; font-size: 0.92rem; }
.hero__panneau-titre { font-family: var(--police-titre); font-weight: 700; font-size: 1.65rem; line-height: 1.15; color: #fff; }
.hero__panneau-compteur { display: inline-flex; align-items: center; gap: 10px; color: #c9d0d8; font-weight: 500; }
.hero__panneau-compteur .pastille { background: #22d477; box-shadow: 0 0 0 4px rgba(34, 212, 119, 0.18); animation: pastille 2.4s ease-in-out infinite; will-change: transform, opacity; }
@keyframes pastille { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.75); opacity: 0.6; } }

/* ---------- Barre d'outils ---------- */
.outils {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 0; padding: 14px 0;
  background: var(--fond);
  border-bottom: 1px solid var(--bordure);
}
.outils__recherche { position: relative; display: flex; align-items: center; flex: 1; max-width: 560px; }
.outils__recherche .icone { position: absolute; left: 16px; color: var(--texte-3); pointer-events: none; }
.outils__recherche .saisie { padding-left: 46px; border-radius: var(--rayon-pilule); background: var(--surface); }
.outils__recherche.est-desactivee { opacity: 0.6; }
.outils__theme { display: none; }
.outils__resume { display: grid; margin-left: auto; text-align: right; line-height: 1.3; }
.outils__resume strong { font-weight: 600; }
.outils__resume span { color: var(--texte-2); font-size: 0.92rem; }
.outils__discord { flex: none; }

/* ---------- Section catalogue ---------- */
.catalogue { padding-top: 44px; scroll-margin-top: 60px; }
.catalogue .titre-section { margin-bottom: 30px; }
#descriptionSection { font-size: 1.05rem; }
#descriptionSection.est-promo { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--rayon); background: var(--danger-teinte); border: 1px solid rgba(255, 90, 90, 0.35); color: var(--texte); font-weight: 500; }
#descriptionSection.est-promo .icone { color: var(--danger); }
.contenu-page.fondu { animation: d8-fondu 260ms ease both; }
.sous-section + .sous-section { margin-top: 56px; }
.sous-section__entete { display: grid; gap: 6px; margin-bottom: 22px; }
.sous-section__entete h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.sous-section__entete p { color: var(--texte-2); max-width: 75ch; }

/* ---------- Grilles ---------- */
.grille-biens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }
.grille-biens--compacte { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.grille-biens--large { grid-template-columns: 1fr; }
.grille-biens--offres { grid-template-columns: 1fr; }
.grille-encheres { display: grid; gap: 28px; margin-top: 28px; }
.carte-squelette { display: grid; gap: 10px; padding: 0 0 20px; border-radius: var(--rayon-l); background: var(--surface); border: 1px solid var(--bordure); overflow: hidden; }
.carte-squelette .squelette--image { border-radius: 0; }
.carte-squelette .squelette--titre, .carte-squelette .squelette--texte { margin-inline: 20px; }

/* Entrée en cascade : opacité + translation (fill-mode backwards pour garder le survol) */
@keyframes carte-entree { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: none; } }
.entree { animation: carte-entree 560ms var(--courbe) backwards; animation-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Carte d'un bien ---------- */
.carte-bien {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--rayon-l);
  background: var(--surface-carte);
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre-douce);
  transition: transform 340ms var(--courbe);
  will-change: transform;
}
.carte-bien::after { /* bordure verte + halo au survol (opacité seulement) */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(34, 212, 119, 0.65);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(34, 212, 119, 0.08);
  opacity: 0; transition: opacity 340ms;
}
.carte-bien.est-cliquable { cursor: pointer; }
@media (hover: hover) {
  .carte-bien.est-cliquable:hover { transform: translateY(-5px) scale(1.018); }
  .carte-bien.est-cliquable:hover::after { opacity: 1; }
  .carte-bien.est-cliquable:hover .carte-bien__media img { transform: scale(1.06); }
  .carte-bien.est-cliquable:hover .carte-bien__indice .icone { transform: translateX(4px); }
}
.carte-bien:focus-visible { outline: 2px solid var(--vert); outline-offset: 4px; }
.carte-bien__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--rayon-l) var(--rayon-l) 0 0; background: var(--surface-2); }
.carte-bien__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--courbe); will-change: transform; }
.carte-bien__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 7, 0.55) 0%, transparent 40%); pointer-events: none; }
.carte-bien__sans-image { display: grid; place-items: center; height: 100%; color: var(--texte-3); }
.carte-bien__haut { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.carte-bien__photos { position: absolute; right: 14px; bottom: 14px; z-index: 1; }
.carte-bien__corps { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px 22px 18px; }
.carte-bien__titre { font-size: 1.45rem; line-height: 1.2; }
.carte-bien__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.carte-bien__badges:empty { display: none; }
.badge__chrono { font-weight: 500; opacity: 0.92; padding-left: 6px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, 0.35); }
.badge--respire { animation: d8-respiration 3.2s ease-in-out infinite; will-change: transform; transform-origin: left center; }

/* Prix */
.prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.prix__montant { font-family: var(--police-texte); font-weight: 700; font-size: 1.45rem; color: var(--vert); font-variant-numeric: tabular-nums; line-height: 1.2; }
.prix__suffixe { color: var(--texte-2); font-weight: 500; font-size: 0.95rem; }
.prix__ancien { color: var(--texte-3); font-weight: 500; font-size: 1rem; text-decoration-thickness: 2px; text-decoration-color: var(--danger); }
.prix--remise .prix__montant { color: var(--danger); }
.prix--grand .prix__montant { font-size: 1.9rem; }

/* Caractéristiques */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.specs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.specs__ligne { display: grid; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: var(--rayon-s); background: var(--surface-2); border: 1px solid var(--bordure); }
.specs dt { color: var(--texte-2); font-size: 0.86rem; font-weight: 500; }
.specs dd { margin: 0; font-weight: 600; font-size: 0.96rem; overflow-wrap: anywhere; }

.carte-bien__indispo { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--rayon-s); background: var(--danger-teinte); border: 1px solid rgba(255, 90, 90, 0.35); }
.carte-bien__indispo .icone { color: var(--danger); margin-top: 3px; }
.carte-bien__indispo div { display: grid; line-height: 1.4; }
.carte-bien__indispo strong { font-weight: 600; }
.carte-bien__indispo span { color: var(--texte-2); font-size: 0.92rem; }
.est-indisponible .carte-bien__media img { opacity: 0.4; }
.est-indisponible .prix__montant { color: var(--texte-3); }

.lien-externe { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; font-weight: 600; color: var(--vert); }
.carte-bien__pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--bordure); }
.carte-bien__indice { display: inline-flex; align-items: center; gap: 8px; color: var(--texte-2); font-weight: 500; font-size: 0.93rem; }
.carte-bien__indice .icone { color: var(--vert); transition: transform 300ms var(--courbe); }
.est-indisponible .carte-bien__indice { color: var(--danger); }

/* Carte large (un seul bien avec galerie, offres spéciales) */
@media (min-width: 980px) {
  .carte-bien--large { flex-direction: row; }
  .carte-bien--large .carte-bien__media { flex: 1.25; aspect-ratio: auto; min-height: 420px; border-radius: var(--rayon-l) 0 0 var(--rayon-l); }
  .carte-bien--large .carte-bien__corps { flex: 1; padding: 30px 32px 24px; }
  .carte-bien--large .carte-bien__titre { font-size: 2rem; }
  .carte-bien--large .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.carte-bien--offre { border-color: rgba(233, 199, 90, 0.3); }
.carte-bien--offre::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, #e9c75a, transparent); }

/* ---------- Carte d'enchère ---------- */
.carte-enchere {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  border-radius: var(--rayon-l); overflow: hidden;
  background: var(--surface-carte); border: 1px solid rgba(233, 199, 90, 0.3);
  box-shadow: var(--ombre-douce);
}
.carte-enchere__media { position: relative; min-height: 360px; background: var(--surface-2); }
.carte-enchere__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-enchere__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 7, 0.85), transparent 55%); }
.carte-enchere__etiquette { position: absolute; top: 16px; left: 16px; z-index: 1; }
.carte-enchere__chrono { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--rayon); background: rgba(8, 10, 12, 0.88); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; }
.carte-enchere__chrono span { color: #f0de48; font-weight: 600; font-size: 0.9rem; }
.carte-enchere__chrono strong { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.carte-enchere__corps { display: grid; gap: 22px; padding: 26px 28px; }
.carte-enchere__entete { display: grid; gap: 12px; }
.carte-enchere__entete h3 { font-size: 1.8rem; }
.carte-enchere__mise { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: var(--rayon); background: var(--or-teinte); border: 1px solid rgba(233, 199, 90, 0.3); }
.carte-enchere__mise span { color: var(--texte-2); font-weight: 500; }
.carte-enchere__mise strong { font-size: 1.6rem; font-weight: 700; color: var(--or); }
.carte-enchere__statut { color: var(--texte-2); font-weight: 500; }
.formulaire-enchere { display: grid; gap: 16px; }
.mises-rapides { display: flex; flex-wrap: wrap; gap: 8px; }
.enchere-auto { display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--rayon); background: var(--surface-2); border: 1px solid var(--bordure); }
.enchere-auto .interrupteur span:last-child { display: grid; line-height: 1.35; }
.enchere-auto small { color: var(--texte-2); font-size: 0.88rem; font-weight: 400; }
.formulaire-enchere__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.est-terminee .carte-enchere__chrono strong { color: #ff9b9b; }
.saisie-unite { position: relative; display: flex; align-items: center; }
.saisie-unite .saisie { padding-right: 46px; }
.saisie-unite > span { position: absolute; right: 14px; color: var(--texte-2); font-weight: 600; pointer-events: none; }

/* ---------- Modale d'estimation ---------- */
.modale-estimation .modale__boite { overflow: hidden; }
.modale-estimation .modale__corps { padding: 0; }
.estimation { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.estimation__visuel { display: flex; flex-direction: column; gap: 22px; padding: 22px; background: var(--fond-2); border-right: 1px solid var(--bordure); }
.estimation__identite { display: grid; gap: 12px; padding: 0 6px 6px; }
.estimation__nom { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.estimation__panneau { display: grid; align-content: start; gap: 22px; padding: 30px 30px 28px; }
.estimation__entete { display: grid; gap: 4px; padding-right: 50px; }
.estimation__entete h3 { font-size: 1.5rem; }
.bloc-estimation { display: grid; gap: 12px; }
.bloc-estimation:empty { display: none; }
.bloc-estimation__titre { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.bloc-estimation__titre label { font-weight: 600; }
.bloc-estimation__info { display: flex; align-items: center; gap: 10px; color: var(--texte-2); }
.bloc-estimation__info .icone { color: var(--vert); }
.coffre-reglage { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 14px; }
.inclus { display: grid; gap: 8px; margin: 0; }
.inclus div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--rayon-s); background: var(--surface-2); border: 1px solid var(--bordure); }
.inclus dt { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.inclus dt .icone { color: var(--vert); }
.inclus dd { margin: 0; font-weight: 600; }
.groupes-options { display: grid; gap: 14px; }
.recap__lignes { display: grid; margin: 0; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; }
.recap__lignes div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--bordure); }
.recap__lignes div:last-child { border-bottom: 0; }
.recap__lignes dt { color: var(--texte-2); font-weight: 500; }
.recap__lignes dd { margin: 0; font-weight: 600; text-align: right; }
.recap__ligne--remise dd { color: var(--danger); }
.segments--durees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.segments--durees .segment span { display: grid; line-height: 1.3; }
.segments--durees strong { font-weight: 600; }
.segments--durees small { font-size: 0.84rem; opacity: 0.85; font-variant-numeric: tabular-nums; }
.total-estimation { display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--rayon-l); background: linear-gradient(135deg, #0f7a45, #0a5a33); color: #fff; }
.total-estimation > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.total-estimation span { font-weight: 500; color: #d9f5e6; }
.total-estimation strong { font-size: 1.7rem; font-weight: 700; color: #fff; }
.total-estimation__duree { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.total-estimation__duree strong { font-size: 1.25rem; }
.mention { display: flex; align-items: center; gap: 8px; color: var(--texte-2); font-size: 0.9rem; }

/* Carrousel */
.carrousel { display: grid; gap: 10px; border-radius: var(--rayon); outline-offset: 4px; }
.carrousel__fenetre { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--rayon); background: #000; }
.carrousel__piste { display: flex; height: 100%; transition: transform 480ms var(--courbe); will-change: transform; }
.carrousel__photo { flex: 0 0 100%; margin: 0; height: 100%; }
.carrousel__photo img { width: 100%; height: 100%; object-fit: cover; }
.carrousel__fleche {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: rgba(8, 10, 12, 0.8); color: #fff;
  transition: transform var(--duree) var(--courbe);
}
.carrousel__fleche:hover { transform: scale(1.08); }
.carrousel__fleche--prec { left: 12px; }
.carrousel__fleche--suiv { right: 12px; }
.carrousel__compteur { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.carrousel__miniatures { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.carrousel__miniature { position: relative; flex: 0 0 86px; height: 58px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--surface-2); opacity: 0.6; transition: opacity var(--duree), transform var(--duree) var(--courbe); }
.carrousel__miniature img { width: 100%; height: 100%; object-fit: cover; }
.carrousel__miniature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--vert); opacity: 0; transition: opacity var(--duree); }
.carrousel__miniature:hover { opacity: 0.9; transform: translateY(-2px); }
.carrousel__miniature.est-active { opacity: 1; }
.carrousel__miniature.est-active::after { opacity: 1; }

/* ---------- Ticket doré ---------- */
.ticket-dore {
  position: absolute; top: 86px; right: -6px; z-index: 6;
  display: flex; align-items: stretch;
  min-width: 200px; padding: 0; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #7a560e 0%, #a87a1a 45%, #6b4a0c 100%);
  color: #fff; text-align: left; cursor: wait; overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 228, 140, 0.55);
  transform: rotate(4deg);
  animation: ticket-flotte 4s ease-in-out infinite;
  transition: opacity 600ms ease;
  will-change: transform;
}
@keyframes ticket-flotte { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }
.ticket-dore__reflet { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 245, 200, 0.35), transparent); transform: translateX(-120%); animation: ticket-reflet 3.2s ease-in-out infinite; will-change: transform; pointer-events: none; }
@keyframes ticket-reflet { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
.ticket-dore__corps { position: relative; display: grid; gap: 3px; padding: 10px 14px; }
.ticket-dore__titre { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.95rem; color: #fff; }
.ticket-dore__titre .icone { width: 16px; height: 16px; color: #ffe9a3; }
.ticket-dore__texte { font-weight: 600; font-size: 0.86rem; color: #fff3cf; }
.ticket-dore__barre { position: relative; height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.ticket-dore__barre i { position: absolute; inset: 0; background: #fff3cf; transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; will-change: transform; }
.ticket-dore.est-en-cours .ticket-dore__barre i { transform: scaleX(1); transition: transform 15s linear; }
.ticket-dore.est-pret { cursor: pointer; }
.ticket-dore.est-pret .ticket-dore__barre i { transform: scaleX(1); transition: none; }
.ticket-dore.est-pret .ticket-dore__texte { color: #fff; }
.ticket-dore__talon { position: relative; display: grid; place-items: center; padding: 0 12px; border-left: 2px dashed rgba(255, 233, 163, 0.6); font-variant-numeric: lining-nums; font-family: var(--police-titre); font-weight: 700; font-size: 1.15rem; color: #fff; background: rgba(0, 0, 0, 0.18); }
.ticket-dore.tremble { animation: d8-tremblement 480ms ease; }
.ticket-dore.est-retire { opacity: 0; pointer-events: none; }
.ticket-dore--reviews { top: 22px; right: 22px; }
.ticket-dore--estimate { top: 86px; right: 18px; }
.liste-avis { position: relative; }

/* Trouvaille (gain du ticket) */
.modale-ticket--gain .modale__boite { background: radial-gradient(120% 80% at 50% 0%, #2a2008 0%, var(--surface) 60%); border-color: rgba(233, 199, 90, 0.45); overflow: hidden; }
.trouvaille { display: grid; justify-items: center; gap: 12px; padding: 18px 6px 4px; text-align: center; }
.trouvaille__embleme {
  position: relative; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(135deg, #8a6514, #b8862a 50%, #6b4c0d); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 228, 140, 0.6);
  animation: embleme 900ms var(--courbe-rebond) both; will-change: transform, opacity;
}
.trouvaille__embleme span { font-variant-numeric: lining-nums; font-family: var(--police-titre); font-weight: 700; font-size: 2.4rem; color: #fff; }
.trouvaille__reflet { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 245, 210, 0.55) 50%, transparent 70%); transform: translateX(-100%); animation: d8-reflet 1.1s ease 600ms forwards; }
@keyframes embleme { from { opacity: 0; transform: scale(0.4) rotate(-14deg); } to { opacity: 1; transform: none; } }
.trouvaille h2 { font-size: 2rem; animation: d8-apparition 500ms var(--courbe) 300ms both; }
.trouvaille .sur-titre { animation: d8-apparition 500ms var(--courbe) 220ms both; }
.trouvaille__contenu { color: var(--texte-2); white-space: pre-line; max-width: 46ch; animation: d8-apparition 500ms var(--courbe) 380ms both; }
.trouvaille .bouton { margin-top: 8px; animation: d8-apparition 500ms var(--courbe) 460ms both; }

/* ---------- Page Avis ---------- */
.page-avis { display: grid; gap: 28px; }
.avis-resume { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.avis-resume__bloc { display: grid; gap: 8px; padding: 26px 28px; border-radius: var(--rayon-l); background: var(--surface-carte); border: 1px solid var(--bordure); }
.avis-resume__libelle { color: var(--or); font-weight: 600; }
.avis-resume__valeur { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avis-resume__valeur strong { font-variant-numeric: lining-nums; font-family: var(--police-titre); font-weight: 700; font-size: 3rem; line-height: 1; }
.avis-resume__valeur .etoiles .icone { width: 22px; height: 22px; }
.page-avis__colonnes { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.titre-bloc { display: grid; gap: 4px; margin-bottom: 20px; }
.titre-bloc h3 { font-size: 1.5rem; }
.formulaire-avis { position: sticky; top: 96px; }
.liste-avis__entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.liste-avis__filtre { width: min(100%, 260px); }
.liste-avis__cartes { display: grid; gap: 14px; }
.avis-chargement { display: flex; align-items: center; gap: 12px; color: var(--texte-2); padding: 24px 0; }
.carte-avis { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--rayon); background: var(--surface-2); border: 1px solid var(--bordure); }
.carte-avis__entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.carte-avis__employe { display: flex; align-items: center; gap: 12px; }
.carte-avis__employe > div { display: grid; line-height: 1.3; }
.carte-avis__employe strong { font-weight: 600; }
.carte-avis__employe span.texte-2 { font-size: 0.86rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--vert-plein); color: #fff; font-weight: 700; flex: none; }
.carte-avis__texte { line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.carte-avis__pied { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--texte-2); font-size: 0.9rem; font-weight: 500; }
.carte-avis__pied span { display: inline-flex; align-items: center; gap: 6px; }
.champ--etoiles { border: 0; padding: 0; margin: 0; min-width: 0; }
.saisie-etoiles { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.saisie-etoiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.saisie-etoiles label { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; color: var(--texte-3); cursor: pointer; transition: transform 200ms var(--courbe-rebond); }
.saisie-etoiles label .icone { width: 28px; height: 28px; }
.saisie-etoiles label:hover, .saisie-etoiles label:hover ~ label,
.saisie-etoiles input:checked ~ label { color: var(--or); }
.saisie-etoiles label:hover .icone, .saisie-etoiles label:hover ~ label .icone,
.saisie-etoiles input:checked ~ label .icone { fill: currentColor; }
.saisie-etoiles label:hover { transform: scale(1.15); }
.saisie-etoiles input:focus-visible + label { outline: 2px solid var(--vert); outline-offset: 2px; }
.compteur-caracteres { justify-self: end; font-variant-numeric: tabular-nums; }

/* ---------- Pages formulaire (candidature, RDV) ---------- */
.page-formulaire { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.page-formulaire__intro { display: grid; gap: 16px; position: sticky; top: 96px; }
.page-formulaire__intro h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.liste-atouts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.liste-atouts li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.liste-atouts .icone { color: var(--vert); }
.formulaire-candidature .champ--large { grid-column: 1 / -1; }
.formulaire-candidature > .bouton { margin-top: 22px; }
.formulaire-candidature > .message-formulaire { margin-top: 18px; }

/* ---------- Espace employés (point de branchement) ---------- */
.espace-employes { display: none; }
.mode-employes .page { display: none; }
.mode-employes .espace-employes { display: block; min-height: 100vh; }
.connexion { display: grid; place-items: center; min-height: 100vh; padding: 40px var(--gouttiere); }
.connexion__carte { display: grid; gap: 14px; width: min(100%, 440px); text-align: left; }
.connexion__logo { width: 72px; height: 72px; border-radius: 20px; border: 2px solid rgba(240, 222, 72, 0.5); margin-bottom: 6px; }
.connexion__carte .bouton--lien { justify-self: start; }

/* ---------- Pied de page ---------- */
.pied-page { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 72px; padding: 28px 0 8px; border-top: 1px solid var(--bordure); }
.pied-page__marque { display: flex; align-items: center; gap: 12px; }
.pied-page__marque img { border-radius: 10px; }
.pied-page__marque div { display: grid; line-height: 1.3; }
.pied-page__marque strong { font-family: var(--police-titre); font-weight: 700; }
.pied-page__marque span { color: var(--texte-2); font-size: 0.9rem; }
.pied-page p { flex: 1; min-width: 220px; font-size: 0.92rem; }

/* ---------- Thèmes saisonniers ---------- */
.calque-saison { position: fixed; inset: 0; z-index: 18; pointer-events: none; overflow: hidden; }
.calque-saison:empty { display: none; }
.guirlande { position: absolute; display: flex; justify-content: space-around; }
.guirlande--haut { top: 0; left: var(--rail); right: 0; height: 22px; padding: 0 20px; border-top: 2px solid rgba(56, 217, 133, 0.35); }
.guirlande--gauche, .guirlande--droite { top: 40px; bottom: 40px; width: 22px; flex-direction: column; }
.guirlande--gauche { left: calc(var(--rail) + 2px); }
.guirlande--droite { right: 2px; }
.ampoule { width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; margin-top: 4px; animation: ampoule 1.6s ease-in-out infinite; animation-delay: var(--d); will-change: opacity; }
.ampoule--rouge { background: #ff4d4d; box-shadow: 0 0 10px rgba(255, 77, 77, 0.8); }
.ampoule--or { background: #f7de3f; box-shadow: 0 0 10px rgba(247, 222, 63, 0.8); }
.ampoule--vert { background: #38d985; box-shadow: 0 0 10px rgba(56, 217, 133, 0.8); }
@keyframes ampoule { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.coin-saison { position: absolute; bottom: 18px; display: flex; align-items: flex-end; gap: 4px; }
.coin-saison--gauche { left: calc(var(--rail) + 18px); }
.coin-saison--droite { right: 18px; }
.coin-saison .deco-1 { width: 38px; height: 38px; color: #38d985; animation: deco-balance 4s ease-in-out infinite; transform-origin: bottom center; will-change: transform; }
.coin-saison .deco-2 { width: 27px; height: 27px; color: #ff6b6b; animation: deco-balance 4s ease-in-out 1s infinite; transform-origin: bottom center; will-change: transform; }
.coin-saison--droite .deco-1 { color: #ff6b6b; }
.coin-saison .deco-or { color: #f7de3f; }
.coin-saison .deco-orange { color: #f18a3a; }
.coin-saison .deco-violet { color: #b07acb; }
@keyframes deco-balance { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.flocon { position: absolute; top: -30px; color: rgba(255, 255, 255, 0.85); animation: flocon var(--duree) linear var(--delai) infinite; will-change: transform; }
.flocon .icone { width: var(--taille); height: var(--taille); }
.theme-light .flocon { color: rgba(120, 160, 200, 0.75); }
@keyframes flocon { from { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(30px, 55vh, 0) rotate(160deg); } to { transform: translate3d(0, 110vh, 0) rotate(320deg); } }
.cadre-halloween { position: absolute; top: 8px; right: 8px; bottom: 8px; left: calc(var(--rail) + 8px); border: 1px solid rgba(238, 112, 35, 0.45); border-radius: 18px; box-shadow: inset 0 0 40px rgba(124, 58, 160, 0.22); }
.flottant { position: absolute; animation: flottant var(--duree) ease-in-out var(--delai) infinite; will-change: transform, opacity; }
.flottant .icone { width: 26px; height: 26px; }
.flottant--orange { color: #f18a3a; }
.flottant--violet { color: #b07acb; }
@keyframes flottant { 0%, 100% { transform: translateY(0) rotate(-6deg); opacity: 0.3; } 50% { transform: translateY(-22px) rotate(6deg); opacity: 0.72; } }
/* Décor des cartes à Noël : liseré guirlande + cadeau qui flotte */
.saison-noel .carte-bien__media::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; z-index: 2;
  background: repeating-linear-gradient(90deg, #d93636 0 14px, #f7de3f 14px 28px, #2fbf71 28px 42px);
}
.saison-noel .carte-bien__corps::before {
  content: ""; position: absolute; top: -18px; right: 16px; z-index: 3; width: 36px; height: 36px; border-radius: 10px;
  background: #b3261e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  animation: cadeau 3.4s ease-in-out infinite; will-change: transform;
}
.saison-noel .carte-bien__corps { position: relative; }
@keyframes cadeau { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(6deg); } }

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
  .bandeau-promo { grid-template-columns: 1fr auto; }
  .bandeau-promo__puces { grid-column: 1 / -1; order: 3; }
  .estimation { grid-template-columns: 1fr; }
  .estimation__visuel { border-right: 0; border-bottom: 1px solid var(--bordure); }
  .carte-enchere { grid-template-columns: 1fr; }
  .carte-enchere__media { min-height: 300px; aspect-ratio: 16 / 9; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 470px; padding: 40px 30px 30px; }
  .hero__panneau { max-width: none; }
  .page-avis__colonnes, .page-formulaire { grid-template-columns: 1fr; }
  .formulaire-avis, .page-formulaire__intro { position: static; }
}

/* ---------- Mobile (barre du haut) ---------- */
@media (max-width: 760px) {
  :root { --rail: 0px; }
  .principal { padding-left: 0; padding-top: var(--hauteur-barre-mobile); }
  .page { padding: 16px var(--gouttiere) 32px; }

  .barre {
    top: 0; right: 0; bottom: auto; width: 100%; height: var(--hauteur-barre-mobile);
    transform: none; border-right: 0; border-bottom: 1px solid var(--bordure);
  }
  .barre::after { display: none; }
  .barre .barre__interieur {
    flex-direction: row; align-items: center; gap: 4px; width: 100%; height: 100%;
    padding: 0 10px; transform: none; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity;
  }
  .barre__marque, .barre__separateur, .bascule-theme, .lien-nav--haut { display: none; }
  .barre__vedettes, .barre__nav, .barre__pied { display: flex; gap: 4px; padding: 0; margin: 0; border: 0; }
  .barre__pied { margin-left: 0; }
  .lien-nav { width: 52px; min-height: 52px; padding: 0; justify-content: center; flex: none; scroll-snap-align: center; }
  .lien-nav:hover { transform: none; }
  .lien-nav__libelle { display: none; }

  .guirlande--haut { top: var(--hauteur-barre-mobile); }
  .guirlande--gauche, .guirlande--droite { display: none; }
  .coin-saison { bottom: 10px; }
  .coin-saison--gauche { left: 10px; }
  .coin-saison--droite { right: 10px; }
  .coin-saison .deco-1 { width: 30px; height: 30px; }
  .coin-saison .deco-2 { width: 22px; height: 22px; }
  .cadre-halloween { left: 8px; top: calc(var(--hauteur-barre-mobile) + 8px); }

  .bandeau-promo { grid-template-columns: 1fr; padding: 16px; }
  .bandeau-promo__temps { text-align: left; }
  .bandeau-promo__bouton { width: 100%; }
  .bandeau-promo__puces { display: none; }

  .hero { min-height: 0; padding: 30px 20px 22px; border-radius: 22px; gap: 22px; }
  .hero::after { left: 20px; right: 20px; }
  .hero__logo { width: 60px; height: 60px; border-radius: 16px; }
  .hero__accroche { font-size: 1rem; }
  .hero__panneau { min-width: 0; padding: 16px 18px; }
  .hero__panneau-titre { font-size: 1.35rem; }

  .outils { position: static; flex-direction: column; align-items: stretch; padding: 14px 0; }
  .outils__recherche { max-width: none; }
  .outils__theme { display: inline-flex; }
  .outils__discord { width: 100%; }
  .outils__resume { margin-left: 0; text-align: left; display: flex; align-items: baseline; gap: 10px; }

  .catalogue { padding-top: 28px; }
  .grille-biens, .grille-biens--compacte { grid-template-columns: 1fr; gap: 20px; }
  .specs, .specs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte-bien__corps { padding: 18px; }
  .carte-bien__titre { font-size: 1.3rem; }

  .carte-enchere__corps { padding: 20px 18px; }
  .carte-enchere__entete h3 { font-size: 1.5rem; }
  .formulaire-enchere__actions .bouton--or { width: 100%; }

  .modale-estimation { padding: 0; }
  .modale-estimation .modale__boite { border-radius: 0; min-height: 100%; border: 0; }
  .estimation__visuel { padding: 0 0 18px; }
  .estimation__visuel .carrousel__fenetre { border-radius: 0; }
  .estimation__visuel .carrousel__miniatures { padding: 0 14px; }
  .estimation__identite { padding: 0 18px; }
  .estimation__panneau { padding: 22px 18px 26px; }
  .coffre-reglage { grid-template-columns: 1fr 120px; }
  .segments--durees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments[data-garages] .segment { flex: 1 1 calc(50% - 8px); }
  .ticket-dore--estimate { top: 70px; right: 10px; }

  .avis-resume { gap: 12px; }
  .avis-resume__bloc { padding: 18px; }
  .avis-resume__valeur strong { font-size: 2.3rem; }
  .liste-avis__filtre { width: 100%; }
  .carte-avis__entete { flex-direction: column; align-items: flex-start; }
  .panneau { padding: 20px 18px; }

  .pied-page { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .avis-resume { grid-template-columns: 1fr; }
  .specs, .specs--2 { grid-template-columns: 1fr 1fr; }
  .carrousel__fleche { width: 44px; height: 44px; }
}
