/* Exposéo — feuille de style unique : page d'accueil, outil équipe, vitrines publiques, étiquettes.
   Règle de la maison : fonds clairs, texte sombre, accent orange #D4570A. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --pierre: #f2f1ed;
  --blanc: #ffffff;
  --graphite: #22262a;
  --ardoise: #5b6168;
  --joint: #d9d7d0;
  --orange: #d4570a;
  --orange-fonce: #a8430a;
  --orange-pale: #fbede4;
  --vert: #2f6b4a;
  --vert-pale: #e6f1ea;
  --rouge: #b3261e;
  --rouge-pale: #fbeae8;

  --titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rayon: 10px;
  --largeur: 46rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pierre);
  color: var(--graphite);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
}

h2 {
  font-size: 1.3rem;
}

p {
  margin: 0;
}

a {
  color: var(--orange-fonce);
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 2px;
}

.multiligne {
  white-space: pre-line;
}

.discret {
  color: var(--ardoise);
  font-size: 0.95rem;
}

[hidden] {
  display: none !important;
}

/* --- Boutons ------------------------------------------------------------ */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid var(--graphite);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--graphite);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bouton:hover {
  background: var(--pierre);
}

.bouton-principal {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--blanc);
}

.bouton-principal:hover {
  border-color: var(--orange-fonce);
  background: var(--orange-fonce);
}

.bouton-danger {
  border-color: var(--rouge);
  color: var(--rouge);
}

.bouton-lien {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange-fonce);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.bouton-lien:hover {
  background: none;
  color: var(--graphite);
}

.bouton[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.bouton-large {
  width: 100%;
}

/* --- Formulaires -------------------------------------------------------- */

.champ {
  display: grid;
  gap: 0.35rem;
}

.champ > label,
.champ > .libelle {
  font-weight: 600;
}

.champ .aide {
  color: var(--ardoise);
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #8d9197;
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--graphite);
  font: inherit;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 1px;
  border-color: var(--graphite);
}

.case {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.case input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--orange);
  flex: none;
}

.formulaire {
  display: grid;
  gap: 1.25rem;
}

.rangee {
  display: grid;
  gap: 1rem;
}

@media (min-width: 34rem) {
  .rangee {
    grid-template-columns: 1fr 1fr;
  }

  .rangee-courte {
    grid-template-columns: 9rem 1fr;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Messages ----------------------------------------------------------- */

.message {
  padding: 0.85rem 1rem;
  border-radius: var(--rayon);
  border-left: 5px solid var(--ardoise);
  background: var(--blanc);
}

.message-ok {
  border-left-color: var(--vert);
  background: var(--vert-pale);
}

.message-erreur {
  border-left-color: var(--rouge);
  background: var(--rouge-pale);
}

.annonce {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  z-index: 30;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1.1rem;
  border-radius: var(--rayon);
  background: var(--graphite);
  color: var(--blanc);
  font-weight: 600;
  transform: translateX(-50%);
}

.annonce:empty {
  display: none;
}

/* --- Étiquette : la forme signature d'Exposéo ---------------------------
   Une étiquette de showroom, coin coupé et œillet. Elle sert pour le prix
   sur la fiche publique et pour l'aperçu des étiquettes QR. */

.etiquette-prix,
.etiquette {
  position: relative;
  isolation: isolate;
  background: var(--graphite);
  clip-path: polygon(0 0, calc(100% - 1.1rem) 0, 100% 1.1rem, 100% 100%, 0 100%);
}

/* Le fond blanc est posé en retrait de 1,5 px : le graphite qui dépasse dessine
   le contour, y compris le long du coin coupé. */
.etiquette-prix::after,
.etiquette::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  background: var(--blanc);
  clip-path: polygon(0 0, calc(100% - 1.1rem + 0.88px) 0, 100% calc(1.1rem - 0.88px), 100% 100%, 0 100%);
}

.etiquette-prix {
  display: inline-block;
  padding: 0.55rem 1.6rem 0.55rem 2.1rem;
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 650;
}

.etiquette-prix::before,
.etiquette::before {
  content: "";
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  border: 1.5px solid var(--graphite);
  border-radius: 50%;
  background: var(--pierre);
}

.etiquette-prix::before {
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

.etiquette {
  width: min(100%, 17rem);
  margin-inline: auto;
  padding: 2rem 1.25rem 1.25rem;
  text-align: center;
}

.etiquette::before {
  left: 50%;
  top: 0.65rem;
  transform: translateX(-50%);
}

.etiquette-enseigne {
  color: var(--ardoise);
  font-size: 0.85rem;
}

.etiquette svg {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
  margin: 0.5rem auto;
}

.etiquette-nom {
  font-family: var(--titre);
  font-weight: 650;
  font-size: 1.1rem;
  line-height: 1.2;
  text-wrap: balance;
}

.etiquette-invite {
  margin-top: 0.3rem;
  color: var(--ardoise);
  font-size: 0.8rem;
}

/* ========================================================================
   Outil équipe (/app/)
   ===================================================================== */

/* Structure : sur téléphone, un bandeau en haut et des onglets en bas ;
   sur ordinateur, une colonne de menu à gauche et le contenu à droite. */

.outil {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 5.5rem;
}

.lateral {
  display: contents;
}

.lateral-tete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--pierre);
  border-bottom: 1.5px solid var(--joint);
}

