/* =====================================================================
   Poussez la porte · Créez votre visuel
   Styles propres à l'outil, posés sur le framework CCIGNATURE
   (/dist/ccignature/…/ccignature.css, chargé par /connexion/nav/nav-style.php).

   - Couleurs : uniquement des variables --cci-* → thèmes clair / sombre /
     contrasté gérés par le panneau « Affichage » de la navigation.
   - Tailles en rem → suivent le réglage « Taille du texte ».
   - Police de l'interface : celle du framework (et OpenDyslexic si activé).
     Inter / Inter Tight ne servent qu'au titre de campagne et au rendu
     des visuels (canvas).
   ===================================================================== */

/* Déclarées sur body pour couvrir aussi la visionneuse, ajoutée hors de .pp-app */
body {
  --pp-surface: var(--cci-secondary-bg);
  /* panneaux */
  --pp-surface-2: var(--cci-tertiary-bg);
  /* items de la liste des logos */
  --pp-texte-doux: var(--cci-secondary-color);
  --pp-trait: var(--cci-border-color);
  --pp-accent: var(--cci-primary);
  --pp-scene: var(--cci-bleu-f2);
  /* scène d'aperçu */
  --pp-jaune: var(--cci-jaune);
  --pp-rayon: var(--cci-border-radius-lg);
}

/* Focus : les champs gardent celui du framework ; même anneau sur les contrôles propres à l'outil */
.pp-app :is(.modele, .format, .vignette, .lien):focus-visible {
  outline: 0;
  box-shadow: 0 0 0 var(--cci-focus-ring-width) var(--cci-focus-ring-color)
}

.pp-app .vignette:focus-visible {
  box-shadow: none
}

.pp-app .vignette:focus-visible canvas {
  box-shadow: 0 0 0 var(--cci-focus-ring-width) var(--cci-focus-ring-color)
}

#apercu:focus-visible {
  outline: 3px solid var(--pp-jaune);
  outline-offset: 3px
}

/* ---------- Bandeau de campagne ---------- */
.pp-entete {
  padding: 1.75rem clamp(18px, 4vw, 48px) 1.875rem;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  align-items: center
}

.marque {
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
  font-size: clamp(30px, 4.6vw, 54px);
  margin: 0;
  color: #fff
}

.marque .boite {
  display: inline-block;
  background: #fff;
  color: var(--cci-bleu);
  padding: .04em .2em .1em;
  transform: rotate(-1.6deg);
  margin-top: .12em
}

.pp-entete p {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, .88)
}

.exemples {
  display: flex;
  align-items: center;
  padding: 8px 10px 8px 30px;
  margin: 0
}

.exemples figure {
  margin: 0 0 0 -26px;
  flex: none
}

.exemples img {
  display: block;
  width: clamp(96px, 9vw, 128px);
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(10, 12, 70, .45);
  border: 3px solid #fff
}

.exemples figure:nth-child(1) {
  transform: rotate(-5deg) translateY(6px)
}

.exemples figure:nth-child(2) {
  transform: rotate(2deg) translateY(-6px)
}

.exemples figure:nth-child(3) {
  transform: rotate(-1deg) translateY(4px);
  z-index: 1
}

.exemples figure:nth-child(4) {
  transform: rotate(3deg) translateY(-4px)
}

.exemples figure:nth-child(5) {
  transform: rotate(-3deg) translateY(6px)
}

@media (max-width:1100px) {
  .pp-entete {
    grid-template-columns: minmax(0, 1fr)
  }

  .exemples {
    overflow-x: auto;
    padding: 6px 4px 14px;
    gap: 12px;
    scrollbar-width: thin
  }

  .exemples figure {
    margin: 0;
    transform: none !important
  }

  .exemples img {
    width: 110px
  }
}

/* ---------- Mise en page ---------- */
.pp-main {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem clamp(14px, 3vw, 40px) 3rem;
  max-width: 1500px;
  margin: 0 auto
}

.travail {
  min-width: 0
}

/* Zone de choix du modèle, en amont, sur toute la largeur */
.choix-modele {
  grid-column: 1 / -1;
  background-color: var(--pp-surface);
}

