/* Espace réparateurs (pro.html) — écrit pour 390 px d'abord, puis tablette.
 *
 * Palette : celle de commerce.css (encre, gris, papier, lavis, trait), plus TROIS
 * jetons propres à l'espace pro, déclarés ici et nulle part ailleurs :
 *  - le violet choisi par Adhem (boutons, onglets, états) :
 *    #0b1f33 sur #FFFFFF ≈ 7,1:1 ; sur #F4F7FB ≈ 6,6:1 — AA (et AAA) pour le texte ;
 *  - depuis le 18/10, la couleur de rubrique « Pièces » du STOCK INTERNE de la
 *    gestion (stock-catalogue.css, `.sc-famille-pieces`), demandée par Adhem pour
 *    que la vitrine V2 ressemble au stock : #2563eb sur #eef4ff (≈ 4,8:1) et sur
 *    #FFFFFF (≈ 5,2:1) — AA pour le texte.
 * Aucune autre couleur n'est inventée : les états se lisent en MOTS, pas en feux
 * tricolores.
 */
.pro-page {
    --pro-accent: #0b1f33;
    --pro-rubrique: #2563eb;
    --pro-rubrique-fond: #eef4ff;
}

.pro-page .commerce-hero > .container,
.pro-page .commerce-content > .container { max-width: 1120px; }

.pro-page .pro-hero-marque {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pro-accent) 9%, #fff);
    color: var(--pro-accent);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* Boutons : la même forme que le site, la couleur de l'espace pro. */
.pro-page .btn-primary {
    background: var(--pro-accent);
    color: #fff;
    box-shadow: none;
}
.pro-page .btn-primary:hover:not(:disabled) { filter: brightness(.9); transform: none; box-shadow: none; }
.pro-page .btn-outline {
    background: #fff;
    border: 2px solid var(--pro-accent);
    color: var(--pro-accent);
}
.pro-page .btn-outline:hover:not(:disabled) { background: color-mix(in srgb, var(--pro-accent) 8%, #fff); color: var(--pro-accent); }
.pro-page .btn:disabled { opacity: .5; cursor: not-allowed; }
.pro-page .btn:focus-visible,
.pro-page .pro-onglet:focus-visible,
.pro-page .pro-quantite__bouton:focus-visible,
.pro-page .pro-ligne__retirer:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--pro-accent) 45%, transparent);
    outline-offset: 2px;
}
.pro-page .pro-bouton {
    min-height: 44px;
    padding: 10px 18px;
    font-size: .95rem;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.pro-page .pro-app,
.pro-page .pro-connexion { min-width: 0; }
.pro-page .pro-connexion { margin: 0 0 20px; }
.pro-page .pro-zone-etat { margin: 0 0 20px; }
.pro-page .pro-chargement { color: var(--commerce-muted); }

/* ── Messages d'état : sobres, jamais alarmants ── */
.pro-page .pro-message {
    padding: 20px;
    border: 1px solid var(--commerce-line);
    border-radius: 14px;
    background: var(--commerce-paper);
}
.pro-page .pro-message--attente { border-left: 4px solid var(--pro-accent); }
/* Amené à l'écran après « Envoyer ma demande » (L9) : la barre de navigation
   collante ne recouvre pas son titre. */
.pro-page .pro-message { scroll-margin-top: 96px; }
.pro-page .pro-message__titre { margin: 0 0 8px; color: var(--commerce-ink); font-size: 1.15rem; line-height: 1.3; }
.pro-page .pro-message__texte { margin: 0 0 12px; color: var(--commerce-muted); line-height: 1.55; }
.pro-page .pro-message__texte:last-child { margin-bottom: 0; }
.pro-page .pro-contact { margin: 0 0 12px; color: var(--commerce-ink); line-height: 1.5; }
.pro-page .pro-contact:last-child { margin-bottom: 0; }
.pro-page .pro-contact__tel {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--pro-accent);
    font-weight: 600;
}

