.expr-category-nav{display:block;background:#fffaf2;border-bottom:1px solid #E8DFD0;width:100%;box-sizing:border-box;font-family:Manrope,system-ui,sans-serif}.expr-category-inner{max-width:1160px;margin:0 auto;padding:10px 24px;display:flex;align-items:center;gap:18px;box-sizing:border-box}.expr-category-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;min-width:0;flex:1;scrollbar-width:thin}.expr-category-nav a{display:block;flex:none;text-decoration:none;font-size:14px;line-height:1.4;font-weight:600;padding:10px 13px;white-space:nowrap;color:#574737;border-radius:7px}.expr-category-nav a:hover{background:#f0e6d7}.expr-category-nav a[aria-current=page]{background:#8F5A0E;color:white}.expr-category-nav a:focus-visible{outline:3px solid #8F5A0E;outline-offset:2px}.expr-category-nav .expr-estimate{border:1px solid #8F5A0E;color:#8F5A0E}@media(max-width:650px){.expr-category-inner{padding:8px 12px;gap:8px;flex-wrap:wrap}.expr-category-tabs{flex-basis:100%}.expr-category-nav .expr-estimate{padding:6px 12px;margin-left:auto}}
/* Category pages: logo, navigation and estimate share one row. */
header.expr-header-row{display:flex;align-items:center;justify-content:flex-start;gap:20px;flex-wrap:nowrap;box-sizing:border-box;width:100%;padding:14px 24px;background:#fffaf2;border-bottom:1px solid #E8DFD0}
header.expr-header-row>a{display:block;flex:0 0 auto;margin:0}
header.expr-header-row>a img{display:block;width:100px;height:auto;max-width:100%}
header.expr-header-row .expr-category-nav{flex:1 1 auto;width:auto;min-width:0;border:0;background:transparent}
header.expr-header-row .expr-category-inner{width:100%;max-width:none;margin:0;padding:0;display:flex;align-items:center;gap:18px;flex-wrap:nowrap}
header.expr-header-row .expr-category-tabs{flex:1 1 auto;min-width:0;display:flex;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
header.expr-header-row .expr-category-tabs a{padding:10px 11px}
header.expr-header-row .expr-estimate{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;white-space:nowrap;box-sizing:border-box;margin:0 0 0 auto;padding:10px 14px;min-height:44px;border:1px solid #8F5A0E;border-radius:7px;background:#fffaf2;color:#8F5A0E;font:600 14px/1.4 Manrope,system-ui,sans-serif;cursor:pointer;text-decoration:none}
header.expr-header-row .expr-estimate:hover{background:#f0e6d7}
header.expr-header-row .expr-estimate:focus-visible{outline:3px solid #8F5A0E;outline-offset:2px}
@media(max-width:700px){header.expr-header-row{gap:10px;padding:12px}header.expr-header-row>a img{width:64px}header.expr-header-row .expr-category-inner{gap:8px}header.expr-header-row .expr-category-tabs a{font-size:13px;padding:11px 9px}header.expr-header-row .expr-estimate{font-size:12px;padding:10px 8px;gap:4px}}
@media print{header.expr-header-row{display:none}}

/* Keep the estimate beside the current page title. */
.expr-title-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:12px 0 24px}
/* Titre toujours sur une seule ligne (Steph, 4 nov.) : la taille s'ajuste à la place disponible (category-nav.js). */
.expr-title-row>h1{flex:1 1 auto;min-width:0;margin:0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.15}
.expr-title-row.expr-title-stacked{flex-wrap:wrap;gap:12px}
.expr-title-row.expr-title-stacked>h1{flex-basis:100%}
.expr-title-row.expr-title-stacked>.expr-title-actions{margin-left:auto}
.expr-title-row.expr-title-expanded>h1{white-space:normal;overflow:visible;overflow-wrap:anywhere}
.expr-title-reveal{flex:0 0 100%;min-width:0;min-height:44px;padding:8px 0;border:0;background:transparent;color:#8F5A0E;font:600 14px/1.4 Manrope,system-ui,sans-serif;text-align:left;text-decoration:underline;cursor:pointer;box-sizing:border-box}
.expr-title-reveal:focus-visible{outline:3px solid #3283ac;outline-offset:3px}
/* Les boutons restent côte à côte : jamais l'estimation renvoyée sous « Je préfère un expert avec moi ». */
.expr-title-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end}
.expr-title-actions>.expr-estimate{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap;box-sizing:border-box;margin:0;padding:10px 14px;min-height:44px;border:1px solid #8F5A0E;border-radius:7px;background:#fffaf2;color:#8F5A0E;font:600 14px/1.4 Manrope,system-ui,sans-serif;cursor:pointer;text-decoration:none}
.expr-title-actions>.expr-estimate:hover{background:#f0e6d7}
.expr-title-actions>.expr-estimate:focus-visible{outline:3px solid #8F5A0E;outline-offset:2px}
/* « Je préfère un expert avec moi » (Steph, 2 nov.) : bouton plein, à gauche de l'estimation. */
.expr-title-actions>.expr-expert{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:10px 14px;box-sizing:border-box;border:1px solid #8F5A0E;border-radius:7px;background:#8F5A0E;color:#fff;font:600 14px/1.3 Manrope,system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.expr-title-actions>.expr-expert::before{content:'';width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center/contain no-repeat}
.expr-title-actions>.expr-expert:hover{background:#74480b}
.expr-title-actions>.expr-expert:focus-visible{outline:3px solid #8F5A0E;outline-offset:2px}
@media(max-width:700px){.expr-title-row{gap:12px;flex-wrap:wrap}.expr-title-row>h1{flex:1 1 100%}.expr-title-actions{width:100%;justify-content:flex-start}.expr-title-actions>.expr-estimate,.expr-title-actions>.expr-expert{font-size:12px;padding:10px 8px}}
@media(max-width:600px){
  .expr-title-row>.expr-title-actions{flex-direction:column;align-items:stretch;gap:10px;min-width:0}
  .expr-title-actions>.expr-expert,.expr-title-actions>.expr-estimate{width:100%;min-width:0;min-height:44px;padding:12px;font-size:14px;white-space:normal;overflow-wrap:anywhere;justify-content:center;text-align:center}
}
@media print{.expr-title-actions,.expr-title-reveal{display:none}.expr-title-row>h1{white-space:normal;overflow:visible}}

/* Disposition commune des commandes, y compris après ouverture d'un formulaire. */
/* Ordinateur et tablette : colonnes de même largeur, calées sur le bouton le plus long et alignées à gauche,
   sans étirer les boutons sur tout le bloc (relecture de Claude, 4 nov.). Téléphone : une colonne pleine largeur. */
main .expr-actions{display:grid;grid-template-columns:repeat(var(--expr-action-cols,1),var(--expr-action-w,minmax(0,1fr)));justify-content:start;align-items:stretch;gap:10px}
main .expr-actions>button,main .expr-actions>a,main .expr-actions>label.mn-photo{box-sizing:border-box;min-width:0;width:auto;margin:0;min-height:44px;font-size:clamp(14px,1.2vw,16px);line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center;justify-content:center}
main .expr-actions>.expr-actions-caption{grid-column:1/-1}
@media(max-width:600px){main .expr-actions{grid-template-columns:minmax(0,1fr)}
  /* Un bouton seul posé dans un bloc prend aussi toute la largeur, comme ceux des groupes. */
  main .panel>button{box-sizing:border-box;width:100%;min-height:44px;margin-left:0;margin-right:0;white-space:normal}}
@media(max-width:600px){
  main .line-actions:not(.expr-actions){display:flex;flex-direction:column;align-items:stretch;gap:10px}
  main .line-actions:not(.expr-actions)>button{box-sizing:border-box;width:100%;margin:0;min-height:44px;white-space:normal}
  main .line-actions:not(.expr-actions)>input,main .line-actions:not(.expr-actions)>select{max-width:100%;box-sizing:border-box}
  main .cases-ligne{flex-direction:column;align-items:stretch}
  main .cases-ligne>.case{box-sizing:border-box;width:100%;min-height:44px}
  main .saisie{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
  main .saisie>label,main .saisie>button{grid-column:1/-1}
  main .saisie>input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
  main .saisie>.unite{grid-column:2}
  main .saisie>button{box-sizing:border-box;width:100%;min-height:44px;margin:0}
}

/* Parcours « Décrire mon projet » : onglets alignés avec le logo. */
header.expr-header-projet .entete-g{flex:0 0 auto}
header.expr-header-projet .entete-d{flex:0 0 auto}
header.expr-header-projet .expr-category-nav{flex:1 1 auto;width:auto;min-width:0;border:0;background:transparent}
header.expr-header-projet .expr-category-inner{max-width:none;margin:0;padding:0}

header.expr-header-projet .expr-category-tabs a{padding:8px 10px;font-size:13px}
@media(max-width:980px){header.expr-header-projet{flex-wrap:wrap}header.expr-header-projet .expr-category-nav{order:3;flex-basis:100%}}
@media print{header.expr-header-projet .expr-category-nav{display:none}}

/* Harmonisation : la page du plan reprend l'en-tête des pages de catégorie. */
header.expr-header-projet{gap:20px;padding:14px 24px;background:#fffaf2;border-bottom:1px solid #E8DFD0;font-family:Manrope,system-ui,sans-serif}
header.expr-header-projet .entete-g{gap:0}
header.expr-header-projet .entete-g img{width:100px;height:auto}
header.expr-header-projet .entete-titre,header.expr-header-projet .badge{display:none}
header.expr-header-projet .expr-category-tabs a{padding:10px 11px;font-size:14px}
header.expr-header-projet .entete-d .btn-lien{color:#8F5A0E}
@media(max-width:700px){header.expr-header-projet{gap:10px;padding:12px}header.expr-header-projet .entete-g img{width:64px}header.expr-header-projet .expr-category-tabs a{font-size:13px;padding:11px 9px}}


/* Marges PC communes à l'accueil et aux pages de catégories / parcours.
   Les règles téléphone et tablette restent celles de chaque page. */
@media screen and (min-width:981px){
  :root{--expr-page-gutter:80px}
  body>main:not(.dialogue){
    box-sizing:border-box;width:auto;max-width:none;
    margin-left:var(--expr-page-gutter);margin-right:var(--expr-page-gutter);
    padding-left:0;padding-right:0;
  }
  body>.page{
    width:calc(100% - 2 * var(--expr-page-gutter));margin-left:auto;margin-right:auto;
    grid-template-columns:minmax(0,1fr) clamp(400px,40vw,640px);
  }
  .page>.dialogue{max-width:none;min-width:0;padding-left:0;padding-right:28px}
  .page>.panneau{min-width:0}
  main#app .ext-layout{grid-template-columns:minmax(0,1fr) clamp(280px,24vw,360px)}
  main#app .formes-grid{grid-template-columns:minmax(0,1fr) 340px}
  main#app .vp-devis{flex:0 1 380px}
}
@media screen and (min-width:981px) and (max-width:1200px){
  :root{--expr-page-gutter:40px}
}
.expr-title-actions>.expr-voir{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap;box-sizing:border-box;margin:0;padding:10px 14px;min-height:44px;border:1px solid #8F5A0E;border-radius:7px;background:#fffaf2;color:#8F5A0E;font:600 14px/1.4 Manrope,system-ui,sans-serif;cursor:pointer;text-decoration:none}
.expr-title-actions>.expr-voir:hover{background:#f0e6d7}
.expr-title-actions>.expr-voir:focus-visible{outline:3px solid #8F5A0E;outline-offset:2px}
@media(max-width:700px){.expr-title-actions>.expr-voir{font-size:12px;padding:10px 8px}}
@media(max-width:600px){.expr-title-actions>.expr-voir{width:100%;min-width:0;min-height:44px;padding:12px;font-size:14px;white-space:normal;overflow-wrap:anywhere;justify-content:center;text-align:center}}
.expr-voir[hidden]{display:none!important}
.statut-projet{font-size:14px;color:#655d53;margin:6px 0}.statut-projet[data-statut="compte"]{color:#2f6b3a;font-weight:600}
