/* =========================================================
   MERCIER LOC – user.css pour template enfant de Cassiopeia
   Emplacement : media/templates/site/cassiopeia_mercierloc/css/user.css
   Version consolidée
   ========================================================= */

/* ---------- 1. Polices hébergées localement (RGPD) ---------- */
@font-face { font-family:"Oswald"; font-weight:600; font-display:swap; src:url("../fonts/oswald-600.woff2") format("woff2"); }
@font-face { font-family:"Oswald"; font-weight:700; font-display:swap; src:url("../fonts/oswald-700.woff2") format("woff2"); }
@font-face { font-family:"Barlow"; font-weight:400; font-display:swap; src:url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family:"Barlow"; font-weight:500; font-display:swap; src:url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family:"Barlow"; font-weight:600; font-display:swap; src:url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family:"Great Vibes"; font-weight:400; font-display:swap; src:url("../fonts/great-vibes-400.woff2") format("woff2"); }

/* ---------- 2. Jetons de la charte ---------- */
:root {
  --ml-noir: #0B0B0B;
  --ml-noir-2: #161616;
  --ml-or: #D9A43A;
  --ml-or-clair: #F3CB6B;
  --ml-or-fonce: #A8761F;
  --ml-blanc: #FFFFFF;
  --ml-gris: #BDBDBD;
  --ml-degrade-or: linear-gradient(135deg, #F3CB6B 0%, #D9A43A 50%, #A8761F 100%);

  /* Surcharge des variables natives de Cassiopeia */
  --cassiopeia-color-primary: var(--ml-noir);
  --cassiopeia-color-link: var(--ml-or);
  --cassiopeia-color-hover: var(--ml-or-clair);
  --cassiopeia-font-family-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --cassiopeia-font-family-headings: "Oswald", "Arial Narrow", sans-serif;
  --cassiopeia-font-weight-headings: 700;
}

/* ---------- 3. Base ---------- */
body {
  background: var(--ml-noir);
  color: var(--ml-blanc);
  font-family: var(--cassiopeia-font-family-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
/* Fond pailleté plein écran, fixe pendant le défilement (calque fixe : fonctionne aussi sur iPhone,
   contrairement à background-attachment: fixed) */
/* body devient un contexte d'empilement : le calque de fond passe au-dessus de la couleur
   de fond appliquée par Cassiopeia, au lieu de se retrouver caché dessous */
body { position: relative; z-index: 0; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--ml-noir) url("../images/fonds/fond-paillettes-1920x1080.webp") center / cover no-repeat;
}
@media (max-width: 767px) and (orientation: portrait) {
  body::before { background-image: url("../images/fonds/fond-paillettes-mobile-1080x1920.webp"); }
}
h1, h2, h3, h4 {
  font-family: var(--cassiopeia-font-family-headings); font-weight: 700; color: var(--ml-or);
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.15;
}
a { color: var(--ml-or); }
a:hover, a:focus { color: var(--ml-or-clair); }
:focus-visible { outline: 2px solid var(--ml-or-clair); outline-offset: 3px; }

/* Texte manuscrit en dégradé or (padding : évite que les jambages soient coupés) */
.ml-script {
  font-family: "Great Vibes", cursive; font-weight: 400; text-transform: none; letter-spacing: 0;
  background: var(--ml-degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .1em .2em .3em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- 4. En-tête et pied de page Cassiopeia ---------- */
.container-header { background: var(--ml-noir); background-image: none; border-bottom: 1px solid rgba(217,164,58,.35); }
.container-header .navbar-brand img { width: auto; }
.container-header .mod-menu > li > a,
.container-header .metismenu > li > a { color: var(--ml-blanc); font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li > a:hover { color: var(--ml-or); }
.container-topbar { background: #000; color: var(--ml-gris); font-size: .9rem; }
.container-footer.footer, .footer { background: #000; border-top: 1px solid rgba(217,164,58,.35); color: var(--ml-gris); }

/* ---------- 5. Boutons ---------- */
.btn-primary, .ml-bouton {
  display: inline-block; background: var(--ml-degrade-or); border: 0; color: var(--ml-noir); font-weight: 600;
  padding: .8em 1.8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  margin-top: 1em;
}
.btn-primary:hover, .ml-bouton:hover { filter: brightness(1.08); color: var(--ml-noir)}
.ml-bouton--contour { background: transparent; color: var(--ml-or); box-shadow: inset 0 0 0 2px var(--ml-or); }
.ml-bouton--contour:hover { background: var(--ml-degrade-or); color: var(--ml-noir); box-shadow: none; }

/* ---------- 6. Hero (position banner) ---------- */
/* Neutralise la hauteur de 80 % d'écran imposée par la mise en page « banner » de Cassiopeia */
.container-banner { min-height: 0; }
.container-banner .banner-overlay { height: auto !important; min-height: 0 !important; display: block; padding: 0; }
.container-banner .banner-overlay .overlay { background: none; padding: 0; height: auto; display: block; }
.container-banner .moduletable { margin: 0; }

.ml-hero {
  --ml-hero-pad: clamp(1.5rem, 4vw, 3rem);   /* marges haute et basse */
  --ml-hero-borne: 440px;                      /* hauteur max. de la borne */
  --ml-hero-logo: 130px;                       /* taille du logo circulaire */
  /*background: var(--ml-noir) url("../images/fonds/fond-paillettes-1920x1080.webp") center / cover no-repeat*/;
  padding: var(--ml-hero-pad) 1.25rem;
  text-align: center;
}
.ml-hero p { margin: 0; }
.ml-hero p:empty { display: none; }          /* paragraphes vides ajoutés par TinyMCE */
.ml-hero__grille { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.ml-hero__grille > div > p:first-child img { width: var(--ml-hero-logo); height: auto; margin-bottom: .5rem; }
.ml-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin: 0; }
.ml-hero .ml-accroche { font-size: clamp(1.2rem, 2.4vw, 1.8rem); line-height: 1.25; color: var(--ml-blanc); font-weight: 600; }
.ml-hero .ml-accroche br { display: none; }
.ml-hero .ml-accroche strong, .ml-hero .ml-accroche em { font-style: normal; }
.ml-hero .ml-script { display: block; font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.2; margin: -.1em 0 -.3em; }
.ml-hero .ml-titre-orne { font-weight: 600; margin-top: .35em; }
.ml-hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 3.25rem; }
.ml-hero .ml-bouton { margin-top: 0; }
.ml-hero__borne { max-height: var(--ml-hero-borne); width: auto; max-width: 100%; mix-blend-mode: lighten; }

@media (max-width: 900px) {
  .ml-hero { --ml-hero-borne: 300px; --ml-hero-logo: 100px; }
  .ml-hero__grille { grid-template-columns: 1fr; gap: 1rem; }
}
/*@media (max-width: 767px) {
  .ml-hero { background-image: url("../images/fonds/fond-paillettes-mobile-1080x1920.webp"); }
}*/
@media (max-width: 480px) {
  .ml-hero__borne { display: none; }
}

/* ---------- 7. Titre orné (éclats de part et d'autre) ---------- */
.ml-titre-orne { display: flex; align-items: center; justify-content: center; gap: .8em; }
.ml-titre-orne::before, .ml-titre-orne::after { content: ""; width: 1.1em; height: 1.2em; background: center / contain no-repeat; flex: none; }
.ml-titre-orne::before { background-image: url("../images/decors/eclats-gauche.svg"); }
.ml-titre-orne::after  { background-image: url("../images/decors/eclats-droite.svg"); }

/* ---------- 8. Séparateurs ---------- */
.ml-filet { height: 12px; max-width: 520px; margin: 1.5rem auto; background: url("../images/decors/filet-or.svg") center / 100% 100% no-repeat; border: 0; opacity: 1; }
.ml-filet--losange { height: 24px; background-image: url("../images/decors/filet-losange.svg"); }

/* ---------- 9. Les 3 atouts (position top-a) ---------- */
/* 3 éléments sur une ligne, ou 1 colonne : jamais de disposition 2 + 1 */
.ml-atouts { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 2.5rem 0; }
.ml-atouts > div { padding: 1rem 1.5rem; }
.ml-atouts > div + div { border-left: 1px solid rgba(217,164,58,.6); }
.ml-atouts p { text-transform: uppercase; letter-spacing: .04em; margin: .8rem 0 0; }

@media (max-width: 640px) {
  .ml-atouts { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; padding: 1.5rem 0; }
  .ml-atouts > div { padding: 1.25rem 1rem; }
  .ml-atouts > div + div { border-left: 0; border-top: 1px solid rgba(217,164,58,.4); }
}

/* ---------- 10. Bandeau coup de pinceau (position top-b) ---------- */
.ml-bandeau-pinceau {
  background: url("../images/decors/pinceau-or.svg") center / 100% 100% no-repeat;
  color: var(--ml-noir); font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase;
  text-align: center; font-size: clamp(1rem, 2.2vw, 1.5rem); line-height: 1.3;
  padding: 1.6em 3em; max-width: 1000px; margin: 2rem auto;
}

/* ---------- 11. Icônes ---------- */
/* Version <img> (compatible TinyMCE) : fichiers pré-colorés dans images/icones/or/ et images/icones/noir/ */
.ml-icone-img { display: inline-block; width: var(--ml-taille, 3.5rem); height: var(--ml-taille, 3.5rem); vertical-align: middle; }
.ml-icone-img--petite { --ml-taille: 1.6rem; }

/* Version masque CSS (<span>) : la couleur suit "color" – à utiliser avec l'éditeur CodeMirror */
.ml-icone {
  display: inline-block; width: var(--ml-taille, 3.5rem); height: var(--ml-taille, 3.5rem); background: currentColor; color: var(--ml-or);
  -webkit-mask: var(--ml-icone) center / contain no-repeat; mask: var(--ml-icone) center / contain no-repeat; vertical-align: middle;
}
.ml-icone--alliances      { --ml-icone: url("../images/icones/alliances.svg"); }
.ml-icone--appareil-photo { --ml-icone: url("../images/icones/appareil-photo.svg"); }
.ml-icone--bebe           { --ml-icone: url("../images/icones/bebe.svg"); }
.ml-icone--cadre-photo    { --ml-icone: url("../images/icones/cadre-photo.svg"); }
.ml-icone--calendrier     { --ml-icone: url("../images/icones/calendrier.svg"); }
.ml-icone--camion         { --ml-icone: url("../images/icones/camion.svg"); }
.ml-icone--coche          { --ml-icone: url("../images/icones/coche.svg"); }
.ml-icone--confettis      { --ml-icone: url("../images/icones/confettis.svg"); }
.ml-icone--eclat          { --ml-icone: url("../images/icones/eclat.svg"); }
.ml-icone--enveloppe      { --ml-icone: url("../images/icones/enveloppe.svg"); }
.ml-icone--etoile         { --ml-icone: url("../images/icones/etoile.svg"); }
.ml-icone--galerie        { --ml-icone: url("../images/icones/galerie.svg"); }
.ml-icone--gateau         { --ml-icone: url("../images/icones/gateau.svg"); }
.ml-icone--horloge        { --ml-icone: url("../images/icones/horloge.svg"); }
.ml-icone--imprimante     { --ml-icone: url("../images/icones/imprimante.svg"); }
.ml-icone--invites        { --ml-icone: url("../images/icones/invites.svg"); }
.ml-icone--localisation   { --ml-icone: url("../images/icones/localisation.svg"); }
.ml-icone--mallette       { --ml-icone: url("../images/icones/mallette.svg"); }
.ml-icone--smartphone     { --ml-icone: url("../images/icones/smartphone.svg"); }
.ml-icone--telephone      { --ml-icone: url("../images/icones/telephone.svg"); }

/* ---------- 12. Cartes événements (position bottom-a) ---------- */
.ml-evenements { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.ml-carte {
  position: relative; background: var(--ml-noir-2); border: 1px solid rgba(217,164,58,.3); border-radius: 12px;
  padding: 1.75rem 1rem; text-align: center; color: var(--ml-blanc); text-decoration: none;
}
.ml-carte:hover, .ml-carte:focus-within { border-color: var(--ml-or); color: var(--ml-blanc); }
.ml-carte h3 { font-size: 1.25rem; margin: .8rem 0 0; }
.ml-carte a { color: inherit; text-decoration: none; }
.ml-carte a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }   /* carte entièrement cliquable */

/* ---------- 13. Appel à l'action contact (position bottom-b) ---------- */
.ml-cta { /*background: var(--ml-noir) url("../images/fonds/fond-paillettes-discret-1920x1080.webp") center / cover*/; padding: 3.5rem 1.25rem; text-align: center; }
.ml-cta .ml-numero { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--ml-or); text-decoration: none; letter-spacing: .03em; }

/* ---------- 14. Serpentins décoratifs (classe ml-deco sur une section) ---------- */
.ml-deco { position: relative; overflow: hidden; }
.ml-deco::before, .ml-deco::after { content: ""; position: absolute; pointer-events: none; background: center / contain no-repeat; }
.ml-deco::before { top: -30px; left: -20px; width: 110px; height: 190px; background-image: url("../images/decors/serpentin-court.svg"); transform: rotate(-15deg); }
.ml-deco::after  { top: -20px; right: -10px; width: 90px; height: 300px; background-image: url("../images/decors/serpentin-vertical.svg"); transform: rotate(10deg); }
/* Dans le hero : si la photo de la borne est présente, le serpentin de droite passe en bas à gauche */
.ml-hero.ml-deco:has(.ml-hero__borne)::after { top: auto; right: auto; bottom: -50px; left: 30px; width: 95px; height: 170px;
  background-image: url("../images/decors/serpentin-court.svg"); transform: rotate(25deg); }
@media (max-width: 767px) {
  .ml-deco::before, .ml-deco::after { opacity: .5; }
}

/* ---------- 15. Bouton d'appel flottant (mobile) ---------- */
.ml-appel-mobile { display: none; }
@media (max-width: 767px) {
  .ml-appel-mobile {
    display: flex; align-items: center; justify-content: center; position: fixed; right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: 3.6rem; height: 3.6rem; border-radius: 50%;
    background: var(--ml-degrade-or); z-index: 1030; box-shadow: 0 4px 14px rgba(0,0,0,.5);
  }
  .ml-appel-mobile .ml-icone, .ml-appel-mobile .ml-icone-img { --ml-taille: 1.8rem; color: var(--ml-noir); }
}

/* ---------- 16. Pied de page (module Personnalisé, position footer, style System-none) ---------- */
.ml-footer { width: 100%; color: var(--ml-gris); font-size: .95rem; }
.ml-footer__colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.ml-footer h3 { font-size: 1.05rem; letter-spacing: .08em; margin: 0 0 1rem; }
.ml-footer p { margin: 0 0 .6rem; }
.ml-footer a { color: var(--ml-blanc); text-decoration: none; }
.ml-footer a:hover, .ml-footer a:focus { color: var(--ml-or); }
.ml-footer a.ml-bouton, .ml-footer a.ml-bouton:hover { color: var(--ml-noir); }
.ml-footer__logo { max-width: 260px; height: auto; margin-bottom: 0; }
.ml-footer__tel { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: .03em; }
.ml-footer__tel a { color: var(--ml-or); }

/* Bouton Instagram : icône Font Awesome (déjà chargé par Cassiopeia), sans balise vide */
.ml-reseau {
  display: inline-flex; align-items: center; gap: .6em; padding: .55em 1.2em; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ml-or); color: var(--ml-or) !important; font-weight: 600;
}
.ml-reseau:hover, .ml-reseau:focus { background: var(--ml-degrade-or); color: var(--ml-noir) !important; box-shadow: none; }
.ml-reseau--instagram::before { content: "\f16d"; font-family: "Font Awesome 6 Brands"; font-weight: 400; font-size: 1.3em; line-height: 1; }

.ml-footer__bas {
  border-top: 1px solid rgba(217,164,58,.35); padding: 1.2rem 0; font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between;
}
.ml-footer__bas p { margin: 0; }
.ml-footer__legal a { display: inline-block; white-space: nowrap; color: var(--ml-gris); margin-right: 1.2rem; }

@media (max-width: 900px) {
  .ml-footer__colonnes { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .ml-footer__bas { justify-content: center; text-align: center; }
  .ml-footer__legal a { margin: 0 .6rem; }
}
@media (max-width: 767px) { .ml-footer { padding-bottom: 1rem; } }   

/* ---------- 17. Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 18. Pages de contenu (articles Joomla) ---------- */
.ml-page { max-width: 1100px; margin: 0 auto; padding-bottom: 2rem; }
.ml-page h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 3rem 0 1rem; }
.ml-page h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.ml-page p { margin: 0 0 1rem; }
.ml-intro { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #E8E8E8; max-width: 780px; }
.ml-centre { text-align: center; }
.ml-centre.ml-intro, .ml-centre .ml-intro { margin-left: auto; margin-right: auto; }

/* Texte + image */
.ml-deux-colonnes { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; margin: 1.5rem 0; }
.ml-deux-colonnes--inverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .ml-deux-colonnes { grid-template-columns: 1fr; gap: 1.5rem; }
  .ml-deux-colonnes--inverse > :first-child { order: 0; }
}
.ml-photo { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(217,164,58,.45); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ml-photo--portrait { max-width: 420px; margin: 0 auto; }

/* Liste à coches dorées */
.ml-liste { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ml-liste li { position: relative; padding-left: 2rem; margin: .55rem 0; }
.ml-liste li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.3rem; height: 1.3rem;
  background: url("../images/icones/or/coche.svg") center / contain no-repeat; }

/* Étapes numérotées */
.ml-etapes { list-style: none; counter-reset: etape; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ml-etapes li { counter-increment: etape; background: var(--ml-noir-2); border: 1px solid rgba(217,164,58,.3); border-radius: 12px; padding: 1.5rem 1.2rem; }
.ml-etapes li::before { content: counter(etape); display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; background: var(--ml-degrade-or); color: var(--ml-noir); font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: .8rem; }
.ml-etapes strong { display: block; color: var(--ml-or); font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .3rem; }
.ml-etapes--3 { grid-template-columns: repeat(3, 1fr); }
.ml-etapes--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .ml-etapes, .ml-etapes--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ml-etapes, .ml-etapes--3, .ml-etapes--5 { grid-template-columns: 1fr; } }

/* Formules */
.ml-formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; align-items: stretch; }
@media (max-width: 860px) { .ml-formules { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }
.ml-formule { position: relative; background: var(--ml-noir-2); border: 1px solid rgba(217,164,58,.35); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; display: flex; flex-direction: column; }
.ml-formule h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.ml-formule .ml-prix { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--ml-or); margin: .5rem 0 .2rem; }
.ml-formule .ml-prix-detail { color: var(--ml-gris); font-size: .95rem; }
.ml-formule .ml-liste { text-align: left; margin: 1.2rem 0 1.5rem; }
.ml-formule .ml-bouton { margin-top: auto; }
.ml-formule--vedette { border: 2px solid var(--ml-or); box-shadow: 0 0 30px rgba(217,164,58,.18); }
.ml-badge { display: inline-block; align-self: center; background: var(--ml-degrade-or); color: var(--ml-noir); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; padding: .3em 1em; border-radius: 999px; margin: 0 0 1rem !important; }

/* Encart d'information */
.ml-encart { background: var(--ml-noir-2); border-left: 4px solid var(--ml-or); border-radius: 8px; padding: 1.2rem 1.5rem; margin: 1.5rem 0; }
.ml-encart p:last-child, .ml-encart ul:last-child { margin-bottom: 0; }

/* Tableau */
.ml-tableau-conteneur { overflow-x: auto; margin: 1rem 0 1.5rem; }
.ml-tableau { width: 100%; border-collapse: collapse; min-width: 420px; }
.ml-tableau th, .ml-tableau td { padding: .8rem 1rem; border-bottom: 1px solid rgba(217,164,58,.25); text-align: left; }
.ml-tableau th { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--ml-or); font-weight: 600; }

/* Galerie d'exemples */
.ml-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.ml-galerie > div { margin: 0; }
.ml-galerie img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(217,164,58,.3); }
.ml-legende { font-size: .9rem; color: var(--ml-gris); text-align: center; margin: .5rem 0 0 !important; }

/* Coordonnées (page contact) */
.ml-coordonnees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0; }
.ml-coordonnees > div { background: var(--ml-noir-2); border: 1px solid rgba(217,164,58,.3); border-radius: 12px; padding: 1.5rem; text-align: center; }
.ml-coordonnees p { margin: .4rem 0 0; }
.ml-coordonnees .ml-grand { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.5rem; }
.ml-coordonnees a { text-decoration: none; }
@media (max-width: 860px) { .ml-coordonnees { grid-template-columns: 1fr; } }

/* Bandeau d'appel en fin de page */
.ml-page .ml-cta { border-radius: 16px; margin-top: 3rem; }
.ml-page .ml-cta h2 { margin-top: 0; }

/* Pages juridiques */
.ml-legal { max-width: 820px; margin: 0 auto; color: #DDDDDD; margin-bottom: 4em;}
.ml-legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.ml-legal h3 { font-size: 1.05rem; }
.ml-legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.ml-legal li { margin: .3rem 0; }
.ml-legal .ml-maj { color: var(--ml-gris); font-size: .9rem; }
.ml-a-completer { background: rgba(217,164,58,.18); color: var(--ml-or-clair); padding: 0 .3em; border-radius: 3px; }

/* Titre d'article Joomla dans le thème */
.com-content-article .page-header h1, .com-content-article > h1 { text-align: center; font-size: clamp(2rem, 5vw, 3.2rem); margin: 2rem 0 1rem; }
.ml-formule > p:last-child { margin: auto 0 0; }   /* boutons alignés en bas des cartes */
.ml-galerie--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .ml-galerie--2 { grid-template-columns: 1fr; } }

/* ---------- Médaillon « Votre interlocuteur » (page Contact) ---------- */
.ml-interlocuteur { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center;
  background: var(--ml-noir-2); border: 1px solid rgba(217,164,58,.3); border-radius: 16px; padding: 2rem 2.5rem; margin: 2.5rem 0; }
.ml-portrait { position: relative; width: 230px; aspect-ratio: 1; margin: 0 !important; }
.ml-portrait img { position: absolute; inset: 7.5%; width: 85%; height: 85%; object-fit: cover; border-radius: 50%; }
.ml-portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../images/logos/medaillon-portrait.svg") center / contain no-repeat; }
.ml-interlocuteur h2 { margin: 0 0 .8rem; }
.ml-interlocuteur .ml-signature { font-family: "Great Vibes", cursive; font-size: 2.2rem; color: var(--ml-or); margin: .5rem 0 0; line-height: 1.2; }
@media (max-width: 760px) {
  .ml-interlocuteur { grid-template-columns: 1fr; text-align: center; padding: 1.75rem 1.25rem; gap: 1.25rem; }
  .ml-portrait { width: 190px; margin: 0 auto !important; }
}

/* ---------- 19. Petits écrans : boutons et bandeau pinceau sur une seule ligne ---------- */
@media (max-width: 640px) {
  .btn-primary, .ml-bouton {
    font-size: clamp(.72rem, 3.3vw, .9rem);
    letter-spacing: .02em;
    padding: .8em 1.3em;
    max-width: 100%;
    text-wrap: balance;   /* si un texte très long doit malgré tout passer sur 2 lignes, il se répartit proprement */
  }
  .ml-bandeau-pinceau {
    font-size: clamp(.68rem, 3.3vw, 1rem);
    letter-spacing: 0;
    padding: 1.3em 1em;
    margin: 1.5rem auto;
  }
}

/* =========================================================
   21. COULEUR DES CADRES – une seule variable pour tout le site
   Pour changer de couleur : modifiez uniquement --ml-cadre-haut et --ml-cadre-bas.
   ========================================================= */
:root {
  --ml-cadre-haut: #330000;   
  --ml-cadre-bas:  #161616;   
  --ml-cadre-bord: rgba(217, 164, 58, .5);
  --ml-cadre-fond: linear-gradient(160deg, var(--ml-cadre-haut) 0%, var(--ml-cadre-bas) 100%);

  /* Autres couleurs possibles (copiez les deux valeurs à la place de celles ci-dessus) :
     Bordeaux  		: #281A1E / #281A1E
     Reflet doré    : #262014 / #161616
     Noir  			: #161616 / #161616
	#d9a43a59*/
}

/* Tous les cadres du site */
.ml-carte,
.ml-formule,
.ml-interlocuteur,
.ml-coordonnees > div,
.ml-encart,
.ml-etapes li,
.mlm-carte {
  background: var(--ml-cadre-fond);
  border-color: var(--ml-cadre-bord);
}
.ml-encart { border-left-color: var(--ml-or); }            /* le filet doré de gauche reste or */
.ml-formule--vedette { border-color: var(--ml-or); }       /* la formule mise en avant garde son contour or */

/* Effet au survol des cadres cliquables */
.ml-carte, .mlm-carte { transition: transform .2s ease, box-shadow .2s ease; }
.ml-carte:hover, .ml-carte:focus-within, .mlm-carte:hover, .mlm-carte:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), 0 0 0 1px var(--ml-or);
}
@media (prefers-reduced-motion: reduce) {
  .ml-carte:hover, .mlm-carte:hover { transform: none; }
}