/* ── Accueil public : ce qu'est l'espace, SANS prix ni stock (lot L4a) ── */
.pro-page .pro-message__points { margin: 0 0 12px; padding-left: 20px; color: var(--commerce-ink); line-height: 1.55; }
.pro-page .pro-message__point { margin: 0 0 4px; }
.pro-page .pro-message__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ── Demande de compte réparateur (lot L4a, 18/10) ──
   Champs à 16 px (moins zoome la page sur iOS), cibles de 44 px au moins,
   aucune couleur nouvelle : le violet de l'espace et les tons de commerce.css. */
.pro-page .pro-zone-inscription { margin: 0 0 20px; }
.pro-page .pro-inscription {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--commerce-line);
    border-radius: 14px;
    background: var(--commerce-paper);
}
.pro-page .pro-inscription__titre { margin: 0; color: var(--commerce-ink); font-size: 1.15rem; line-height: 1.3; }
.pro-page .pro-profils { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pro-page .pro-profils__legende { margin: 0 0 6px; padding: 0; color: var(--commerce-ink); font-size: .9rem; font-weight: 600; }
.pro-page .pro-profil {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: var(--commerce-paper);
    cursor: pointer;
}
.pro-page .pro-profil:has(.pro-profil__choix:checked) {
    border-color: var(--pro-accent);
    background: color-mix(in srgb, var(--pro-accent) 6%, #fff);
}
.pro-page .pro-profil__choix,
.pro-page .pro-accord__case { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--pro-accent); }
.pro-page .pro-profil__textes { display: grid; gap: 2px; min-width: 0; }
.pro-page .pro-profil__libelle { color: var(--commerce-ink); font-weight: 600; }
.pro-page .pro-profil__aide { color: var(--commerce-muted); font-size: .84rem; }
.pro-page .pro-champ { display: grid; gap: 6px; min-width: 0; }
.pro-page .pro-champ__label { color: var(--commerce-ink); font-size: .9rem; font-weight: 600; }
.pro-page .pro-champ__saisie {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: var(--commerce-paper);
    color: var(--commerce-ink);
    font: inherit;
    font-size: 16px;
}
.pro-page textarea.pro-champ__saisie { min-height: 104px; resize: vertical; }
.pro-page .pro-champ__saisie:focus { border-color: var(--pro-accent); outline: 3px solid color-mix(in srgb, var(--pro-accent) 25%, transparent); }
.pro-page .pro-champ__saisie[aria-invalid="true"] { border: 2px solid var(--pro-accent); }
.pro-page .pro-champ__aide { margin: 0; color: var(--commerce-muted); font-size: .82rem; line-height: 1.45; }
.pro-page .pro-inscription__entreprise { display: grid; gap: 14px; min-width: 0; }
.pro-page .pro-inscription__entreprise[hidden] { display: none; }
.pro-page .pro-accord {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 0;
    color: var(--commerce-ink);
    line-height: 1.45;
    cursor: pointer;
}
/* Le champ piège : hors de l'écran, jamais `display: none` (certains robots l'ignorent alors). */
.pro-page .pro-inscription__piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pro-page .pro-inscription__erreur {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--commerce-line);
    border-left: 4px solid var(--pro-accent);
    border-radius: 10px;
    background: var(--commerce-wash);
    color: var(--commerce-ink);
    font-size: .9rem;
    line-height: 1.5;
}
.pro-page .pro-inscription__envoyer { width: 100%; }
.pro-page .pro-inscription__mention { margin: 0; color: var(--commerce-muted); font-size: .84rem; line-height: 1.5; }

.pro-page .pro-bandeau {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--commerce-line);
    border-left: 4px solid var(--pro-accent);
    border-radius: 12px;
    background: var(--commerce-wash);
}
.pro-page .pro-zone-etat .pro-bandeau { margin: 16px 0 0; }
.pro-page .pro-bandeau__titre { margin: 0 0 4px; font-weight: 700; color: var(--commerce-ink); }
.pro-page .pro-bandeau__texte { margin: 0 0 4px; color: var(--commerce-muted); line-height: 1.5; }

