/* Article multilang (pages 228-232) — barre drapeaux + lecteur audio + reader */

#article-ml-bar{max-width:720px;margin:0 auto 20px;}

/* Sélecteur de langue (drapeaux) */
.article-ml-lang-switcher{
  display:flex;gap:6px;margin:0 0 20px;padding:10px 12px;
  background:var(--cream);border:1px solid var(--border);border-radius:var(--r-md);
  flex-wrap:wrap;align-items:center;
}
.article-ml-lang-switcher-label{
  font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;
  color:var(--text-light);margin-right:6px;font-weight:500;
}
.article-ml-lang-switcher .lang-btn{
  background:none;border:2px solid transparent;border-radius:6px;
  padding:4px 7px;cursor:pointer;font-size:1.35rem;line-height:1;
  transition:border-color .15s,opacity .15s,background .15s;opacity:.55;
}
/* Taille fixe : emoji, lettres (Windows) ou image WordPress (wp-emoji) occupent la même place → pas de décalage (CLS, 2026-10-11) */
.article-ml-lang-switcher .lang-btn{
  width:42px;height:36px;padding:0;flex:0 0 auto;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;
}
.article-ml-lang-switcher .lang-btn img.emoji{margin:0!important;}
.article-ml-lang-switcher .lang-btn:hover{opacity:1;background:rgba(0,0,0,.03);}
.article-ml-lang-switcher .lang-btn.active{
  border-color:var(--gold);opacity:1;background:var(--white);
}

/* Zone reader non-FR */
#article-ml-reader{max-width:720px;margin:0 auto;padding:0 16px 40px;}
#article-ml-title{
  font-family:'Cormorant Garamond',serif;font-size:2rem;font-weight:700;
  color:var(--navy);line-height:1.3;
  max-width:720px;margin:0 auto 20px;padding:0 16px 16px;
  border-bottom:2px solid var(--gold);display:block;
}
.article-ml-content{font-size:.95rem;line-height:1.8;color:var(--text);}
.article-ml-content[dir="rtl"]{text-align:right;direction:rtl;}
.article-ml-content[dir="rtl"] h3,
.article-ml-content[dir="rtl"] h4{text-align:right;}
.article-ml-content[dir="rtl"] h4{padding-left:0;padding-right:16px;border-left:none;border-right:4px solid var(--gold);}
.article-ml-content[dir="rtl"] ul,.article-ml-content[dir="rtl"] ol{padding-left:0;padding-right:24px;}
.article-ml-content[dir="rtl"] ul>li::before{left:auto;right:-18px;}
.article-ml-content[dir="rtl"] blockquote{border-left:none;border-right:4px solid var(--gold);border-radius:var(--r-sm) 0 0 var(--r-sm);}

.article-ml-content h2{
  font-family:'Cormorant Garamond',serif;font-size:1.7rem;font-weight:700;color:var(--navy);
  margin:32px 0 16px;
}
.article-ml-content h3{
  font-size:.88rem;text-transform:uppercase;letter-spacing:.08em;
  color:var(--navy);font-weight:700;
  margin:36px 0 20px;padding:12px 0;
  border-top:2px solid var(--border);border-bottom:1px solid var(--border);
}
.article-ml-content h3:first-child{border-top:none;margin-top:0;}
.article-ml-content h4{
  font-family:'Cormorant Garamond',serif;
  font-size:1.4rem;font-weight:700;color:var(--navy);
  margin:28px 0 14px;padding-left:16px;
  border-left:4px solid var(--gold);
}
.article-ml-content p{margin:0 0 14px;color:var(--text);}
.article-ml-content strong{color:var(--navy);font-weight:600;}
.article-ml-content ul,.article-ml-content ol{margin:0 0 20px;padding-left:24px;display:flex;flex-direction:column;gap:6px;}
.article-ml-content ul{list-style:none;}
.article-ml-content ol{list-style:decimal;padding-left:28px;}
.article-ml-content li{position:relative;padding:0;font-size:.9rem;line-height:1.65;}
.article-ml-content ul>li::before{content:"•";position:absolute;left:-18px;top:0;color:var(--navy);font-weight:700;font-size:1.1rem;line-height:1.5;}
.article-ml-content ol>li::marker{color:var(--navy);font-weight:600;}
.article-ml-content blockquote{margin:20px 0;padding:16px 20px;background:rgba(196,152,58,.08);border-left:4px solid var(--gold);border-radius:0 var(--r-sm) var(--r-sm) 0;font-style:italic;color:var(--text-mid);}
.article-ml-content a{color:var(--navy);text-decoration:underline;text-underline-offset:2px;}
.article-ml-content a:hover{color:var(--gold);}