/* =========================================================
   22. COULEUR DE L'EN-TÊTE ET DU PIED DE PAGE – réglage unique
   Modifiez uniquement les 4 variables ci-dessous.
   ========================================================= */
:root {
  --ml-entete-fond: #330000;                      /* fond de l'en-tête et du pied de page */
  --ml-entete-texte: #FFFFFF;                     /* menu et liens */
  --ml-entete-texte-doux: #BDBDBD;                /* textes secondaires du pied de page */
  --ml-entete-bord: rgba(217, 164, 58, .35);      /* filet doré de séparation */

  /* Exemples (remplacez les 3 premières valeurs) :
     Noir           : #0B0B0B / #FFFFFF / #BDBDBD
     Bordeaux       : #281A1E / #FFFFFF / #BDBDBD   
     Reflet doré    : #262014 / #FFFFFF / #BDBDBD */
}

/* En-tête */
.container-header, .container-topbar {
  background: var(--ml-entete-fond);
  background-image: none;
  color: var(--ml-entete-texte-doux);
}
.container-header { border-bottom: 1px solid var(--ml-entete-bord); }
.container-header .mod-menu > li > a,
.container-header .metismenu > li > a { color: var(--ml-entete-texte); }
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li > a:hover,
.container-header .metismenu > li > a:hover { color: var(--ml-or); }
.container-header .metismenu .mm-collapse,
.container-header .metismenu > li > ul { background: var(--ml-entete-fond); }   /* sous-menus */
.container-header .navbar-toggler { color: var(--ml-entete-texte); border-color: var(--ml-entete-bord); }