/* ── Onglets : trois sections, un seul pouce ── */
.pro-page .pro-onglets {
    display: flex;
    gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    background: var(--commerce-wash);
    overflow-x: auto;
}
.pro-page .pro-onglet {
    /* Les trois onglets partagent la largeur : à 390 px, « min-width: max-content »
       poussait « Mes commandes » hors de la barre, coupé au milieu du mot (audit
       visuel du 2026-09-14). Un libellé trop long passe sur deux lignes. */
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    line-height: 1.2;
    text-align: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--commerce-muted);
    font: inherit;
    /* .8rem à 390 px : à .9rem, « Ma commande (1) » montait sur trois lignes et
       chaque onglet mesurait 89 px de haut. */
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}
@media (min-width: 480px) {
    .pro-page .pro-onglet { padding: 8px 12px; font-size: .9rem; }
}
.pro-page .pro-onglet.is-actif {
    background: var(--commerce-paper);
    color: var(--pro-accent);
    box-shadow: 0 1px 2px rgba(10, 22, 40, .08);
}

.pro-page .pro-panneau { display: none; min-width: 0; }
.pro-page .pro-panneau.is-actif { display: block; }
.pro-page .pro-panneau__titre { margin: 0 0 12px; color: var(--commerce-ink); font-size: 1.2rem; }

/* ── Catalogue ── */
.pro-page .pro-recherche__label { display: block; margin: 0 0 6px; color: var(--commerce-ink); font-size: .9rem; font-weight: 600; }
.pro-page .pro-recherche {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: var(--commerce-paper);
    color: var(--commerce-ink);
    font: inherit;
    font-size: 16px;
}
.pro-page .pro-recherche:focus { border-color: var(--pro-accent); outline: 3px solid color-mix(in srgb, var(--pro-accent) 25%, transparent); }
.pro-page .pro-catalogue__info,
.pro-page .pro-catalogue__message {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-left: 4px solid var(--pro-accent);
    border-radius: 8px;
    background: var(--commerce-wash);
    color: var(--commerce-ink);
    font-size: .9rem;
    line-height: 1.5;
}
.pro-page .pro-catalogue__compte { margin: 12px 0; color: var(--commerce-muted); font-size: .88rem; }