.choix-modele .etape {
  margin-bottom: .875rem
}

.choix-modele .modeles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem
}

.choix-modele .modele {
  padding: 1rem 1.125rem;
  align-content: start
}

.choix-modele .modele-titre {
  font-size: 1.0625rem
}

/* Panneau des étapes : conteneur transparent, chaque étape est une .card du framework */
.panneau {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0
}

.bloc {
  background-color: var(--pp-surface)
}

/* Étapes déployables : en-tête .accordion-button du framework (picto plus/moins CCI),
   contenu en .collapse ; data-bs-parent="#ppEtapes" → un seul bloc ouvert à la fois */
.etape {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25
}

.etape .accordion-button {
  gap: .75rem;
  margin: -.5rem;
  width: calc(100% + 1rem);
  padding: .5rem 2.75rem .5rem .5rem;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  border-radius: var(--cci-border-radius)
}

.etape .accordion-button.collapsed {
  background-color: transparent
}

.etape b {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--pp-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .875rem;
  line-height: 1
}

.etape-contenu {
  padding-top: 1rem
}

.aide {
  margin: .375rem 0 0
}

/* + .form-text */
.sous-titre {
  margin: .875rem 0 .25rem;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pp-texte-doux)
}

.champ {
  margin-top: .625rem
}

#champLieuPerso[hidden],
#mentionsLieu[hidden],
#mentionsEtiquette[hidden],
#mentionsPosition[hidden],
#persoFPz[hidden] {
  display: none
}

[data-g][hidden] {
  display: none !important
}

/* Cases à cocher : .form-check du framework, seuls les espacements sont ajustés */
.pp-app .form-check {
  margin: .625rem 0 0
}

.pp-app .option-partenaire {
  margin: 0;
  font-weight: 700
}

.aide-imprimeur {
  margin: .375rem 0 0
}

/* ---------- Zones de dépôt ---------- */
.depot {
  display: grid;
  place-items: center;
  text-align: center;
  gap: .375rem;
  border: 2px dashed var(--cci-border-color);
  border-radius: var(--cci-border-radius);
  corner-shape: var(--cci-corner-shape);
  padding: 1.375rem .875rem;
  cursor: pointer;
  background: var(--cci-body-bg);
  color: var(--cci-body-color);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.depot:hover,
.depot.survol {
  border-color: var(--pp-accent)
}

.depot:focus-within {
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 var(--cci-focus-ring-width) var(--cci-focus-ring-color)
}

.depot strong {
  font-weight: 700
}

.depot span {
  font-size: .875rem;
  color: var(--pp-texte-doux)
}

.depot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0
}

.depot.desactive {
  opacity: .5;
  cursor: not-allowed
}

.depot-logo {
  margin-top: .75rem;
  padding: 1rem .75rem
}

.source {
  display: none;
  margin-top: .75rem
}

.source.visible {
  display: block
}

.source-cadre {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  border-radius: var(--cci-border-radius-lg);
  overflow: hidden;
  background: #000;
  line-height: 0;
  corner-shape: var(--cci-corner-shape);
}

.source-cadre img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 340px
}

.lien {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cci-link-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: .875rem;
  margin-top: .5rem
}

.lien:hover {
  color: var(--cci-link-hover-color)
}

/* ---------- Choix du modèle et du format (boutons à bascule) ---------- */
.modeles {
  display: grid;
  gap: .5rem
}

.modele {
  text-align: left;
  padding: .75rem .875rem;
  border-radius: var(--cci-border-radius-lg);
  border: 1.5px solid var(--pp-trait);
  background: var(--pp-surface);
  color: var(--cci-body-color);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 44px
}

.modele small {
  color: var(--pp-texte-doux);
  font-size: .8125rem
}

.modele-titre {
  font-weight: 700
}

.modele:hover,
.format:hover {
  border-color: var(--pp-accent)
}

.modele[aria-pressed="true"],
.format[aria-pressed="true"] {
  border-color: var(--pp-accent);
  background: var(--pp-accent);
  color: #fff
}

.modele[aria-pressed="true"] small,
.format[aria-pressed="true"] small {
  color: rgba(255, 255, 255, .85)
}

