/* ==================================================
   Menapropre – styles propres au site (hors thème)
   Préfixe mp- pour ne pas entrer en conflit avec style.css
   ================================================== */

/* ---- Héro ---- */
.mp-hero {
    position: relative;
    background-color: #1d2227;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    padding: 130px 0 110px;
}
.mp-hero.mp-hero-court { padding: 90px 0 80px; }
.mp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 24, 28, 0.86) 0%, rgba(20, 24, 28, 0.62) 55%, rgba(20, 24, 28, 0.30) 100%);
}
.mp-hero .container { position: relative; }
.mp-hero .mp-surtitre {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f7941d;
    margin-bottom: 18px;
}
.mp-hero .mp-accroche {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 10px;
}
.mp-hero h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: none;
}
.mp-hero h1 span { color: #f7941d; }
.mp-hero .lead { color: #e9ecef; font-size: 18px; line-height: 1.6; max-width: 640px; margin-bottom: 30px; }

/* ---- Boutons ---- */
.mp-btn, .mp-btn:visited {
    display: inline-block;
    padding: 13px 28px;
    margin: 0 10px 10px 0;
    background: #f7941d;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid #f7941d;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mp-btn:hover, .mp-btn:focus { background: #d97d0f; border-color: #d97d0f; color: #fff !important; }
.mp-btn-ligne, .mp-btn-ligne:visited { background: transparent; border-color: #fff; }
.mp-btn-ligne:hover, .mp-btn-ligne:focus { background: #fff; border-color: #fff; color: #222 !important; }
.mp-btn-ligne-sombre, .mp-btn-ligne-sombre:visited { background: transparent; border-color: #222; color: #222 !important; }
.mp-btn-ligne-sombre:hover, .mp-btn-ligne-sombre:focus { background: #222; border-color: #222; color: #fff !important; }

/* ---- Sections ---- */
.mp-section { padding: 80px 0; }
.mp-section-gris { background: #f5f5f5; }
.mp-section-sombre { background: #1d2227; color: #d6d9dc; }
.mp-section-sombre h2, .mp-section-sombre h3 { color: #fff; }
.mp-titre-section { margin-bottom: 10px; }
.mp-sous-titre { font-size: 18px; color: #666; font-weight: 300; margin: 0 0 40px; }
.mp-section .lead { font-size: 17px; line-height: 1.7; }
.mp-note { font-size: 13px; color: #888; }

/* ---- Trois arguments ---- */
.mp-argument { padding: 0 10px 30px; }
.mp-argument i {
    display: block;
    font-size: 36px;
    color: #f7941d;
    margin-bottom: 15px;
}
.mp-argument h3 { font-size: 18px; margin: 0 0 10px; }
.mp-argument p { margin: 0; }

/* ---- Cartes de services spécialisés ---- */
.mp-carte {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-top: 3px solid #f7941d;
    padding: 30px 25px 25px;
    margin-bottom: 30px;
    min-height: 300px;
}
.mp-carte i { font-size: 28px; color: #f7941d; margin-bottom: 12px; display: block; }
.mp-carte h3 { font-size: 17px; margin: 0 0 10px; }
.mp-carte p { margin: 0 0 15px; }
.mp-carte a.mp-lien { font-weight: 600; color: #f7941d; text-decoration: none; }
.mp-carte a.mp-lien:hover { color: #222; }

/* ---- Galerie avant / après ---- */
.mp-projet { margin-bottom: 40px; }
.mp-avant-apres { display: flex; gap: 8px; margin-bottom: 15px; }
.mp-avant-apres a { position: relative; display: block; flex: 1 1 50%; overflow: hidden; background: #ddd; }
.mp-avant-apres img { display: block; width: 100%; height: 190px; object-fit: cover; }
.mp-avant-apres .mp-etiquette {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
}
.mp-avant-apres .mp-etiquette-apres { background: #f7941d; }
.mp-projet h3 { font-size: 18px; margin: 0 0 8px; }
.mp-projet p { margin: 0 0 8px; }
.mp-roi { font-size: 14px; color: #222; }
.mp-roi i { color: #f7941d; margin-right: 6px; }

/* ---- Conformité ---- */
.mp-conformite {
    border: 3px solid #f7941d;
    padding: 35px 40px;
    background: #fff;
}
.mp-conformite h2 { margin-top: 0; }
.mp-conformite ul { list-style: none; padding: 0; margin: 20px 0 0; }
.mp-conformite li { padding: 8px 0 8px 34px; position: relative; font-size: 16px; }
.mp-conformite li i { position: absolute; left: 0; top: 10px; color: #f7941d; font-size: 20px; }

/* ---- Appel à l'action ---- */
.mp-cta { background: #f7941d; color: #fff; padding: 60px 0; }
.mp-cta h2 { color: #fff; margin: 0 0 8px; }
.mp-cta p { color: #fff; margin: 0; font-size: 16px; }
.mp-cta .mp-btn { background: #222; border-color: #222; margin-top: 10px; }
.mp-cta .mp-btn:hover { background: #000; border-color: #000; }

/* ---- Bloc formulaire (destination) ---- */
.mp-formulaire-bloc {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 45px 40px;
    text-align: center;
}
.mp-formulaire-bloc h2 { margin-top: 0; }

/* ---- Adaptation mobile ---- */
@media only screen and (max-width: 991px) {
    .mp-hero { padding: 90px 0 70px; }
    .mp-hero h1 { font-size: 34px; }
    .mp-carte { min-height: 0; }
    .mp-conformite { padding: 25px 20px; }
}
@media only screen and (max-width: 767px) {
    .mp-hero { padding: 70px 0 50px; background-position: center; }
    .mp-hero::before { background: rgba(20, 24, 28, 0.74); }
    .mp-hero h1 { font-size: 28px; }
    .mp-hero .mp-accroche { font-size: 16px; }
    .mp-hero .lead { font-size: 16px; }
    .mp-section { padding: 50px 0; }
    .mp-avant-apres img { height: 150px; }
    .mp-btn { display: block; text-align: center; margin-right: 0; }
}

/* ---- Pages de services (lot 4) ---- */
.mp-ariane { background: #f5f5f5; border-bottom: 1px solid #e6e6e6; font-size: 13px; }
.mp-ariane ol { list-style: none; margin: 0; padding: 10px 0; }
.mp-ariane li { display: inline; color: #666; }
.mp-ariane li + li::before { content: "\203A"; padding: 0 8px; color: #aaa; }
.mp-ariane a { color: #f7941d; text-decoration: none; }
.mp-ariane a:hover { color: #222; }
#section-service-intro { padding: 50px 0 40px; }
#section-service-intro h1 { margin-bottom: 5px; }
#section-service-intro h3 { font-size: 18px; margin-top: 25px; }
.mp-inclus { background: #fff; border: 1px solid #e6e6e6; padding: 30px 30px 20px; margin-bottom: 30px; min-height: 100%; }
.mp-inclus h2 { font-size: 20px; margin: 0 0 15px; }
.mp-inclus ul { list-style: none; margin: 0; padding: 0; }
.mp-inclus li { position: relative; padding: 6px 0 6px 28px; }
.mp-inclus li i { position: absolute; left: 0; top: 10px; color: #f7941d; }
.mp-exclus li i { color: #999; }
.mp-etapes { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.mp-etapes li { padding: 0 20px 30px; }
.mp-etape-numero { display: inline-block; width: 42px; height: 42px; line-height: 42px; text-align: center; border-radius: 50%; background: #f7941d; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.mp-etapes h3 { font-size: 17px; margin: 0 0 8px; }
.mp-etapes p { margin: 0; }
.mp-facteurs { background: #fff; border: 1px solid #e6e6e6; padding: 25px 30px; margin-bottom: 30px; }
.mp-facteurs h3 { font-size: 18px; margin: 0 0 12px; }
.mp-facteurs h3 i { color: #f7941d; margin-right: 6px; }
.mp-facteurs ul { margin: 0; padding-left: 20px; }
.mp-facteurs li { padding: 4px 0; }
.mp-faq { margin-top: 25px; }
.mp-faq-item { border-top: 1px solid #e6e6e6; padding: 22px 0; }
.mp-faq-item:last-child { border-bottom: 1px solid #e6e6e6; }
.mp-faq-item h3 { font-size: 18px; margin: 0 0 8px; }
.mp-faq-item p { margin: 0; }
.mp-pourquoi { background: #1d2227; color: #d6d9dc; padding: 70px 0; }
.mp-pourquoi h2 { color: #fff; margin: 0 0 25px; }
.mp-pourquoi ul { list-style: none; margin: 0; padding: 0; column-count: 2; column-gap: 40px; }
.mp-pourquoi li { position: relative; padding: 7px 0 7px 30px; break-inside: avoid; font-size: 15px; }
.mp-pourquoi li i { position: absolute; left: 0; top: 10px; color: #f7941d; font-size: 16px; }
.mp-zones { list-style: none; padding: 0; margin: 15px 0 0; }
.mp-zones li { display: inline-block; background: #f5f5f5; border: 1px solid #e6e6e6; padding: 6px 14px; margin: 0 8px 8px 0; font-size: 14px; }
.mp-coordonnees { font-size: 17px; line-height: 2; }
.mp-coordonnees i { color: #f7941d; width: 24px; }
@media only screen and (max-width: 767px) {
    .mp-pourquoi ul { column-count: 1; }
    #section-service-intro { padding: 30px 0 20px; }
}

/* ---- Carrières (lot 6) ---- */
.mp-categorie { margin: 10px 0 35px; }
.mp-categorie > h3 { font-size: 20px; margin: 0 0 4px; }
.mp-categorie > p { color: #666; margin: 0 0 15px; }
.mp-poste { background: #fff; border: 1px solid #e6e6e6; border-left: 3px solid #f7941d; margin-bottom: 10px; }
.mp-poste summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative; }
.mp-poste summary::-webkit-details-marker { display: none; }
.mp-poste summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: #f7941d; line-height: 1; }
.mp-poste[open] summary::after { content: "\2212"; }
.mp-poste summary:focus-visible { outline: 2px solid #222; outline-offset: -2px; }
.mp-poste-titre { display: block; font-size: 17px; font-weight: 700; color: #222; }
.mp-poste-meta { display: block; font-size: 13px; color: #666; margin-top: 4px; }
.mp-poste-meta i { color: #f7941d; }
.mp-poste-corps { padding: 0 20px 20px; border-top: 1px solid #eee; }
.mp-poste-corps h4 { font-size: 15px; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: 1px; color: #f7941d; }
.mp-poste-corps ul { padding-left: 20px; margin: 0; }
.mp-poste-corps li { padding: 3px 0; }
.mp-poste-domaine { margin: 14px 0 0; color: #444; }
.mp-form-consentement-case .mp-groupe legend { position: absolute; left: -9999px; }
.mp-form-consentement-case .mp-option { display: block; font-size: 14px; }
.mp-champ-fichier input[type="file"] { display: block; width: 100%; padding: 8px 0; font-size: 14px; }

/* ---- Recette (lot 8) ---- */
.post-text h3 a { color: inherit; text-decoration: none; }
.post-text h3 a:hover { color: #f7941d; }
.mp-facteurs h2.mp-h3 { font-size: 18px; margin: 0 0 12px; }
.mp-facteurs h2.mp-h3 i { color: #f7941d; margin-right: 6px; }
.cookies_section h2.mp-h1 { font-size: 36px; }

/* ---- Galeries de réalisations (lot 7) ---- */
.mp-galerie { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 25px 0 10px; }
.mp-galerie-item { display: block; position: relative; flex: 0 0 calc(33.333% - 10px); aspect-ratio: 3 / 2; overflow: hidden; background: #e9e9e9; border-radius: 2px; }
.mp-galerie-2col .mp-galerie-item { flex-basis: calc(50% - 7px); }
.mp-galerie-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mp-galerie-item:hover img, .mp-galerie-item:focus-visible img { transform: scale(1.04); }
.mp-galerie-item::after { content: "\f00e"; font-family: FontAwesome; position: absolute; right: 12px; bottom: 10px; width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 15px; opacity: 0; transition: opacity 0.25s; }
.mp-galerie-item:hover::after, .mp-galerie-item:focus-visible::after { opacity: 1; }
.mp-galerie-item:focus-visible { outline: 3px solid #f7941d; outline-offset: 2px; }
.mp-vedette { display: block; position: relative; overflow: hidden; border-radius: 2px; margin: 0 0 30px; }
.mp-vedette img { display: block; width: 100%; height: auto; }
.mp-vedette figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); color: #fff; font-size: 14px; }
.mp-galerie-section h2 { margin-bottom: 8px; }
.mp-galerie-section .mp-sous-titre { margin-bottom: 10px; }
@media only screen and (max-width: 991px) { .mp-galerie-item, .mp-galerie-2col .mp-galerie-item { flex-basis: calc(50% - 7px); } }
@media only screen and (max-width: 560px) { .mp-galerie { gap: 10px; } .mp-galerie-item, .mp-galerie-2col .mp-galerie-item { flex-basis: 100%; } .mp-galerie-item::after { opacity: 1; } }

/* ==================================================
   Révision visuelle (29 oct. 2026)
   Le thème impose « .de_light section {background:#fff9f4} », « i {display:inline-block !important} »,
   un en-tête fixe et des colonnes flottantes : les règles ci-dessous corrigent ces effets.
   ================================================== */

/* Fonds de sections */
.de_light section.mp-section-gris, section.mp-section-gris { background: #f3f1ee; }
.de_light section.mp-section-sombre, section.mp-section-sombre { background: #1d2227; }
.de_light section.mp-pourquoi, section.mp-pourquoi { background: #1d2227; }
.de_light section.mp-cta, section.mp-cta { background: #f7941d; }
.de_light section.mp-hero, section.mp-hero { background-color: #1d2227; }
section.mp-pourquoi h2, section.mp-pourquoi li { color: #fff; }
section.mp-pourquoi li { color: #e6e8ea; }
section.mp-cta h2, section.mp-cta p, section.mp-cta .mp-note, section.mp-cta .mp-note a { color: #fff; }
section.mp-cta .row { display: flex; align-items: center; flex-wrap: wrap; }
section.mp-cta .row::before, section.mp-cta .row::after { display: none; }
section.mp-cta .mp-btn { margin: 0; white-space: nowrap; }

/* En-tête fixe : le contenu des héros commence sous l'en-tête */
section.mp-hero { padding-top: 215px; padding-bottom: 100px; }
section.mp-hero.mp-hero-court { padding-top: 200px; padding-bottom: 80px; }

/* Menu principal sur une seule ligne (6 entrées) */
@media only screen and (min-width: 1200px) {
    #mainmenu > li > a { padding-left: 13px; letter-spacing: 2px; }
    #mainmenu li a:after { margin-left: 13px; }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    #mainmenu > li > a { padding-left: 6px; letter-spacing: 1px; font-size: 10px; }
    #mainmenu li a:after { margin-left: 8px; }
}

/* Bandeaux d'images en tête de page : hauteur bornée */
.mp-bandeau { line-height: 0; background: #1d2227; }
.mp-bandeau img { display: block; width: 100%; height: 440px; object-fit: cover; object-position: center; }

/* Grilles : colonnes de même hauteur, plus de décalage dû aux flottants */
ol.mp-etapes, ul.blog-snippet:not(#blog-carousel),
.row:has(> [class*="col-"] > .mp-carte), .row:has(> [class*="col-"] > .mp-argument),
.row:has(> [class*="col-"] > .mp-facteurs), .row:has(> [class*="col-"] > .mp-inclus),
.row:has(> [class*="col-"] > .mp-projet) { display: flex; flex-wrap: wrap; }
ol.mp-etapes::before, ol.mp-etapes::after, ul.blog-snippet:not(#blog-carousel)::before, ul.blog-snippet:not(#blog-carousel)::after,
.row:has(> [class*="col-"] > .mp-carte)::before, .row:has(> [class*="col-"] > .mp-carte)::after,
.row:has(> [class*="col-"] > .mp-argument)::before, .row:has(> [class*="col-"] > .mp-argument)::after,
.row:has(> [class*="col-"] > .mp-facteurs)::before, .row:has(> [class*="col-"] > .mp-facteurs)::after,
.row:has(> [class*="col-"] > .mp-inclus)::before, .row:has(> [class*="col-"] > .mp-inclus)::after,
.row:has(> [class*="col-"] > .mp-projet)::before, .row:has(> [class*="col-"] > .mp-projet)::after { display: none; }
.row:has(> [class*="col-"] > .mp-carte) > [class*="col-"], .row:has(> [class*="col-"] > .mp-facteurs) > [class*="col-"],
.row:has(> [class*="col-"] > .mp-inclus) > [class*="col-"] { display: flex; flex-direction: column; }
.mp-carte, .mp-facteurs, .mp-inclus { flex: 1 1 auto; min-height: 0; }
.mp-carte { margin-bottom: 30px; }
.mp-argument { margin-bottom: 10px; }

/* Cartes de services (accueil, Services) : images au même format, cartes alignées */
ul.blog-snippet:not(#blog-carousel) > li.item { float: none; display: flex; flex-direction: column; }
ul.blog-snippet:not(#blog-carousel) .post-content { flex: 1 1 auto; }
.blog-snippet .post-image { overflow: hidden; }
.blog-snippet .post-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-snippet .post-text h3 { margin-top: 18px; }

/* Pied de page */
footer address span { display: block; margin-bottom: 6px; }
footer address strong { margin-right: 6px; }
.subfooter { padding: 24px 0; }
.subfooter .mp-politique, .subfooter .mp-copyright { margin: 0 0 6px; text-align: left; color: #cfcfcf; font-size: 13px; }
.subfooter .mp-politique a, .subfooter .mp-copyright a { color: #f7941d; }
.subfooter .mp-rbq { margin: 0; text-align: right; color: #cfcfcf; font-size: 13px; }

@media only screen and (max-width: 991px) {
    section.mp-hero, section.mp-hero.mp-hero-court { padding-top: 150px; padding-bottom: 60px; }
    .mp-bandeau img { height: 320px; }
    .subfooter .mp-politique, .subfooter .mp-copyright, .subfooter .mp-rbq { text-align: center; }
    section.mp-cta .col-md-4 { text-align: left; margin-top: 15px; }
}
@media only screen and (max-width: 767px) {
    section.mp-hero, section.mp-hero.mp-hero-court { padding-top: 130px; padding-bottom: 50px; }
    .mp-bandeau img { height: 240px; }
}

/* Liste de cartes du thème : flottante et sans largeur dans style.css, d'où des cartes réduites une fois en flex */
ul.blog-snippet:not(#blog-carousel) { float: none; clear: both; width: 100%; margin-left: 0; margin-right: 0; padding: 0; }
ul.blog-snippet:not(#blog-carousel) > li.item { width: 50%; }
@media only screen and (max-width: 767px) { ul.blog-snippet:not(#blog-carousel) > li.item { width: 100%; } }

/* Sur tablette et mobile l'en-tête du thème n'est plus fixe : les héros n'ont plus besoin de réserver sa hauteur */
@media only screen and (max-width: 991px) {
    section.mp-hero, section.mp-hero.mp-hero-court { padding-top: 70px; padding-bottom: 60px; }
    .mp-formulaire-bloc { padding: 28px 18px; }
}
@media only screen and (max-width: 767px) {
    section.mp-hero, section.mp-hero.mp-hero-court { padding-top: 56px; padding-bottom: 48px; }
    .mp-formulaire-bloc { padding: 22px 12px; }
}