.pro-page .pro-articles {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pro-page .pro-article {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    background: var(--commerce-paper);
}
.pro-page .pro-article__nom { margin: 0; color: var(--commerce-ink); font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.pro-page .pro-article__details { margin: 0; color: var(--commerce-muted); font-size: .84rem; overflow-wrap: anywhere; }
.pro-page .pro-article__prix { margin: 4px 0 0; color: var(--commerce-ink); font-size: 1.1rem; font-weight: 700; }
.pro-page .pro-article__prix--a-confirmer { color: var(--commerce-muted); font-size: .95rem; font-weight: 600; }
.pro-page .pro-article__dispo { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .86rem; font-weight: 600; }
.pro-page .pro-article__dispo::before { content: ''; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pro-page .pro-dispo--oui { color: var(--commerce-ink); }
.pro-page .pro-dispo--oui::before { background: var(--pro-accent); }
.pro-page .pro-dispo--peu { color: var(--pro-accent); }
.pro-page .pro-dispo--non,
.pro-page .pro-dispo--inconnue { color: var(--commerce-muted); }
.pro-page .pro-article__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.pro-page .pro-article__au-panier { margin: 0; color: var(--pro-accent); font-size: .84rem; font-weight: 600; }

/* ── Catalogue V2 (contrat §5.2, 18/10) : la vitrine rangée comme le stock ──
   Barre des marques, grille de modèles, page d'un modèle en cartes de pièces,
   fenêtre des offres. Mêmes proportions que le stock interne (cartes de 170 px,
   liseré et bandeau de rubrique), cibles de 44 px au moins. */
.pro-page .pro-articles[hidden],
.pro-page .pro-vitrine[hidden] { display: none; }
.pro-page .pro-vitrine { min-width: 0; }
.pro-page .pro-catalogue__fraicheur { margin: 8px 0 0; color: var(--commerce-muted); font-size: .84rem; }

.pro-page .pro-marques { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pro-page .pro-marque {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: var(--commerce-paper);
    color: var(--commerce-muted);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.pro-page .pro-marque.is-actif { border-color: var(--pro-rubrique); background: var(--pro-rubrique-fond); color: var(--pro-rubrique); }
.pro-page .pro-marque__nombre { font-size: .78rem; font-variant-numeric: tabular-nums; }

.pro-page .pro-modeles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pro-page .pro-modele {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 180px;
    padding: 14px 8px 12px;
    border: 1px solid var(--commerce-line);
    border-radius: 14px;
    background: var(--commerce-paper);
    color: var(--commerce-ink);
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.pro-page .pro-modele__visuel { display: flex; align-items: center; justify-content: center; width: 100%; height: 100px; }
.pro-page .pro-modele__photo { max-width: 100%; height: 100px; object-fit: contain; }
.pro-page .pro-modele__initiale {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--commerce-wash);
    color: var(--commerce-muted);
    font-size: 1.6rem;
    font-weight: 800;
}
.pro-page .pro-modele__nom { font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.pro-page .pro-modele__compte { margin-top: auto; color: var(--commerce-muted); font-size: .8rem; }

.pro-page .pro-retour { margin: 4px 0 10px; }
.pro-page .pro-modele-page__titre { margin: 0 0 12px; color: var(--commerce-ink); font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.pro-page .pro-rubrique { min-width: 0; }
.pro-page .pro-rubrique__entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 8px 14px;
    border-left: 5px solid var(--pro-rubrique);
    border-radius: 12px;
    background: var(--pro-rubrique-fond);
}
.pro-page .pro-rubrique__titre { margin: 0; color: var(--pro-rubrique); font-size: 1rem; }
.pro-page .pro-rubrique__compte { color: var(--pro-rubrique); font-size: .82rem; font-weight: 600; }
.pro-page .pro-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pro-page .pro-carte {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 170px;
    padding: 14px 10px;
    border: 1px solid var(--commerce-line);
    border-left: 4px solid var(--pro-rubrique);
    border-radius: 14px;
    background: var(--commerce-paper);
    color: var(--commerce-ink);
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.pro-page .pro-carte__vignette { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 16px; background: var(--pro-rubrique-fond); }
.pro-page .pro-carte__dessin { width: 48px; height: 48px; }
.pro-page .pro-carte__libelle { font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.pro-page .pro-carte__prix { color: var(--pro-rubrique); font-size: .88rem; font-weight: 700; }
.pro-page .pro-carte__prix--a-confirmer { color: var(--commerce-muted); font-weight: 600; }
.pro-page .pro-carte__dispo { font-size: .8rem; }
.pro-page .pro-marque:focus-visible,
.pro-page .pro-modele:focus-visible,
.pro-page .pro-carte:focus-visible,
.pro-page .pro-fenetre__fermer:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--pro-rubrique) 45%, transparent);
    outline-offset: 2px;
}
@media (hover: hover) {
    .pro-page .pro-modele:hover,
    .pro-page .pro-carte:hover { box-shadow: 0 2px 10px rgba(15, 23, 42, .08); }
}

/* La fenêtre des offres d'une carte : un tiroir en bas sur téléphone, centrée dès 700 px. */
.pro-page .pro-fenetre-fond {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, .45);
}
.pro-page .pro-fenetre {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: var(--commerce-paper);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
}
.pro-page .pro-fenetre__tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-bottom: 1px solid var(--commerce-line);
}
.pro-page .pro-fenetre__titre { margin: 0; color: var(--commerce-ink); font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.pro-page .pro-fenetre__fermer {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    background: var(--commerce-paper);
    color: var(--commerce-ink);
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.pro-page .pro-fenetre__message {
    margin: 10px 16px 0;
    padding: 8px 12px;
    border-left: 4px solid var(--pro-rubrique);
    border-radius: 8px;
    background: var(--pro-rubrique-fond);
    color: var(--commerce-ink);
    font-size: .88rem;
}
.pro-page .pro-fenetre__offres { margin: 0; padding: 4px 16px 16px; overflow-y: auto; list-style: none; }
.pro-page .pro-offre { display: grid; gap: 6px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--commerce-line); }
.pro-page .pro-offre:last-child { border-bottom: 0; }
.pro-page .pro-offre__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pro-page .pro-offre__qualite { margin: 0; color: var(--commerce-ink); font-weight: 700; }
.pro-page .pro-offre__prix { margin: 0; color: var(--commerce-ink); font-weight: 700; white-space: nowrap; }
.pro-page .pro-offre__prix--a-confirmer { color: var(--commerce-muted); font-weight: 600; }
.pro-page .pro-offre__nom { margin: 0; color: var(--commerce-muted); font-size: .84rem; overflow-wrap: anywhere; }
.pro-page .pro-offre__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pro-page .pro-offre__raison { margin: 0; color: var(--commerce-muted); font-size: .84rem; }

@media (min-width: 480px) {
    .pro-page .pro-cartes { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (min-width: 560px) {
    .pro-page .pro-modeles { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
}
@media (min-width: 700px) {
    .pro-page .pro-fenetre-fond { align-items: center; padding: 16px; }
    .pro-page .pro-fenetre { border-radius: 18px; }
}

/* ── Ma commande ── */
.pro-page .pro-panier__vide { color: var(--commerce-muted); }
.pro-page .pro-panier__lignes { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.pro-page .pro-ligne {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    background: var(--commerce-paper);
}
.pro-page .pro-ligne__nom { margin: 0; color: var(--commerce-ink); font-weight: 600; overflow-wrap: anywhere; }
.pro-page .pro-ligne__info { margin: 0; color: var(--commerce-muted); font-size: .86rem; }
.pro-page .pro-ligne__info--bloque { color: var(--commerce-ink); font-weight: 600; }
.pro-page .pro-quantite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pro-page .pro-quantite__bouton {
    width: 44px;
    height: 44px;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
    background: var(--commerce-paper);
    color: var(--commerce-ink);
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.pro-page .pro-quantite__bouton:disabled { opacity: .4; cursor: not-allowed; }
.pro-page .pro-quantite__valeur { min-width: 2ch; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.pro-page .pro-ligne__retirer {
    min-height: 44px;
    margin-left: auto;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--commerce-muted);
    font: inherit;
    font-size: .88rem;
    text-decoration: underline;
    cursor: pointer;
}
.pro-page .pro-panier__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 12px 0 4px;
    padding-top: 12px;
    border-top: 1px solid var(--commerce-line);
    color: var(--commerce-ink);
    font-weight: 700;
}
.pro-page .pro-panier__mention,
.pro-page .pro-panier__blocage,
.pro-page .pro-commandes__plafond { margin: 4px 0 12px; color: var(--commerce-muted); font-size: .84rem; line-height: 1.5; }
.pro-page .pro-panier__blocage { margin-top: 10px; }
.pro-page .pro-panier__erreur,
.pro-page .pro-panier__incertain,
.pro-page .pro-commandes__message {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--commerce-line);
    border-left: 4px solid var(--pro-accent);
    border-radius: 10px;
    background: var(--commerce-wash);
    color: var(--commerce-ink);
    font-size: .9rem;
    line-height: 1.5;
}
.pro-page .pro-transmettre { width: 100%; }
.pro-page .pro-recu {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--pro-accent) 40%, var(--commerce-line));
    border-radius: 12px;
    background: color-mix(in srgb, var(--pro-accent) 5%, #fff);
}
.pro-page .pro-recu__titre { margin: 0 0 6px; color: var(--pro-accent); font-weight: 700; }
.pro-page .pro-recu__reference,
.pro-page .pro-recu__statut { margin: 0 0 6px; color: var(--commerce-ink); overflow-wrap: anywhere; }

/* ── Mes commandes ── */
.pro-page .pro-commandes__vide { color: var(--commerce-muted); }
.pro-page .pro-commandes__liste { display: grid; gap: 12px; }
.pro-page .pro-commande {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--commerce-line);
    border-radius: 12px;
    background: var(--commerce-paper);
}
.pro-page .pro-commande__entete { display: grid; gap: 4px; }
.pro-page .pro-commande__reference { margin: 0; color: var(--commerce-ink); font-size: 1rem; overflow-wrap: anywhere; }
.pro-page .pro-commande__statut { margin: 0; color: var(--commerce-ink); font-weight: 600; line-height: 1.45; }
.pro-page .pro-commande[data-statut="transmise"] .pro-commande__statut,
.pro-page .pro-commande[data-statut="reservee"] .pro-commande__statut { color: var(--pro-accent); }
.pro-page .pro-commande__date,
.pro-page .pro-commande__annulation,
.pro-page .pro-commande__motif { margin: 4px 0 0; color: var(--commerce-muted); font-size: .86rem; }
.pro-page .pro-commande__lignes { margin: 10px 0; padding-left: 18px; color: var(--commerce-ink); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.pro-page .pro-commande__total { margin: 0 0 8px; color: var(--commerce-ink); font-weight: 700; }
.pro-page .pro-commande__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pro-page .pro-commande__question { flex-basis: 100%; margin: 0; color: var(--commerce-ink); font-weight: 600; }

.pro-page .pro-mention { margin: 28px 0 0; color: var(--commerce-muted); font-size: .84rem; line-height: 1.5; }

/* ── Tablette en portrait : deux colonnes de pièces ── */
@media (min-width: 700px) {
    .pro-page .pro-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* La demande de compte : trois profils côte à côte, un formulaire à largeur de lecture. */
    .pro-page .pro-profils { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pro-page .pro-inscription { max-width: 720px; }
    .pro-page .pro-inscription__envoyer { width: auto; justify-self: start; }
}

/* ── iPad paysage (1167×840) et plus : la commande reste visible à côté ── */
@media (min-width: 1000px) {
    .pro-page .pro-grille {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 24px;
        align-items: start;
    }
    .pro-page .pro-panneau--catalogue,
    .pro-page .pro-panneau--commandes { grid-column: 1; grid-row: 1; }
    .pro-page .pro-panneau--commande {
        display: block;
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 96px;
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        padding: 16px;
        border: 1px solid var(--commerce-line);
        border-radius: 14px;
        background: var(--commerce-paper);
    }
    .pro-page .pro-onglet--commande { display: none; }
    /* L'onglet « Ma commande » choisi sur un écran étroit n'a plus de colonne
       à lui : le catalogue reprend la place au lieu d'une colonne vide. */
    .pro-page .pro-grille:not(:has(.pro-panneau--catalogue.is-actif, .pro-panneau--commandes.is-actif)) .pro-panneau--catalogue { display: block; }
}

/* Parcours de remise partagé avec l'app. */
.pro-page .pro-remise { margin-top:20px; padding:16px; border:1px solid var(--commerce-line); border-radius:16px; min-width:0; }
.pro-page .pro-remise__champ { display:flex; flex-direction:column; gap:8px; margin-block:12px; font-weight:600; }
.pro-page .pro-remise input:not([type=radio]), .pro-page .pro-remise select { min-height:44px; max-width:100%; width:100%; box-sizing:border-box; padding:10px; border:1px solid var(--commerce-line); border-radius:8px; font:inherit; }
.pro-page .pro-remise input[type=checkbox] { width:44px; height:44px; }
.pro-page .pro-remise__mention { font-size:.9rem; line-height:1.5; }
.pro-page .pro-remise__total { font-weight:700; }
.pro-page .pro-commande__accepter { min-height:44px; white-space:normal; }
.pro-page .pro-remise [hidden] { display:none!important; }
/* Quantité souhaitée indépendante du stock réel, confirmée par la boutique. */
.pro-quantite__saisie{width:6rem;min-width:4rem;min-height:44px;text-align:center;border:1px solid var(--border-color);border-radius:.5rem;background:var(--bg-card,#fff);color:inherit;font:inherit}

/* Mes demandes Pro : filtres compacts, détails métier existants dépliables. */
.pro-page .pro-demandes-intro { margin: 4px 0 20px; color: var(--commerce-muted); line-height: 1.5; }
.pro-page .pro-demandes-filtres { display: flex; gap: 4px; max-width: 100%; padding: 4px; margin: 0 0 20px; border: 1px solid var(--commerce-line); border-radius: 14px; background: var(--commerce-wash); }
.pro-page .pro-demandes-filtre { flex: 1; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--commerce-muted); font: inherit; font-weight: 650; cursor: pointer; }
.pro-page .pro-demandes-filtre[aria-pressed="true"] { background: var(--commerce-paper); color: var(--commerce-ink); box-shadow: 0 1px 4px rgba(10, 22, 40, .08); }
.pro-page .pro-demandes-filtre:focus-visible, .pro-page .pro-demande-suivi:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pro-page .pro-demandes-groupe { min-width: 0; }
.pro-page .pro-demandes-groupe[hidden], .pro-page .pro-demande .pro-commande[hidden] { display: none !important; }
.pro-page .pro-demandes-groupe .pro-commandes-actualiser, .pro-page .pro-reprises-actualiser { justify-self: end; min-height: 44px; margin-bottom: 4px; }
.pro-page .pro-reprises-actualiser { display: block; margin: 0 0 12px auto; }
.pro-page .pro-demande { padding: 16px; border: 1px solid var(--commerce-line); border-radius: 16px; background: var(--commerce-paper); min-width: 0; }
.pro-page .pro-demande-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.pro-page .pro-demande-texte { flex: 1 1 200px; min-width: 0; }
.pro-page .pro-demande-titre { margin: 0 0 6px; color: var(--commerce-ink); font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.pro-page .pro-demande-date, .pro-page .pro-demandes-groupe .rmd-date { margin: 0 0 4px; color: var(--commerce-muted); font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }
.pro-page .pro-demande-statut { margin: 0; color: var(--commerce-ink); font-size: .86rem; line-height: 1.4; }
.pro-page .pro-demande-suivi { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; }
.pro-page .pro-demande .pro-commande { margin-top: 16px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--commerce-line); border-radius: 0; }
.pro-page .pro-demandes-groupe .reprise-mes-demandes { margin-top: 0; padding: 0; border: 0; background: transparent; }
.pro-page .pro-demandes-groupe .rmd-titre { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pro-page .pro-demandes-groupe .rmd-liste { gap: 12px; }
.pro-page .pro-demandes-groupe .rmd-dossier { gap: 12px 20px; padding: 16px; border: 1px solid var(--commerce-line); border-radius: 16px; background: var(--commerce-paper); }
.pro-page .pro-demandes-groupe .rmd-modele { font-size: 1rem; margin-bottom: 4px; }
.pro-page .pro-demandes-groupe .rmd-vide { color: var(--commerce-muted); line-height: 1.5; }
.pro-page .pro-demandes-groupe .reprise-suivi { margin-top: 16px; box-shadow: none; border: 1px solid var(--commerce-line); }
.pro-page .pro-demandes-groupe .rmd-dossier > .reprise-suivi { flex: 1 1 100%; width: 100%; min-width: 0; margin: 4px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--commerce-line); border-radius: 0; background: transparent; }
@media (min-width: 381px) {
    .pro-page .pro-demandes-filtres { display: inline-flex; }
    .pro-page .pro-demandes-filtre { flex: none; padding-inline: 20px; }
}