/* Sections du format : Web / Impression / Personnalisé (/ Stickers)
   dépliables (.accordion-button + .collapse du framework), une seule ouverte à la fois */
.section-format+.section-format {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--pp-trait)
}

.section-titre {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3
}

.section-titre .accordion-button {
  gap: .5rem;
  margin: 0 -.5rem;
  width: calc(100% + 1rem);
  padding: .5rem 2.75rem .5rem .5rem;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  border-radius: var(--cci-border-radius)
}

.section-titre .accordion-button.collapsed {
  background-color: transparent
}

/* résumé à droite de l'en-tête : format sélectionné, sinon nombre de formats */
.section-resume {
  margin-left: auto;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--pp-texte-doux);
  text-align: right
}

.section-active .section-resume {
  font-weight: 600;
  color: var(--pp-accent)
}

.section-corps {
  padding-top: .75rem
}

/* Choix du fond perdu, en tête des sections Impression et Personnalisé */
.champ-fp {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin: 0 0 .75rem
}

.champ-fp .form-label {
  margin: 0;
  white-space: nowrap
}

.champ-fp .form-select {
  flex: 1;
  width: auto
}

.groupe {
  margin-top: .875rem
}

.section-corps>.groupe:first-child,
.champ-fp+.groupe {
  margin-top: 0
}

.groupe h4 {
  margin: 0 0 .5rem;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pp-texte-doux)
}

.formats {
  display: grid;
  gap: .375rem
}

.format {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .625rem;
  width: 100%;
  text-align: left;
  padding: .625rem .75rem;
  border-radius: var(--cci-border-radius);
  border: 1px solid var(--pp-trait);
  background: var(--pp-surface);
  color: var(--cci-body-color);
  cursor: pointer
}

.format small {
  color: var(--pp-texte-doux);
  font-size: .8125rem;
  white-space: nowrap
}

.perso-champs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .625rem;
  margin-top: .625rem
}

.perso-champs label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 0
}

.perso-champs .aide,
.perso-champs label:nth-of-type(3) {
  grid-column: 1 / -1;
  margin: 0
}

/* ---------- Contrôle segmenté : .btn-group du framework (bouton actif = .active) ---------- */
.segments {
  display: flex;
  width: 100%
}

.segments .segment {
  flex: 1 1 0;
  white-space: normal;
  font-size: .875rem;
  line-height: 1.2;
  padding-inline: .5rem
}

.pastille-bleu {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  box-shadow: 0 0 0 2px #fff
}

/* ---------- Logos ---------- */
.liste-logos {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem
}

.liste-logos:empty {
  display: none
}

.liste-partenaires {
  margin-top: .5rem
}

.logo-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: .375rem .625rem;
  padding: .5rem;
  border: 1px solid var(--pp-trait);
  border-radius: var(--cci-border-radius-sm);
  background: var(--pp-surface-2);
  corner-shape: var(--cci-corner-shape);
}

.logo-vignette {
  flex: none;
  width: 72px;
  height: 36px;
  border-radius: 6px;
  background: var(--cci-bleu)
}

.partenaire.inactif .logo-vignette {
  opacity: .35
}

.logo-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: .25rem
}

.logo-nom {
  font-size: .8125rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.logo-actions {
  grid-column: 2;
  display: flex;
  gap: .375rem;
  flex-wrap: wrap
}

.logo-btn {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 .5rem;
  line-height: 1
}

.logo-btn:disabled {
  opacity: .35;
  cursor: default
}

.fichier-cache {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  z-index: 1
}

/* ---------- Scène d'aperçu ---------- */
.scene {
  background: var(--pp-scene);
  padding: clamp(14px, 2.5vw, 28px);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* la colonne ne s'élargit jamais au-delà de #scene */
  gap: 1rem;
  min-width: 0
}

.scene > * {
  min-width: 0
}

.scene-tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .75rem;
  flex-wrap: wrap
}

.scene-tete h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff
}

.scene-tete p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: .875rem
}

.scene .aide {
  color: rgba(255, 255, 255, .75)
}

.alerte {
  font-size: .8125rem;
  padding: .375rem .625rem;
  border-radius: var(--cci-border-radius);
  background: rgba(255, 186, 49, .18);
  color: #FFE19A;
  display: none
}