/* Contenu FR natif (.seo-page) — mêmes règles que .article-ml-content */
#article-ml-fr-content{max-width:720px;margin:0 auto;padding:0 16px 40px;}
#article-ml-fr-content .seo-page{font-size:.95rem;line-height:1.8;color:var(--text);}
#article-ml-fr-content .seo-page h1{
  font-family:'Cormorant Garamond',serif;font-size:2rem;font-weight:700;
  color:var(--navy);line-height:1.3;
  padding-bottom:16px;border-bottom:2px solid var(--gold);margin:0 0 20px;
}
#article-ml-fr-content .seo-page h2{
  font-family:'Cormorant Garamond',serif;font-size:1.7rem;font-weight:700;color:var(--navy);
  margin:32px 0 16px;
}
#article-ml-fr-content .seo-page h3{
  font-size:.88rem;text-transform:uppercase;letter-spacing:.08em;
  color:var(--navy);font-weight:700;
  margin:36px 0 20px;padding:12px 0;
  border-top:2px solid var(--border);border-bottom:1px solid var(--border);
  font-family:'DM Sans',system-ui,sans-serif;
}
#article-ml-fr-content .seo-page h3:first-child{border-top:none;margin-top:0;}
#article-ml-fr-content .seo-page h4{
  font-family:'Cormorant Garamond',serif;
  font-size:1.4rem;font-weight:700;color:var(--navy);
  margin:28px 0 14px;padding-left:16px;
  border-left:4px solid var(--gold);
}
#article-ml-fr-content .seo-page p{margin:0 0 14px;color:var(--text);}
#article-ml-fr-content .seo-page strong{color:var(--navy);font-weight:600;}
#article-ml-fr-content .seo-page ul,
#article-ml-fr-content .seo-page ol{margin:0 0 20px;padding-left:24px;display:flex;flex-direction:column;gap:6px;}
#article-ml-fr-content .seo-page ul{list-style:none;}
#article-ml-fr-content .seo-page ol{list-style:decimal;padding-left:28px;}
#article-ml-fr-content .seo-page li{position:relative;padding:0;font-size:.9rem;line-height:1.65;}
#article-ml-fr-content .seo-page ul>li::before{content:"•";position:absolute;left:-18px;top:0;color:var(--navy);font-weight:700;font-size:1.1rem;line-height:1.5;}
#article-ml-fr-content .seo-page ol>li::marker{color:var(--navy);font-weight:600;}
#article-ml-fr-content .seo-page blockquote{margin:20px 0;padding:16px 20px;background:rgba(196,152,58,.08);border-left:4px solid var(--gold);border-radius:0 var(--r-sm) var(--r-sm) 0;font-style:italic;color:var(--text-mid);}
#article-ml-fr-content .seo-page a{color:var(--navy);text-decoration:underline;text-underline-offset:2px;}
#article-ml-fr-content .seo-page a:hover{color:var(--gold);}

/* Audio player (même look que guide) */
#article-ml-audio-player{
  display:none;align-items:center;gap:10px;
  margin:0 auto 24px;max-width:720px;
  padding:10px 14px;
  background:var(--cream);border:1px solid var(--border);
  border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.06);
}
#article-ml-audio-player .ap-label{display:flex;align-items:center;gap:5px;font-size:.7rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.07em;color:var(--text-light);
  white-space:nowrap;flex-shrink:0;}
#article-ml-playpause{
  width:40px;height:40px;flex-shrink:0;border:none;border-radius:50%;
  background:var(--navy);color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s,transform .1s;
}
#article-ml-playpause:hover{background:var(--gold);}
#article-ml-playpause:active{transform:scale(.9);}
#article-ml-playpause svg{width:16px;height:16px;fill:#fff;}
#article-ml-playpause.ap-loading{opacity:.55;cursor:default;pointer-events:none;}
#article-ml-stop{
  width:30px;height:30px;flex-shrink:0;border:1.5px solid var(--border);
  border-radius:50%;background:transparent;color:var(--text-light);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all .15s;
}
#article-ml-stop:hover{border-color:var(--navy);color:var(--navy);}
#article-ml-stop svg{width:11px;height:11px;fill:currentColor;}
#article-ml-prog-wrap{
  flex:1;height:5px;background:rgba(0,0,0,.1);border-radius:3px;
  cursor:pointer;position:relative;transition:height .15s;
}
#article-ml-prog-wrap:hover{height:8px;}
#article-ml-prog-fill{
  height:100%;background:var(--gold);border-radius:3px;width:0%;
  transition:width .35s linear;position:relative;pointer-events:none;
}
#article-ml-prog-wrap .ap-time{font-size:.72rem;font-family:monospace;color:var(--text-light);
  white-space:nowrap;flex-shrink:0;min-width:80px;text-align:right;}
#article-ml-audio-player .ap-time{font-size:.72rem;font-family:monospace;color:var(--text-light);
  white-space:nowrap;flex-shrink:0;min-width:80px;text-align:right;}
#article-ml-audio-player .ap-time b{color:var(--text);font-weight:400;}
#article-ml-speed{
  flex-shrink:0;padding:3px 10px;border:1.5px solid var(--border);
  border-radius:20px;background:#fff;color:var(--navy);
  font-size:.72rem;font-weight:700;cursor:pointer;transition:all .15s;
  white-space:nowrap;
}
#article-ml-speed:hover{border-color:var(--navy);background:var(--navy);color:#fff;}
#article-ml-audio-missing{
  display:none;max-width:720px;margin:0 auto 24px;padding:10px 14px;
  background:var(--cream);border:1px dashed var(--border);border-radius:12px;
  font-size:.82rem;color:var(--text-light);text-align:center;
}

/* États d'affichage FR natif vs traduit */
body.article-ml-translated #article-ml-fr-content{display:none;}
body.article-ml-translated #article-ml-reader{display:block;}
#article-ml-reader{display:none;}

@media(max-width:640px){
  #article-ml-title{font-size:1.5rem;}
  .article-ml-content h4{font-size:1.25rem;}
  .article-ml-content{font-size:.9rem;}
  #article-ml-fr-content .seo-page h1{font-size:1.5rem;}
  #article-ml-fr-content .seo-page h4{font-size:1.25rem;}
  #article-ml-fr-content .seo-page{font-size:.9rem;}
  #article-ml-audio-player{flex-wrap:wrap;gap:8px;}
  #article-ml-audio-player .ap-label{display:none;}
  #article-ml-prog-wrap{flex-basis:100%;order:10;height:6px;}
  #article-ml-audio-player .ap-time{min-width:auto;}
}