/* Pied de page */
.container-footer.footer, .footer {
  background: var(--ml-entete-fond);
  border-top: 1px solid var(--ml-entete-bord);
  color: var(--ml-entete-texte-doux);
}
.ml-footer, .ml-footer p { color: var(--ml-entete-texte-doux); }
.ml-footer a { color: var(--ml-entete-texte); }
.ml-footer a:hover, .ml-footer a:focus { color: var(--ml-or); }
.ml-footer__tel a { color: var(--ml-or); }
.ml-footer__bas { border-top-color: var(--ml-entete-bord); }
.ml-footer__legal a { color: var(--ml-entete-texte-doux); }
.ml-footer a.ml-bouton, .ml-footer a.ml-bouton:hover { color: var(--ml-noir); }

/* ---------- 23. Menu burger (petits écrans) ---------- */
@media (max-width: 991.98px) {
  .container-header .navbar-toggler {
    color: var(--ml-or); background: transparent; border: 1px solid var(--ml-entete-bord);
    border-radius: 8px; padding: .45rem .7rem; font-size: 1.4rem; line-height: 1;
  }
  .container-header .navbar-toggler:focus-visible { outline: 2px solid var(--ml-or); outline-offset: 2px; }
  .container-header .navbar-collapse { background: var(--ml-entete-fond); border-top: 1px solid var(--ml-entete-bord); margin-top: .6rem; padding: .4rem 0; }
  .container-header .metismenu > li > a { display: block; padding: .75rem .25rem; border-bottom: 1px solid var(--ml-entete-bord); }
  .container-header .metismenu > li:last-child > a { border-bottom: 0; }
}