.alerte.visible {
  display: inline-block
}

.apercu-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* le canvas ne pousse pas la zone : il est dimensionné d'après elle */
  place-items: center;
  min-width: 0;
  overflow: hidden;
  min-height: 280px;
  height: clamp(300px, 68vh, 760px)
}

#apercu {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  touch-action: none;
  cursor: grab
}

#apercu.glisse {
  cursor: grabbing
}

.commandes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1.25rem;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  min-width: 0
}

.commandes > * {
  max-width: 100%
}

/* zone « Ajuster la photo » : mention + curseurs regroupés */
.ajuster {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 46rem;
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--cci-border-radius-lg, 12px);
  background: rgba(255, 255, 255, .06);
  corner-shape: var(--cci-corner-shape);
}

.ajuster-tete {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.picto {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
  margin-right: .4rem
}

.picto-main {
  width: 2rem;
  height: 2rem;
  padding: .3rem;
  margin: 0;
  border-radius: 50%;
  background: var(--pp-jaune, #FFCB3A);
  color: #14186B
}

.aide-recadrage {
  margin: 0;
  font-size: .875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .85)
}

.aide-recadrage strong {
  color: #fff
}

/* 2 colonnes si la place le permet, 1 sinon : jamais plus large que l'encadré */
.reglages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .5rem 1.125rem;
  align-items: center;
  min-width: 0
}

.reglages .btn {
  justify-self: start
}

.zoom {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
  min-width: 0
}

.zoom label {
  flex: none;
  min-width: 9.5em
}

.zoom .form-range {
  flex: 1;
  min-width: 4rem;
  width: auto
}

.zoom .form-range:disabled {
  opacity: .4
}

.scene .form-range::-webkit-slider-runnable-track {
  background-color: rgba(255, 255, 255, .25)
}

.scene .form-range::-moz-range-track {
  background-color: rgba(255, 255, 255, .25)
}

.scene .form-range::-webkit-slider-thumb {
  background-color: var(--pp-jaune)
}

.scene .form-range::-moz-range-thumb {
  background-color: var(--pp-jaune)
}

.scene .form-check-input:not(:checked) {
  border-color: rgba(255, 255, 255, .6)
}


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

.actions .btn {
  font-weight: 700;
  padding-inline: 1.375rem
}

.actions .btn:disabled {
  cursor: progress
}

.statut {
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
  min-height: 1.5em
}

.btn-enregistrer {
  margin-left: .375rem
}

.astuce-mobile {
  display: none;
  margin: 0;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .8);
  flex-basis: 100%
}

@media (pointer: coarse) {
  .astuce-mobile {
    display: block
  }
}

/* ---------- Tous les formats ---------- */
.tous {
  margin-top: 1.5rem
}

.tous-tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .375rem
}

.tous-tete h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2
}

.rangee {
  margin-top: 1.125rem
}

.rangee-tete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
  margin-bottom: .625rem
}

.rangee-tete h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3
}

.vignettes {
  display: flex;
  gap: .875rem;
  overflow-x: auto;
  padding-bottom: .375rem;
  align-items: flex-end;
  scroll-snap-type: x proximity
}

.vignette {
  flex: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  width: auto;
  color: var(--cci-body-color);
  scroll-snap-align: start
}

.vignette canvas {
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  outline: 3px solid transparent;
  outline-offset: 3px
}

.vignette[aria-pressed="true"] canvas {
  outline-color: var(--pp-accent)
}

.vignette span {
  display: block;
  font-size: .8125rem;
  margin-top: .5rem;
  font-weight: 600
}

.vignette small {
  display: block;
  font-size: .75rem;
  color: var(--pp-texte-doux)
}

.note {
  font-size: .8125rem;
  color: var(--pp-texte-doux);
  margin-top: 1.125rem;
  display: block;
  width: 100%;
  grid-column: 1 / -1;
}

/* ---------- Visionneuse (aperçu intégré) ---------- */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, .75);
  display: grid;
  place-items: center;
  padding: 1rem
}