.lateral-vitrine,
.lateral-pied {
  display: none;
}

.marque {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.marque img {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  flex: none;
}

.marque-nom {
  overflow: hidden;
  font-family: var(--titre);
  font-weight: 650;
  font-size: 1.1rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pastille {
  flex: none;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  background: var(--orange-pale);
  color: var(--orange-fonce);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.ecran {
  display: grid;
  align-content: start;
  gap: 1.5rem;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.ecran-large {
  max-width: 70rem;
}

@media (max-width: 45.99rem) {
  .ecran-large-seulement {
    display: none;
  }
}

.ecran-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.retour {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

.icone {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.onglets {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--blanc);
  border-top: 1.5px solid var(--joint);
  padding-bottom: env(safe-area-inset-bottom);
}

.onglets ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.onglets a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.9rem;
  border-top: 4px solid transparent;
  color: var(--ardoise);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.onglets a[aria-current="page"] {
  border-top-color: var(--orange);
  color: var(--graphite);
}

.onglets .compteur {
  display: none;
}

@media (min-width: 62rem) {
  .outil {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    padding-bottom: 0;
  }

  .lateral {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    height: 100vh;
    height: 100dvh;
    padding: 1.5rem 1rem 1.25rem;
    overflow-y: auto;
    background: var(--blanc);
    border-right: 1.5px solid var(--joint);
  }

  .lateral-tete {
    position: static;
    display: grid;
    gap: 0.5rem;
    padding: 0 0.5rem;
    background: none;
    border: 0;
  }

  .lateral-tete .marque {
    align-items: flex-start;
  }

  .lateral-tete .marque img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9px;
  }

  .lateral-tete .marque-nom {
    align-self: center;
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lateral-tete .pastille {
    display: none;
  }

  .lateral-vitrine {
    display: block;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }

  .onglets {
    position: static;
    border: 0;
    padding: 0;
  }

  .onglets ul {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .onglets a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 2.9rem;
    padding: 0 0.75rem;
    border-top: 0;
    border-radius: var(--rayon);
    font-size: 1rem;
  }

  .onglets a:hover {
    background: var(--pierre);
    color: var(--graphite);
  }

  .onglets a[aria-current="page"] {
    background: var(--orange-pale);
    color: var(--graphite);
  }

  .onglets a[aria-current="page"] .icone {
    color: var(--orange);
  }

  .onglets .compteur {
    display: block;
    margin-left: auto;
    color: var(--ardoise);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
  }

  .lateral-pied {
    display: grid;
    gap: 1rem;
    margin-top: auto;
    padding: 0 0.5rem;
    font-size: 0.9rem;
  }

  .lateral-acces {
    display: grid;
    gap: 0.4rem;
    padding: 0.85rem;
    border-radius: var(--rayon);
    background: var(--pierre);
  }

  .lateral-acces span {
    color: var(--ardoise);
  }

  .lateral-compte {
    display: grid;
    gap: 0.15rem;
    justify-items: start;
    overflow-wrap: anywhere;
  }

  .lateral-signature {
    color: var(--ardoise);
    font-family: var(--titre);
    font-weight: 650;
  }

  .ecran {
    width: 100%;
    padding: 2.25rem 2rem 3rem;
  }

  .annonce {
    bottom: 2rem;
    left: calc(50% + 8.5rem);
  }
}

/* Jauge : essai, démarrage, fiche du showroom, palmarès */

.jauge {
  height: 0.45rem;
  border-radius: 99px;
  background: var(--joint);
  overflow: hidden;
}

.jauge span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--orange);
}

.hors-ecran {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Tableau de bord ------------------------------------------------------ */

.date-du-jour::first-letter {
  text-transform: uppercase;
}

/* Les chiffres : un seul panneau, découpé par des joints comme un carrelage. */
.chiffres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  border-radius: var(--rayon);
  background: var(--joint);
  overflow: hidden;
}

.chiffre {
  display: grid;
  gap: 0.15rem;
  align-content: start;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--blanc);
}

.chiffre-libelle {
  color: var(--ardoise);
  font-size: 0.92rem;
  font-weight: 600;
}

.chiffre-valeur {
  font-family: var(--titre);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.chiffre-precision {
  color: var(--ardoise);
  font-size: 0.85rem;
}

.tableau,
.tableau-colonne {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.tableau-colonne {
  min-width: 0;
}

@media (min-width: 46rem) {
  .chiffres {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 76rem) {
  .tableau {
    grid-template-columns: minmax(0, 1.75fr) minmax(19rem, 1fr);
  }
}

.bloc-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.bloc-tete .pastille {
  align-self: center;
}

/* Scans par jour */

.histo-lecture {
  color: var(--ardoise);
  font-size: 0.92rem;
}

.histo-lecture::first-letter {
  text-transform: uppercase;
}

.histo,
.histo-axe {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
}

.histo {
  position: relative;
  height: 10rem;
  border-top: 1px solid var(--joint);
  border-bottom: 1px solid #8d9197;
}

.histo-vide {
  height: 4.5rem;
}

.histo-max {
  position: absolute;
  top: 0.2rem;
  left: 0;
  color: var(--ardoise);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.histo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  height: 100%;
  min-width: 0;
}

.histo-col:hover {
  background: var(--pierre);
}

.histo-barre {
  width: min(1.5rem, 62%);
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--orange);
}

.histo-valeur {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.histo-axe {
  margin-top: -0.5rem;
  color: var(--ardoise);
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.histo-axe div {
  display: grid;
}

.histo-axe .histo-jour {
  color: var(--graphite);
  font-weight: 700;
}

/* Fiches les plus scannées */

.palmares {
  display: grid;
  gap: 0.85rem;
}

.palmares li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.palmares .vignette {
  width: 3rem;
  height: 3rem;
}

.palmares-corps {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.palmares-corps a {
  overflow: hidden;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.palmares-corps a:hover {
  text-decoration: underline;
}

.palmares-nombre {
  min-width: 2ch;
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Vitrine et fiche du showroom */

.bloc-vitrine .etiquette {
  width: min(100%, 15rem);
}

.bloc-vitrine .actions .bouton {
  flex: 1 1 auto;
}

.bloc-vitrine .etiquette::before {
  background: var(--blanc);
}

.renvoi-affiche {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
  padding-top: 1rem;
  border-top: 1.5px solid var(--joint);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.45rem 1rem;
}

.points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.points li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid #8d9197;
  border-radius: 50%;
}

.points li.fait {
  color: var(--ardoise);
}

.points li.fait::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: var(--vert);
  background: var(--vert);
  color: var(--blanc);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.bloc {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--rayon);
  background: var(--blanc);
}

/* Connexion */

.porte {
  display: grid;
  align-content: start;
  gap: 1.5rem;
  max-width: 27rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.porte .marque img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
}

.porte .marque-nom {
  font-size: 1.5rem;
}

.deux-voies {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2rem;
  list-style: disc;
}

#code {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
}

.choix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--graphite);
  border-radius: var(--rayon);
  overflow: hidden;
}

.choix a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.4rem 0.6rem;
  background: var(--blanc);
  color: var(--graphite);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.choix a[aria-current="page"] {
  background: var(--graphite);
  color: var(--blanc);
}

/* Démarrage guidé */

.demarrage {
  border: 1.5px solid var(--graphite);
}

.etapes {
  display: grid;
  gap: 0.9rem;
  counter-reset: etape;
}

.etapes li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.75rem;
  align-items: start;
  counter-increment: etape;
}

.etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1.5px solid var(--graphite);
  border-radius: 50%;
  font-family: var(--titre);
  font-weight: 650;
}

.etapes li.faite::before {
  content: "✓";
  border-color: var(--vert);
  background: var(--vert);
  color: var(--blanc);
}

.etapes li.faite .etape-titre {
  color: var(--ardoise);
}

.etape-titre {
  font-weight: 600;
}

.etape-corps {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

/* Liste des fiches */

.fiches {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 82rem) {
  .ecran-large .fiches {
    grid-template-columns: 1fr 1fr;
  }
}

.fiche-ligne {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: var(--rayon);
  background: var(--blanc);
}

.fiche-ligne.retiree .vignette,
.fiche-ligne.retiree .fiche-lien {
  opacity: 0.55;
}

.vignette {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 7px;
  background: var(--pierre);
  object-fit: cover;
}

.fiche-lien {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.fiche-lien strong {
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fiche-lien span {
  color: var(--ardoise);
  font-size: 0.92rem;
}

.interrupteur {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0.35rem;
  color: var(--ardoise);
  font-size: 0.8rem;
  cursor: pointer;
}

.interrupteur input {
  appearance: none;
  position: relative;
  width: 2.9rem;
  height: 1.7rem;
  margin: 0;
  border: 1.5px solid var(--ardoise);
  border-radius: 99px;
  background: var(--blanc);
  cursor: pointer;
}

.interrupteur input::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--ardoise);
  transform: translateY(-50%);
  transition: left 0.15s;
}

.interrupteur input:checked {
  border-color: var(--orange);
  background: var(--orange);
}

.interrupteur input:checked::before {
  left: 1.4rem;
  background: var(--blanc);
}

@media (prefers-reduced-motion: reduce) {
  .interrupteur input::before {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.vide {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.5rem 1.25rem;
  border: 1.5px dashed #8d9197;
  border-radius: var(--rayon);
}

/* Photos d'une fiche */

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.6rem;
}

.photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--pierre);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo.en-cours img {
  opacity: 0.45;
}

.photo-etat {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.2rem 0.4rem;
  background: var(--graphite);
  color: var(--blanc);
  font-size: 0.8rem;
  text-align: center;
}

.photo-retirer {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--blanc);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.photo-ajout {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0.5rem;
  border: 1.5px dashed var(--graphite);
  border-radius: var(--rayon);
  background: var(--blanc);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.photo-ajout:focus-within {
  outline: 3px solid var(--graphite);
  outline-offset: 2px;
}

.photo-ajout input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photos-seule .photo-ajout {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 8rem;
  font-size: 1.1rem;
}

/* Catégories du showroom */

.puces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.puce {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.4rem 0.3rem 0.8rem;
  border: 1.5px solid var(--joint);
  border-radius: 99px;
  background: var(--blanc);
}

.puce button {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--pierre);
  color: var(--graphite);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ajout-ligne {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.adresse-vitrine {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.logo-apercu {
  width: 4.5rem;
  height: 4.5rem;
  border: 1.5px solid var(--joint);
  border-radius: var(--rayon);
  background: var(--blanc);
  object-fit: contain;
}

.logo-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.fichier-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Étiquettes : choix des fiches */

.selection-ligne {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--rayon);
  background: var(--blanc);
  cursor: pointer;
}

.selection-ligne input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--orange);
  flex: none;
}

.selection-liste {
  display: grid;
  gap: 0.4rem;
}

/* ========================================================================
   Planche d'étiquettes : visible uniquement à l'impression
   ===================================================================== */

.planche {
  display: none;
}

/* Affiche pour la porte : toutes ses mesures sont en em, calées sur la taille de police
   du conteneur. Une largeur de 45 em : 0,4 rem par em pour l'aperçu, 4,2 mm à l'impression. */

.affiche-apercu {
  justify-self: center;
  font-size: 0.4rem;
  border: 1.5px solid var(--joint);
  box-shadow: 0 0.5rem 1.5rem rgb(34 38 42 / 12%);
}

@media (min-width: 46rem) {
  .affiche-apercu {
    font-size: 0.6rem;
  }
}

.affiche {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45em;
  height: 65em;
  padding: 2.6em 3.5em 1.8em;
  background: #fff;
  color: #000;
  text-align: center;
  overflow: hidden;
}

/* Rien ne se tasse : si le contenu est trop long, c'est le code QR qui rétrécit (classe « dense »). */
.affiche > * {
  flex: none;
}

.affiche-tete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  max-width: 100%;
  min-height: 4em;
}

.affiche-tete img {
  width: auto;
  max-width: 9em;
  max-height: 4em;
  object-fit: contain;
}

.affiche-nom {
  font-family: var(--titre);
  font-size: 2.2em;
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.affiche-accroche {
  margin-top: 0.3em;
  font-family: var(--titre);
  font-size: 3.6em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.affiche-accroche.longue {
  font-size: 2.9em;
}

.affiche-qr {
  margin-top: 1.6em;
  padding: 1.2em;
  border: 0.35em solid #000;
  border-radius: 1.6em;
}

.affiche-qr svg {
  display: block;
  width: 18em;
  height: 18em;
}

.affiche.dense .affiche-qr svg {
  width: 14.5em;
  height: 14.5em;
}

/* Sans horaires ni coordonnées, le code prend la place libre. */
.affiche.aeree .affiche-qr {
  margin-top: 2.4em;
}

.affiche.aeree .affiche-qr svg {
  width: 23em;
  height: 23em;
}

.affiche.aeree .affiche-invite {
  margin-top: 1.4em;
}

.affiche-invite {
  margin-top: 0.8em;
  max-width: 18em;
  font-size: 1.7em;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.affiche-adresse {
  margin-top: 0.45em;
  font-size: 1.4em;
  overflow-wrap: anywhere;
}

.affiche-pied {
  display: flex;
  justify-content: center;
  gap: 2em;
  width: 100%;
  margin-top: auto;
  padding-top: 1.2em;
  border-top: 0.15em solid #000;
  text-align: left;
}

.affiche-pied div {
  display: grid;
  align-content: start;
  gap: 0.1em;
  min-width: 0;
  font-size: 1.1em;
  line-height: 1.35;
}

/* Les coordonnées gardent leur largeur ; ce sont les horaires qui passent à la ligne s'il le faut. */
.affiche-pied div + div {
  flex: none;
  max-width: 15em;
}

.affiche-signature {
  margin-top: auto;
  padding-top: 1em;
  color: #555;
  font-size: 0.95em;
}

.affiche-pied + .affiche-signature {
  margin-top: 0;
}

@page {
  size: A4;
  margin: 10mm;
}

@media print {
  body {
    background: #fff;
  }

  #app,
  .annonce {
    display: none !important;
  }

  .planche {
    display: block;
  }

  .planche > .affiche {
    margin: 0 auto;
    font-size: 4.2mm;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .planche-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 68mm;
    break-after: page;
  }

  .planche-page:last-child {
    break-after: auto;
  }

  .etiquette-imprimee {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    justify-items: center;
    align-items: center;
    padding: 4mm 4mm 3mm;
    border: 0.2mm dashed #999;
    color: #000;
    text-align: center;
    break-inside: avoid;
    overflow: hidden;
  }

  .etiquette-imprimee .ei-enseigne {
    font-size: 8pt;
    color: #444;
  }

  .etiquette-imprimee svg {
    width: 36mm;
    height: 36mm;
  }

  .etiquette-imprimee .ei-nom {
    font-family: var(--titre);
    font-size: 10.5pt;
    font-weight: 650;
    line-height: 1.15;
    max-height: 2.3em;
    overflow: hidden;
  }

  .etiquette-imprimee .ei-invite {
    font-size: 7.5pt;
    color: #444;
  }
}

/* ========================================================================
   Pages publiques : vitrine du showroom et fiche produit
   ===================================================================== */

.public {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.public main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.enseigne {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 1rem;
}

.enseigne-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.enseigne-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--rayon);
  background: var(--blanc);
  object-fit: contain;
}

.enseigne-nom {
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.enseigne-ville {
  margin-top: 0.15rem;
  color: var(--ardoise);
}

.accueil {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 2rem;
  border-top: 1.5px solid var(--graphite);
}

.accueil h1 {
  max-width: 22ch;
}

.presentation {
  max-width: 60ch;
}

.infos {
  display: grid;
  gap: 1rem 2.5rem;
  margin: 0;
}

.infos dt {
  color: var(--ardoise);
  font-size: 0.9rem;
}

.infos dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
}

@media (min-width: 42rem) {
  .accueil .infos {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
}

.rayons {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -1rem;
  padding: 0.6rem 1rem;
  background: var(--pierre);
  border-bottom: 1.5px solid var(--joint);
  overflow-x: auto;
  scrollbar-width: none;
}

.rayons ul {
  display: flex;
  gap: 0.5rem;
  width: max-content;
}

.rayons a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border: 1.5px solid var(--graphite);
  border-radius: 99px;
  background: var(--blanc);
  color: var(--graphite);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.rayon {
  padding-top: 2rem;
  scroll-margin-top: 3.5rem;
}

.rayon h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem 1rem;
}

@media (max-width: 30rem) {
  .cartes {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.75rem;
  }
}

.carte a {
  display: grid;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.carte-photo {
  display: block;
  margin-bottom: 0.45rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--blanc);
}

.carte-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carte-sans-photo {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--blanc) 0 14px, var(--pierre) 14px 28px);
}

.carte-nom {
  font-weight: 600;
  line-height: 1.25;
}

.carte a:hover .carte-nom {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.carte-marque {
  color: var(--ardoise);
  font-size: 0.92rem;
}

.carte-prix {
  font-family: var(--titre);
  font-weight: 650;
}

.vitrine-vide {
  padding: 2rem 0;
  max-width: 50ch;
}

.pied-public {
  padding: 1.5rem 1rem 2rem;
  border-top: 1.5px solid var(--joint);
  color: var(--ardoise);
  font-size: 0.9rem;
  text-align: center;
}

/* Fiche produit publique */

.fiche-publique {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-top: 0.5rem;
}

@media (min-width: 52rem) {
  .fiche-publique {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.galerie {
  display: grid;
  gap: 0.6rem;
}

.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon);
  background: var(--blanc);
  object-fit: cover;
}

@media (max-width: 51.99rem) {
  .galerie-defile {
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    margin: 0 -1rem;
    padding: 0 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .galerie-defile img {
    scroll-snap-align: center;
  }
}

.fiche-texte {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.fiche-rayon a {
  color: var(--ardoise);
  font-weight: 600;
}

.fiche-marque {
  margin-top: -0.6rem;
  color: var(--ardoise);
  font-size: 1.1rem;
}

.fiche-description {
  max-width: 55ch;
}

.coloris {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.coloris li {
  padding: 0.2rem 0.75rem;
  border: 1.5px solid var(--joint);
  border-radius: 99px;
  background: var(--blanc);
  font-weight: 500;
}

.fiche-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 30rem) {
  .fiche-actions .bouton {
    width: 100%;
  }
}

.introuvable {
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-content: center;
  padding-top: 4rem;
}

/* ========================================================================
   Page d'accueil d'Exposéo (/)
   ===================================================================== */

.accueil-site {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.accueil-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.accueil-tete .marque img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9px;
}

.accueil-tete .marque-nom {
  font-size: 1.35rem;
}

.accueil-nav {
  display: none;
}

@media (min-width: 52rem) {
  .accueil-nav {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
    margin-right: 1rem;
  }

  .accueil-nav a {
    color: var(--graphite);
    font-weight: 600;
    text-decoration: none;
  }

  .accueil-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3em;
  }
}

/* Haut de page */

.heros {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 3rem;
}

@media (min-width: 54rem) {
  .heros {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
    padding: 3rem 0 4.5rem;
  }
}

.heros h1 {
  font-size: clamp(2.2rem, 6.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.heros-texte {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.heros-texte p {
  max-width: 46ch;
  font-size: 1.15rem;
}

.heros-image img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.heros-image .etiquette {
  width: 11.5rem;
  margin: -5rem 0 0 auto;
  padding: 1.6rem 0.9rem 0.9rem;
  transform: rotate(-3deg) translateX(-0.75rem);
}

.heros-image .etiquette svg {
  max-width: 7.5rem;
  margin: 0.3rem auto;
}

.heros-image .etiquette-nom {
  font-size: 0.95rem;
}

/* Sections */

.bande {
  padding: 3rem 0;
  border-top: 1.5px solid var(--graphite);
  scroll-margin-top: 1rem;
}

@media (min-width: 54rem) {
  .bande {
    padding: 4.5rem 0;
  }
}

.bande h2 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.bande h3 {
  font-size: 1.25rem;
}

.bande > h2 {
  margin-bottom: 2rem;
}

/* Le constat */

.constats {
  display: grid;
  gap: 1.75rem;
}

.constats li {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

@media (min-width: 46rem) {
  .constats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Le parcours en cinq pas : une vraie suite d'étapes, donc numérotée */

.pas {
  display: grid;
  gap: 3rem;
  counter-reset: pas;
}

.pas > li {
  display: grid;
  gap: 1.25rem;
  counter-increment: pas;
}

.pas-texte {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  max-width: 34rem;
}

.pas-texte::before {
  content: counter(pas);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.4rem;
  border: 1.5px solid var(--graphite);
  border-radius: 50%;
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 650;
}

.pas-image {
  margin: 0;
}

.pas-image > img {
  width: 100%;
  max-width: 30rem;
  border-radius: 14px;
}

.pas-image .etiquette {
  margin-inline: 0;
}

@media (min-width: 50rem) {
  .pas {
    gap: 4rem;
  }

  .pas > li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
  }

  .pas-image {
    justify-self: center;
  }

  .pas-image .etiquette {
    margin-inline: auto;
  }
}

/* Cadre de téléphone autour des vraies captures de l'app */

.telephone {
  width: min(100%, 15.5rem);
  border: 0.5rem solid var(--graphite);
  border-radius: 2.1rem;
  overflow: hidden;
  background: var(--pierre);
}

.telephone img {
  width: 100%;
}

/* Sections à deux colonnes : texte et image */

.duo {
  display: grid;
  gap: 2rem;
}

.duo-texte {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.duo-texte h2 {
  margin-bottom: 0.5rem;
}

.duo-texte p {
  max-width: 48ch;
}

.duo-image > img {
  width: 100%;
  border-radius: 14px;
}

@media (min-width: 50rem) {
  .duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
  }

  .duo-inverse .duo-texte {
    order: 2;
  }
}

.paire-telephones {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.paire-telephones .telephone {
  width: min(48%, 14rem);
  border-width: 0.4rem;
  border-radius: 1.7rem;
}

.paire-telephones .telephone:last-child {
  margin-top: 2.5rem;
}

.paire-photos {
  display: grid;
  gap: 1rem;
}

.paire-photos img:last-child {
  width: 78%;
  margin-left: auto;
}

/* Les métiers */

.metiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}

@media (min-width: 50rem) {
  .metiers {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metiers li {
  display: grid;
  gap: 0.5rem;
  font-family: var(--titre);
  font-weight: 650;
}

.metiers img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon);
  object-fit: cover;
}

.metiers-suite {
  max-width: 55ch;
  margin-top: 1.75rem;
}

/* Le tarif */

.tarif {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.tarif.bande > h2 {
  margin-bottom: 0.5rem;
}

.tarif .etiquette-prix {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
}

.tarif ul {
  display: grid;
  gap: 0.4rem;
  list-style: disc;
  padding-left: 1.2rem;
}

/* Les questions */

.questions {
  max-width: 46rem;
  border-top: 1.5px solid var(--joint);
}

.questions details {
  border-bottom: 1.5px solid var(--joint);
}

.questions summary {
  padding: 1.1rem 0;
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 650;
  cursor: pointer;
}

.questions details p {
  max-width: 60ch;
  padding: 0 0 1.25rem 1.15rem;
}

/* Dernier appel */

.appel {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  margin-top: 1rem;
  padding: 2.25rem 1.5rem;
  border-radius: 14px;
  background: var(--blanc);
}

.appel h2 {
  max-width: 20ch;
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.appel p {
  max-width: 46ch;
}

@media (min-width: 54rem) {
  .appel {
    padding: 3.5rem;
  }
}

.pied-site {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1.5px solid var(--joint);
  color: var(--ardoise);
  font-size: 0.9rem;
}