/* ---------- 24. Burger en haut à droite, sur la ligne du logo ---------- */
@media (max-width: 991.98px) {
  .container-header { display: flex; flex-wrap: wrap; align-items: center; }
  .container-header > * { flex: 0 0 100%; }                          /* barre du haut, etc. : pleine largeur */
  .container-header > .grid-child:not(.container-nav) { flex: 1 1 0; min-width: 0; width: auto; margin: 0; }   /* logo à gauche */
  .container-header > .container-nav { flex: 0 0 auto; width: auto; margin: 0 0 0 auto; padding: 0 1rem 0 .5rem; }   /* burger à droite */
  .container-header .navbar { position: static; padding: 0; }
  .container-header .metismenu, .container-header .metismenu > li { width: 100%; display: block; }
  /* Le menu ouvert se déploie sous l'en-tête, sur toute la largeur */
  .container-header .navbar-collapse {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 1030;
    margin-top: 0; padding: .4rem 1.25rem 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
  }
}

/* ---------- 25. Pied de page : marges de Cassiopeia ajustées ---------- */
.footer .grid-child {
  padding: 0 1.25rem;         /* plus de double marge en haut et en bas ; 20 px sur les côtés */
  align-items: stretch;       /* le module occupe toute la largeur */
}
.container-footer.footer, .footer { margin-top: 0; }   /* supprime l'espace que Cassiopeia laisse au-dessus du pied de page */

