/* Habillage ciblé : n'altère ni le contenu, ni les images, ni le fonctionnement des pages. */
:root { --mf-nuit:#181b30; --mf-prune:#51304d; --mf-or:#e8b65f; --mf-ivoire:#faf7f1; }
body { background:var(--mf-ivoire); }
body .mf-hero {
 background:linear-gradient(125deg,#151a30 0%,#382640 55%,#693c55 100%) !important;
 border-radius:30px !important; box-shadow:0 24px 65px rgba(31,22,45,.24) !important;
 position:relative; overflow:hidden; isolation:isolate;
}
body .mf-hero::before {content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 80% 15%,rgba(232,182,95,.18),transparent 43%);}
body .mf-hero h1 {color:#fff !important;letter-spacing:-.035em;line-height:1.06;text-shadow:0 3px 25px rgba(0,0,0,.14);}
body .mf-hero p {color:#f5edf1 !important;line-height:1.65;}
body .mf-hero .mf-eyebrow {color:#f3c474 !important;letter-spacing:.17em;font-weight:800;}
body .mf-hero img {border-radius:18px !important;box-shadow:0 18px 44px rgba(0,0,0,.26);object-fit:cover;}
body .mf-hero .mf-buttons {display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
body .mf-hero .mf-buttons a {background:linear-gradient(145deg,#f7cb7c,#dfa14b) !important;color:#251a24 !important;border:1px solid rgba(255,255,255,.23) !important;border-radius:999px !important;box-shadow:0 7px 20px rgba(0,0,0,.19) !important;padding:15px 22px !important;font-weight:800 !important;text-decoration:none !important;transition:transform .2s ease,box-shadow .2s ease !important;}
body .mf-hero .mf-buttons a:nth-child(2) {background:#fff9ee !important;color:#2c2236 !important;}
body .mf-hero .mf-buttons a:hover,body .mf-hero .mf-buttons a:focus-visible {transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.25) !important;}
body .mf-intro {padding-top:50px;padding-bottom:36px;}
body .mf-intro h2,body .mf-cards h2 {color:var(--mf-nuit) !important;letter-spacing:-.025em;}
body .mf-cards {gap:24px;}
body .mf-cards article {background:#fff !important;border:1px solid #eee4dc !important;border-radius:23px !important;overflow:hidden;box-shadow:0 12px 36px rgba(34,26,40,.09) !important;transition:transform .2s ease,box-shadow .2s ease;}
body .mf-cards article:hover {transform:translateY(-5px);box-shadow:0 18px 42px rgba(34,26,40,.16) !important;}
body .mf-cards article img {display:block;width:100%;object-fit:cover;}
body .mf-cards article a {color:#713b57;font-weight:700;}
body .wp-block-button__link {border-radius:999px;transition:transform .2s ease;}
body .wp-block-button__link:hover {transform:translateY(-2px);}
@media(max-width:780px){body .mf-hero{border-radius:22px !important;}body .mf-hero .mf-buttons a{padding:13px 17px !important;}body .mf-intro{padding-top:28px;}}
@media(prefers-reduced-motion:reduce){body .mf-hero .mf-buttons a,body .mf-cards article,body .wp-block-button__link{transition:none !important;}}

/* Version 2.1 : corrige la grille qui laissait la photo recouvrir le texte. */
body .mf-hero {
  display:grid !important;
  grid-template-columns:minmax(0, 1.08fr) minmax(0, .92fr) !important;
  align-items:stretch;
}
body .mf-hero > div {
  min-width:0 !important;
  box-sizing:border-box;
  position:relative;
  z-index:1;
  padding:clamp(24px,3.6vw,55px) !important;
}
body .mf-hero h1 {
  font-size:clamp(38px,4.1vw,65px) !important;
  overflow-wrap:normal;
  max-width:100%;
}
body .mf-hero > img {
  display:block !important;
  position:static !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:100% !important;
  min-height:440px;
  max-height:650px;
  object-fit:cover !important;
  object-position:center 25%;
  border-radius:0 30px 30px 0 !important;
  box-shadow:none !important;
  align-self:stretch;
}
body .mf-hero .mf-buttons a {font-size:14px !important;padding:13px 17px !important;}
@media (max-width:900px) {
  body .mf-hero {grid-template-columns:1fr !important;}
  body .mf-hero > img {
    height:auto !important;
    max-height:400px !important;
    min-height:0 !important;
    border-radius:0 0 22px 22px !important;
    object-fit:contain !important;
    background:#3c2a40;
  }
  body .mf-hero h1 {font-size:clamp(38px,8vw,58px) !important;}
}

/* Version 2.2 : trois boutons identiques couleur champagne. */
body .mf-hero .mf-buttons a,
body .mf-hero .mf-buttons a:nth-child(2),
body .mf-hero .mf-buttons a:nth-child(3) {
  background:linear-gradient(145deg,#f7cb7c,#dfa14b) !important;
  color:#251a24 !important;
  border-color:rgba(255,255,255,.23) !important;
}

/* V2.3 — centrage du trait décoratif sous le titre d'introduction. */
body .mf-intro h2::after, body .mf-intro::after {
  left:50% !important; right:auto !important;
  transform:translateX(-50%) !important;
}
body .mf-intro {position:relative !important;text-align:center !important;}
body .mf-intro h2 {position:relative !important;text-align:center !important;}
body .mf-intro h2::after {margin-left:auto !important;margin-right:auto !important;}
/* Ne déplace pas le trait si un ancien style utilise un élément :before. */
body .mf-intro h2::before {left:50% !important;right:auto !important;transform:translateX(-50%) !important;}
/* Micro-interactions douces, sans décaler les images ou les textes. */
body .mf-cards:not(.mf-cards-text) > article {transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease !important;}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 body .mf-cards:not(.mf-cards-text) > article:hover {transform:translateY(-7px) !important;box-shadow:0 22px 48px rgba(31,22,45,.18) !important;border-color:#e6c28d !important;}
}
body .mf-cards:not(.mf-cards-text) > article:focus-within {outline:2px solid #d6a65d;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){body .mf-cards:not(.mf-cards-text)>article{transition:none !important;}}

/* V3 Festif Chic — couleurs plus vibrantes, sans toucher aux photos ni au contenu */
:root {--mf-coral:#f36b69;--mf-turquoise:#24b7b2;--mf-soleil:#ffcb60;--mf-violet:#703eaa;}
body {background:linear-gradient(150deg,#fff9f4 0%,#f4f1ff 50%,#effaf8 100%) fixed !important;}
body .mf-hero {background:linear-gradient(125deg,#171c40 0%,#54317b 51%,#b94d81 100%) !important;box-shadow:0 25px 60px rgba(71,42,119,.22) !important;}
body .mf-hero::before {z-index:0 !important;background:radial-gradient(circle at 22% 10%,rgba(255,203,96,.2),transparent 35%),radial-gradient(circle at 75% 90%,rgba(36,183,178,.19),transparent 42%) !important;}
body .mf-hero .mf-eyebrow {color:#ffe19d !important;}
body .mf-hero .mf-buttons a,body .mf-hero .mf-buttons a:nth-child(2),body .mf-hero .mf-buttons a:nth-child(3) {background:linear-gradient(120deg,#ffda83,#ffb657) !important;color:#25172f !important;border:1px solid rgba(255,255,255,.6) !important;box-shadow:0 8px 20px rgba(34,16,54,.24) !important;}
body .mf-hero .mf-buttons a:hover {background:linear-gradient(120deg,#ffe7a5,#ffc56c) !important;}
body .mf-intro h2 {color:#29224b !important;}
body .mf-intro h2::after,body .mf-intro::after {background:linear-gradient(90deg,#f36b69,#ffbd55,#24b7b2) !important;}
body .mf-cards article {border:1px solid rgba(103,76,148,.12) !important;box-shadow:0 16px 42px rgba(74,54,112,.12) !important;background:#fff !important;}
body .mf-cards article:nth-child(1) {border-top:6px solid #f36b69 !important;}
body .mf-cards article:nth-child(2) {border-top:6px solid #703eaa !important;}
body .mf-cards article:nth-child(3) {border-top:6px solid #24b7b2 !important;}
body .mf-cards article h2,body .mf-cards article h3 {color:#2b254c !important;}
body .mf-cards article a {color:#7434a2 !important;}
body .mf-cards article img {transition:filter .3s ease,transform .4s ease;}
@media(hover:hover) and (prefers-reduced-motion:no-preference){body .mf-cards article:hover img{filter:saturate(1.13) contrast(1.03);}}
body .wp-block-button__link:not(.mf-hero a) {background:linear-gradient(115deg,#7043a4,#c54b90) !important;color:#fff !important;box-shadow:0 8px 22px rgba(112,67,164,.18);}
body .mf-hero > img {object-position:center 25% !important;}
@media(max-width:900px){body .mf-hero > img {object-position:center !important;}}
@media(prefers-reduced-motion:reduce){body .mf-cards article img{transition:none !important;}}


/* V4 : harmonisation globale, sans toucher aux contenus, images, ni logique du calendrier. */
:root { --mf-v4-ink:#20213e; --mf-v4-purple:#7544b0; --mf-v4-coral:#ef6580; --mf-v4-teal:#14a9a5; --mf-v4-gold:#ffcb68; }
body { color:var(--mf-v4-ink); }
/* En-tête WordPress : style moderne, sans forcer la structure du thème. */
body .wp-site-blocks > header, body header.wp-block-template-part, body .site-header {
 background:rgba(255,255,255,.95) !important;
 border-bottom:1px solid rgba(111,70,157,.12);
 box-shadow:0 6px 24px rgba(38,27,75,.055);
}
body .wp-block-site-title a,body .site-title a {color:#242044 !important;font-weight:800;text-decoration:none !important;}
body .wp-block-navigation a,body .main-navigation a {text-decoration:none !important;transition:color .2s ease !important;}
body .wp-block-navigation a:hover,body .main-navigation a:hover {color:#9141ac !important;}
body .wp-block-navigation-item__content {border-radius:10px;padding:7px 9px !important;}
body .wp-block-navigation-item__content:hover {background:#f4eaff;}
/* Accueil : une touche de couleur visible, sans recadrer les photos. */
body .mf-hero {outline:1px solid rgba(255,255,255,.22);outline-offset:-1px;}
body .mf-hero .mf-buttons a {transition:transform .22s ease,filter .22s ease,box-shadow .22s ease !important;}
body .mf-hero .mf-buttons a:focus-visible {outline:3px solid #fff !important;outline-offset:3px;}
body .mf-intro h2 {font-weight:850 !important;}
body .mf-cards article {position:relative;}
body .mf-cards article:nth-child(1) {border-top-color:#f36b69 !important;}
body .mf-cards article:nth-child(2) {border-top-color:#8a4dbe !important;}
body .mf-cards article:nth-child(3) {border-top-color:#1ab8ae !important;}
body .mf-cards article:nth-child(1) h2,body .mf-cards article:nth-child(1) h3 {color:#a73856 !important;}
body .mf-cards article:nth-child(2) h2,body .mf-cards article:nth-child(2) h3 {color:#6737a3 !important;}
body .mf-cards article:nth-child(3) h2,body .mf-cards article:nth-child(3) h3 {color:#087e7b !important;}
body .mf-cards article p {line-height:1.65;}
/* Pages intérieures : titres, cartes et boutons cohérents. */
body:not(.home) main h1,body:not(.home) .entry-content > h1 {color:#29214f;letter-spacing:-.035em;}
body:not(.home) main h2 {letter-spacing:-.025em;}
body:not(.home) .wp-block-group.is-style-default,body:not(.home) .wp-block-columns {border-radius:18px;}
body .wp-block-button__link {transition:transform .2s ease,box-shadow .2s ease,filter .2s ease !important;}
body .wp-block-button__link:hover {filter:brightness(1.07);box-shadow:0 12px 28px rgba(95,55,145,.2);}
body :is(input[type=text],input[type=email],input[type=tel],textarea,select) {border-radius:11px;max-width:100%;}
body :is(input[type=submit],button[type=submit]) {border-radius:999px;}
/* Footer discret, raccord avec l'ensemble. */
body .wp-site-blocks > footer,body footer.wp-block-template-part {border-top:1px solid rgba(112,67,164,.14);}
@media(max-width:900px){body .wp-block-navigation-item__content{padding:6px !important;}}
@media(prefers-reduced-motion:reduce){body .wp-block-navigation a,body .wp-block-button__link,body .mf-hero .mf-buttons a{transition:none !important;}}

/* V4.1 — pages intérieures. Sélecteurs indépendants des classes de l'accueil. */
body:not(.home):not(.front-page) .entry-content,
body:not(.home):not(.front-page) main .wp-block-post-content {
  --mf-inner-ink:#26213f;
  --mf-inner-purple:#7544b0;
  --mf-inner-coral:#ed6680;
  --mf-inner-teal:#14a9a5;
}
/* Conteneurs : respecter les largeurs du thème et la mise en page existante. */
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) > :is(h1,h2,h3),
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) :is(.mf-section-title,.mf-page-title) {
 color:#30234f !important; letter-spacing:-.03em; line-height:1.17;
}
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) > h1,
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) > h2:first-child {
 font-weight:850 !important; font-size:clamp(30px,4vw,48px) !important;
}
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) > h1::after,
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) > h2:first-child::after {
 content:"";display:block;width:84px;height:5px;margin:16px 0 24px;border-radius:99px;
 background:linear-gradient(90deg,#f36b69,#ffcb60,#24b7b2);
}
/* Les groupes WordPress et colonnes de services deviennent des cartes, sans changer les images. */
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) .wp-block-columns > .wp-block-column:has(> .wp-block-image),
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) .wp-block-columns > .wp-block-column:has(> figure),
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) .wp-block-group.has-background {
 border-radius:22px !important;overflow:hidden;
 box-shadow:0 14px 34px rgba(52,35,89,.10);
 border:1px solid rgba(109,69,159,.12);
}
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) .wp-block-columns > .wp-block-column:nth-child(3n+1):has(> figure) {border-top:5px solid #f36b69;}
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) .wp-block-columns > .wp-block-column:nth-child(3n+2):has(> figure) {border-top:5px solid #8249b9;}
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) .wp-block-columns > .wp-block-column:nth-child(3n):has(> figure) {border-top:5px solid #24b7b2;}
/* Images préservées : aucune rotation, substitution ou taille forcée. */
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) .wp-block-image img {border-radius:15px;}
/* Boutons et liens d'action, y compris les liens classiques des pages personnalisées. */
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) :is(.wp-block-button__link,a.mf-btn,a.button,a.btn) {
 display:inline-block;border-radius:999px !important;padding:12px 22px !important;
 background:linear-gradient(115deg,#7544b0,#b94f9e) !important;color:#fff !important;
 text-decoration:none !important;font-weight:750 !important;
 box-shadow:0 9px 22px rgba(112,67,164,.18);
 transition:transform .2s ease,box-shadow .2s ease;
}
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) :is(.wp-block-button__link,a.mf-btn,a.button,a.btn):hover {
 transform:translateY(-2px);box-shadow:0 13px 29px rgba(112,67,164,.25);
}
/* Sections personnalisées de type mf, si présentes sur les pages intérieures. */
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) :is(.mf-hero,.mf-banner,.mf-page-hero) {
 background:linear-gradient(120deg,#222047,#69378e,#ba528b) !important;
 color:white !important;border-radius:26px !important;overflow:hidden;
 box-shadow:0 20px 46px rgba(71,42,119,.18);
}
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) :is(.mf-hero,.mf-banner,.mf-page-hero) :is(h1,h2,h3,p) {color:white !important;}
body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) :is(.mf-cards,.mf-grid) > :is(article,.mf-card) {
 background:white;border-radius:20px !important;overflow:hidden;
 border:1px solid #e8deed;box-shadow:0 12px 30px rgba(61,40,99,.10);
 transition:transform .25s ease,box-shadow .25s ease;
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) :is(.mf-cards,.mf-grid) > :is(article,.mf-card):hover {
 transform:translateY(-5px);box-shadow:0 20px 38px rgba(61,40,99,.16);
 }
}
/* Ne pas modifier la disposition ni les interactions du calendrier. */
@media(prefers-reduced-motion:reduce){body:not(.home):not(.front-page) :is(.entry-content,.wp-block-post-content) :is(.mf-cards,.mf-grid) > :is(article,.mf-card){transition:none !important;}}
