/* Original Maillard quotation panel: original colour, shape and shadow asset. */
.m-red-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10em),1fr));font-size:15px;gap:8px;margin-top:3px}
.m-desktop-red-box .m-red-actions>a,.m-original-contact .m-red-actions>a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;font-size:1em;font-weight:700;line-height:1.3;padding:8px 4px;margin:0;background:transparent;border:0;border-radius:0;color:#fff!important;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.m-red-actions>a:hover{text-decoration:underline!important}
.m-mode-original .m-urgent-link{display:none}
/* Même pavé sur ordinateur et mobile : styles et interactions partagés. */
.m-desktop-red-box{background:#dd0000;color:#fff;border-top:8px solid #666;border-radius:0 0 20px 20px;padding:10px 14px 6px;box-shadow:none;text-align:center}
.m-desktop-red-box p{font-size:20px;line-height:1.4;margin:0;color:#fff}
.m-desktop-red-box>a{display:block;color:#fff!important;line-height:1.4;font-size:21px;font-weight:700;text-decoration:none}
.m-desktop-red-box>a:hover{text-decoration:underline}
.m-desktop-red-box>a.m-contact-email{font-size:18px;font-weight:400;overflow-wrap:anywhere}
@media(min-width:768px){
.m-nav{min-height:48px}
.m-masthead{padding-top:0!important}
.m-masthead .m-logo,.m-masthead .m-decennale{margin-top:18px}
.m-desktop-original{width:350px;max-width:39%;flex-shrink:0;align-self:flex-start;margin-top:0;padding-bottom:24px;background:transparent url('../img/ombre-bas-devis.png') no-repeat center bottom}

}
@media(max-width:767px){
/* Mobile : logo pleine largeur, garantie visible sous le logo. */
.m-masthead{flex-direction:column;gap:14px}
.m-masthead .m-logo{width:100%;max-width:none}
.m-masthead .m-logo img{display:block;width:100%;height:auto}
.m-masthead .m-decennale{display:block;width:150px;height:150px;max-width:150px;margin:0;object-fit:contain}
.m-mode-original .m-original-contact{position:relative;background:#dd0000;border-top:8px solid #666;border-radius:0 0 20px 20px;box-shadow:none;padding:10px 14px 6px;margin-bottom:24px}
.m-mode-original .m-original-contact::after{content:'';position:absolute;left:0;right:0;top:100%;height:24px;background:transparent url('../img/ombre-bas-devis.png') no-repeat center bottom;pointer-events:none}
.m-mode-original .m-original-contact p{line-height:1.4}
}
@media(hover:hover){.m-desktop-red-box:hover,.m-mode-original .m-original-contact:hover{background-color:#ccc}}
/* Distinct action buttons and readable text in both panel states. */
.m-desktop-red-box .m-red-actions>a,
.m-original-contact .m-red-actions>a{
 background:#343a40;border:1px solid #343a40;border-radius:5px;
 color:#fff!important;padding:10px 8px;text-decoration:none!important;
}
@media(hover:hover){
 .m-desktop-red-box:hover,.m-mode-original .m-original-contact:hover{
  background:#ccc;color:#212529;
 }
 .m-desktop-red-box:hover p,.m-desktop-red-box:hover>a,
 .m-mode-original .m-original-contact:hover p,
 .m-mode-original .m-original-contact:hover>a{color:#212529!important}
 .m-desktop-red-box:hover .m-red-actions>a,
 .m-mode-original .m-original-contact:hover .m-red-actions>a{
  background:#c00;border-color:#c00;color:#fff!important;
 }
}
/* Keyboard navigation uses the same readable highlighted state. */
.m-desktop-red-box:focus-within,.m-mode-original .m-original-contact:focus-within{
 background:#ccc;color:#212529;
}
.m-desktop-red-box:focus-within p,.m-desktop-red-box:focus-within>a,
.m-mode-original .m-original-contact:focus-within p,
.m-mode-original .m-original-contact:focus-within>a{color:#212529!important}
.m-desktop-red-box:focus-within .m-red-actions>a,
.m-mode-original .m-original-contact:focus-within .m-red-actions>a{
 background:#c00;border-color:#c00;color:#fff!important;
}
.m-red-actions>a:focus-visible{outline:3px solid #111;outline-offset:3px}
/* Breathing room between the action buttons and the rounded bottom edge. */
@media(min-width:768px){.m-desktop-red-box{padding-bottom:20px}}
@media(max-width:767px){.m-mode-original .m-original-contact{padding-bottom:20px}}
/* Balanced desktop masthead: equal outer columns, centered original-size badge. */
@media(min-width:768px){
 .m-masthead{display:grid;grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr);column-gap:24px;align-items:center;padding-top:0!important;padding-bottom:38px}
 .m-masthead .m-logo{width:100%;max-width:396px;justify-self:start;align-self:stretch;display:flex;align-items:center;margin:0}
 .m-masthead .m-logo img{width:100%;height:auto;object-fit:contain}
 .m-masthead .m-decennale{width:150px;height:150px;max-width:150px;justify-self:center;align-self:center;margin:0;object-fit:contain}
 .m-masthead .m-desktop-contact{justify-self:end;max-width:100%}
 .m-masthead .m-desktop-original{position:relative;width:350px;max-width:100%;align-self:stretch;display:flex;margin:0;padding:0;background:none}
 .m-desktop-original::after{content:'';position:absolute;left:0;right:0;top:100%;height:24px;background:transparent url('../img/ombre-bas-devis.png') no-repeat center bottom;pointer-events:none}
 .m-desktop-original .m-desktop-red-box{width:100%;display:flex;flex-direction:column;justify-content:center}
}
@media(min-width:768px) and (max-width:991px){
 .m-masthead{grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr);column-gap:12px}
}