/* ---------- 26. Menu burger ouvert : version compacte ---------- */
@media (max-width: 991.98px) {
  .container-header .navbar-collapse { padding: .25rem 1.25rem .5rem; }
  .container-header .metismenu > li { padding: 0; margin: 0; }                 /* annule l'espacement de Cassiopeia */
  .container-header .metismenu > li > a {
    padding: .65rem 0;
    font-size: .95rem;
    line-height: 1.3;
    letter-spacing: .05em;
  }
}

/* =========================================================
   27. SLIDER D'EXEMPLES DE DÉCORS (100 % CSS, compatible TinyMCE)
   4 décors, défilement automatique toutes les 5 s, pause au survol.
   Pour changer la vitesse : modifiez --ml-slider-duree (durée d'un tour complet = 4 décors).
   ========================================================= */
.ml-slider {
  --ml-slider-duree: 20s;
  position: relative; overflow: hidden; max-width: 900px; margin: 1.5rem auto 2rem;
  border-radius: 14px; border: 1px solid var(--ml-cadre-bord, rgba(217,164,58,.5));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.ml-slider__piste { display: flex; width: 500%; animation: ml-slider-defile var(--ml-slider-duree) infinite; }
.ml-slider__diapo { flex: 0 0 20%; position: relative; margin: 0; }
.ml-slider__diapo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ml-slider__legende {
  margin: 0 !important; padding: .8rem 1rem;
  background: var(--ml-cadre-bas, #161616); color: #fff; text-align: center;   /* légende sous l'image, sans masquer le décor */
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(.85rem, 2vw, 1.05rem);
}
.ml-slider__points { position: absolute; top: .9rem; right: 1rem; display: flex; gap: .4rem; margin: 0 !important; }
.ml-slider__point {
  width: .65rem; height: .65rem; border-radius: 50%; background: rgba(255, 255, 255, .45);
  font-size: 0; line-height: 0; overflow: hidden; color: transparent;
  animation: ml-slider-point var(--ml-slider-duree) infinite;
}
.ml-slider__point:nth-child(2) { animation-delay: calc(var(--ml-slider-duree) / 4); }
.ml-slider__point:nth-child(3) { animation-delay: calc(var(--ml-slider-duree) / 2); }
.ml-slider__point:nth-child(4) { animation-delay: calc(var(--ml-slider-duree) * 3 / 4); }
.ml-slider:hover .ml-slider__piste, .ml-slider:hover .ml-slider__point { animation-play-state: paused; }

@keyframes ml-slider-defile {
  0%, 20%  { transform: translateX(0); }
  25%, 45% { transform: translateX(-20%); }
  50%, 70% { transform: translateX(-40%); }
  75%, 95% { transform: translateX(-60%); }
  100%     { transform: translateX(-80%); }   /* 5e diapo = copie de la 1re : la boucle est invisible */
}
@keyframes ml-slider-point {
  0%, 24%   { background: var(--ml-or); transform: scale(1.25); }
  25%, 100% { background: rgba(255, 255, 255, .45); transform: none; }
}

/* Mouvement réduit demandé par le visiteur : pas d'animation, défilement au doigt */
@media (prefers-reduced-motion: reduce) {
  .ml-slider { overflow-x: auto; scroll-snap-type: x mandatory; }
  .ml-slider__piste { animation: none; }
  .ml-slider__diapo { scroll-snap-align: start; }
  .ml-slider__diapo[aria-hidden="true"], .ml-slider__points { display: none; }
  .ml-slider__piste { width: 400%; }
  .ml-slider__diapo { flex-basis: 25%; }
}

/* ---------- 28. Slider : flèches et points cliquables (avec js/user.js) ---------- */
.ml-slider--js .ml-slider__piste { animation: none; transition: transform .7s ease; }
.ml-slider--js .ml-slider__point {
  animation: none; border: 0; padding: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.ml-slider--js .ml-slider__point[aria-current="true"] { background: var(--ml-or); transform: scale(1.25); }
.ml-slider__fleche {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55); color: var(--ml-or); border: 1.5px solid var(--ml-or); cursor: pointer;
  transition: background .2s, color .2s;
}
.ml-slider__fleche--prec { left: .8rem; }
.ml-slider__fleche--suiv { right: .8rem; }
.ml-slider__fleche:hover, .ml-slider__fleche:focus-visible { background: var(--ml-or); color: var(--ml-noir); }
.ml-slider__fleche:focus-visible, .ml-slider__point:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .ml-slider__fleche { width: 2.2rem; height: 2.2rem; }
  .ml-slider__fleche--prec { left: .4rem; }
  .ml-slider__fleche--suiv { right: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-slider--js { overflow: hidden; scroll-snap-type: none; }
  .ml-slider--js .ml-slider__points { display: flex; }
  .ml-slider--js .ml-slider__piste { transition: none; }
}

/* ---------- 29. Quatre formules et lien Facebook ---------- */
/* 4 formules : 4 colonnes sur grand écran, 2 × 2 sur tablette, 1 colonne sur téléphone */
.ml-formules { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.ml-formule { padding: 1.75rem 1.1rem; }
.ml-formule .ml-prix { font-size: 2.8rem; }
@media (max-width: 1100px) { .ml-formules { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; } }
@media (max-width: 600px)  { .ml-formules { grid-template-columns: 1fr; max-width: 420px; } }

/* Boutons réseaux sociaux du pied de page */
.ml-reseaux { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 900px) { .ml-reseaux { justify-content: center; } }
.ml-reseau--facebook::before { content: "\f09a"; font-family: "Font Awesome 6 Brands"; font-weight: 400; font-size: 1.3em; line-height: 1; }

/* ---------- 30. Slider alimenté par un dossier (plugin « Slider de décors ») ---------- */
.ml-slider { --ml-slider-pause: 5s; }                 /* durée d'affichage de chaque décor (avec user.js) */
/* Sans JavaScript : pas d'animation, défilement au doigt ou à la molette */
.ml-slider--dossier { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ml-slider--dossier::-webkit-scrollbar { display: none; }
.ml-slider--dossier .ml-slider__piste { animation: none; width: auto; }
.ml-slider--dossier .ml-slider__diapo { flex: 0 0 100%; scroll-snap-align: start; }
/* Avec user.js : le script prend la main (flèches, points, défilement automatique) */
.ml-slider--dossier.ml-slider--js { overflow: hidden; scroll-snap-type: none; }

/* ---------- 31. Boutons : texte lisible au clic et au focus ---------- */
.btn-primary, .ml-bouton {
  --btn-color: var(--ml-noir); --btn-hover-color: var(--ml-noir);
  --btn-active-color: var(--ml-noir); --btn-active-bg: transparent; --btn-active-border-color: transparent;
}
a.ml-bouton:focus, a.ml-bouton:active, a.ml-bouton:visited,
.btn-primary:focus, .btn-primary:active, .btn-primary:focus-visible,
.ml-footer a.ml-bouton:focus, .ml-footer a.ml-bouton:active { color: var(--ml-noir); }
.ml-bouton:active, .btn-primary:active { filter: brightness(.95); }

a.ml-bouton--contour:focus, a.ml-bouton--contour:visited { color: var(--ml-or); }
a.ml-bouton--contour:hover, a.ml-bouton--contour:active, a.ml-bouton--contour:focus:hover {
  background: var(--ml-degrade-or); color: var(--ml-noir); box-shadow: none;
}

/* ---------- 33. Titres ornés : une seule ligne sur petit écran ---------- */
@media (max-width: 640px) {
  h2.ml-titre-orne, .ml-page h2.ml-titre-orne {
    font-size: clamp(1.05rem, 5.2vw, 1.5rem);
    gap: .45em;
    letter-spacing: .01em;
  }
  .ml-titre-orne::before, .ml-titre-orne::after { width: .9em; height: 1em; }
}