.visionneuse-boite {
  background: var(--pp-surface);
  color: var(--cci-body-color);
  border-radius: var(--pp-rayon);
  padding: 1rem;
  max-width: min(560px, 100%);
  max-height: 100%;
  display: grid;
  gap: .75rem;
  justify-items: center;
  overflow: auto
}

.visionneuse-boite p {
  margin: 0;
  text-align: center
}

.visionneuse-boite img {
  max-width: 100%;
  max-height: 62vh;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3)
}

/* ---------- Modèle « Sticker vitrine » ---------- */
body.mode-sticker .bloc-photo,
body.mode-sticker .bloc-mentions,
body.mode-sticker .bloc-bleu,
body.mode-sticker .ajuster {
  display: none
}

/* ---------- Thème contrasté (bichromie bleu nuit / blanc) ---------- */
[data-bs-theme="contrast"] body {
  --pp-texte-doux: var(--cci-body-color)
}

[data-bs-theme="contrast"] .scene .alerte {
  background: #fff;
  color: #000283
}

[data-bs-theme="contrast"] .scene .form-range::-webkit-slider-thumb {
  background-color: #fff;
  border: 2px solid #000283
}

[data-bs-theme="contrast"] .scene .form-range::-moz-range-thumb {
  background-color: #fff;
  border: 2px solid #000283
}

/* ---------- Tablette et mobile : une colonne, l'aperçu juste après la photo ---------- */
@media (max-width:1000px) {
  .pp-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem
  }

  .pp-main>.panneau,
  .pp-main>.travail {
    /* display: contents; */
    grid-column: 1 / -1;
  }

  .choix-modele {
    order: 0;
    padding: 1.125rem
  }

  .bloc-photo {
    order: 1
  }

  .bloc-format {
    order: 3
  }

  .scene {
    order: 4
  }

  .bloc-logos {
    order: 5
  }

  .bloc-mentions {
    order: 6
  }

  .bloc-bleu {
    order: 7
  }

  .tous {
    order: 8;
    margin-top: .5rem
  }

  /* note « Fichiers imprimeur » (enfant direct de .pp-main) : toujours en dernier */
  .pp-main>.note {
    order: 9
  }

  /* une carte repliée ne s'étire pas à la hauteur de sa voisine ouverte */
  .bloc {
    /* align-self: start; */
  }

  .groupe .formats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
  }

  .groupe .format {
    width: auto;
    flex: 0 1 auto;
    border-radius: var(--cci-border-radius-pill);
    padding: .5625rem 1rem
  }

  .depot {
    padding: 1.75rem .875rem
  }
}

@media (min-width:641px) and (max-width:1000px) {
  .pp-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)
  }

  .scene,
  .tous,
  .pp-main>.note {
    grid-column: 1 / -1
  }

  .bloc-photo .source-cadre img {
    max-height: 260px
  }

  .format small {
    display: none
  }

  .format[aria-pressed="true"] small {
    display: inline
  }
}

@media (max-width:640px) {
  .pp-main {
    padding: .875rem .75rem 2.5rem
  }

  .choix-modele .modeles {
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem
  }

  .choix-modele .modele {
    padding: .75rem .875rem
  }

  .groupe .formats {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: .375rem;
    margin: 0 -4px;
    padding-left: 4px
  }

  .groupe .format {
    flex: none;
    scroll-snap-align: start
  }

  .format small {
    display: none
  }

  .format[aria-pressed="true"] small {
    display: inline
  }

  .scene {
    padding: .875rem .75rem
  }

  .scene-tete h2 {
    font-size: 1.2rem
  }

  .apercu-zone {
    height: clamp(280px, 58vh, 560px)
  }

  .commandes {
    flex-direction: column;
    align-items: stretch
  }

  .reglages {
    grid-template-columns: 1fr;
    width: 100%
  }

  .zoom {
    width: 100%
  }

  .zoom .form-range {
    flex: 1;
    width: auto
  }

  .actions .btn {
    width: 100%;
    padding-block: .875rem
  }

  .rangee-tete {
    align-items: flex-start;
    flex-direction: column
  }

  .source-cadre img {
    max-height: 240px
  }

  .astuce-mobile {
    flex-basis: auto;
    width: 100%
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-app * {
    /* transition: none !important; */
  }
}