:root{
  --rouge:#FF0000;
  --rouge-dark:#D40000;
  --rouge-glow:rgba(255,0,0,.18);
  --asphalte:#14171C;
  --acier:#232833;
  --acier-2:#2B3140;
  --papier:#F6F4EC;
  --carte:#FFFFFF;
  --ligne:#E3DFD2;
  --mute:#6B7280;
  --texte:#1C1F26;
  --vert:#3F9142;
  --vert-clair:#EAF5EB;
  --orange-clair:#FBE8E0;
  --radius:14px;
  --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(20,23,28,.04);
  --shadow-md:0 1px 2px rgba(20,23,28,.04), 0 8px 24px rgba(20,23,28,.06);
  --shadow-lg:0 4px 10px rgba(20,23,28,.06), 0 16px 40px rgba(20,23,28,.10);
  --ease:cubic-bezier(.4,0,.2,1);
}

/* ---------- Mode sombre ---------- */
html[data-theme="dark"]{
  --papier:#0F1115;
  --carte:#1A1D23;
  --ligne:#2A2E37;
  --mute:#9AA0AC;
  --texte:#F1F1F3;
  --vert-clair:#12261A;
  --orange-clair:#2E1712;
  --shadow-sm:0 1px 2px rgba(0,0,0,.3);
  --shadow-md:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 4px 10px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.45);
}
html[data-theme="dark"] .card{ border-color:var(--ligne); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea{
  background:#12141A; border-color:var(--ligne); color:var(--texte);
}
html[data-theme="dark"] .btn.ghost{ border-color:var(--ligne); }
html[data-theme="dark"] .tag.mute{ background:#22252B; }

*{box-sizing:border-box;}
html,body{ height:100%; }
html{ color-scheme:light; }
html[data-theme="dark"]{ color-scheme:dark; }
body{
  margin:0; font-family:'Work Sans', Arial, sans-serif; background:var(--papier); color:var(--texte);
  -webkit-font-smoothing:antialiased; transition:background .25s var(--ease), color .25s var(--ease);
}
h1,h2,h3,.disp{ font-family:'Barlow Condensed', sans-serif; font-weight:700; letter-spacing:0.01em; line-height:1.08; }
.mono{ font-family:'IBM Plex Mono', monospace; }
a{ color:var(--rouge-dark); text-decoration:none; transition:color .15s var(--ease); }
a:hover{ text-decoration:underline; }

::selection{ background:var(--rouge); color:#fff; }

/* ---------- Animation d'entrée douce ---------- */
@keyframes fadeSlideIn{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}
.wrap{ max-width:980px; margin:0 auto; padding:36px 32px 60px; width:100%; animation:fadeSlideIn .45s var(--ease) both; }
.wrap.full{ max-width:none; }

/* ---------- App shell: left icon rail + main column ---------- */
.shell{ display:flex; min-height:100vh; }

.rail{
  width:84px; flex-shrink:0; background:var(--asphalte);
  display:flex; flex-direction:column; align-items:center; padding:20px 0 12px; gap:6px;
  position:sticky; top:0; height:100vh; overflow-y:auto; scrollbar-width:none; -ms-overflow-style:none;
}
.rail::-webkit-scrollbar{ display:none; }
.rail-logo{ width:40px; height:40px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; flex-shrink:0; }
.rail-logo img{ width:30px; height:auto; }
.rail-btn{
  width:64px; padding:10px 4px 12px; background:transparent; color:#8A93A6; text-decoration:none;
  border-radius:10px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:6px;
  font-size:11px; font-weight:600; letter-spacing:0.02em; transition:background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
  flex-shrink:0;
}
.rail-btn svg{ width:20px; height:20px; stroke:#8A93A6; transition:stroke .2s var(--ease); }
.rail-btn:hover{ background:var(--acier); color:#fff; text-decoration:none; transform:translateY(-1px); }
.rail-btn:hover svg{ stroke:#fff; }
.rail-btn:active{ transform:translateY(0) scale(.96); }
.rail-btn.active{ background:var(--acier-2); color:#fff; box-shadow:inset 3px 0 0 var(--rouge); }
.rail-btn.active svg{ stroke:var(--rouge); }
.rail-foot{ margin-top:auto; color:#565F72; font-size:9px; text-align:center; line-height:1.4; padding:0 6px; }

.main{ flex:1; min-width:0; display:flex; flex-direction:column; }

/* ---------- Top bar ---------- */
.topbar{
  background:var(--carte); border-bottom:1px solid var(--ligne); padding:14px 28px;
  display:flex; align-items:center; gap:16px; position:sticky; top:0; z-index:5; flex-wrap:wrap;
  transition:background .25s var(--ease), border-color .25s var(--ease);
}
.topbar form.search{ flex:1; display:flex; gap:8px; max-width:560px; min-width:180px; }
.topbar form.search input{ margin:0; }
.topbar-actions{ margin-left:auto; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.topbar-actions span{ font-size:13.5px; color:var(--mute); }

.theme-toggle{
  width:36px; height:36px; border-radius:10px; border:1px solid var(--ligne); background:var(--papier);
  display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:16px; flex-shrink:0;
  transition:transform .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover{ transform:translateY(-1px) rotate(-8deg); background:var(--carte); }
.theme-toggle:active{ transform:scale(.92); }

/* ---------- Hero (homepage) ---------- */
.hero{
  background:var(--asphalte); border-radius:20px; padding:44px 40px; color:#fff; position:relative; overflow:hidden;
  margin-bottom:36px; box-shadow:var(--shadow-lg);
}
.hero::after{
  content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,0,0,.25), transparent 70%);
  animation:heroGlow 5s ease-in-out infinite;
}
@keyframes heroGlow{
  0%, 100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.7; transform:scale(1.12); }
}
@media (prefers-reduced-motion: reduce){ .hero::after{ animation:none; } }
.hero .logo{ height:24px; width:auto; margin-bottom:18px; position:relative; display:block; }
.hero .eyebrow{
  display:inline-block; font-family:'IBM Plex Mono'; font-size:11px; font-weight:600; letter-spacing:0.04em;
  background:#3A1414; color:#FF9269; padding:5px 11px; border-radius:6px; position:relative;
}
.hero h1{ font-size:42px; color:#fff; max-width:620px; margin:16px 0 10px; position:relative; }
.hero p{ color:#B8BEC9; font-size:15.5px; max-width:520px; margin:0; position:relative; }

/* ---------- Cards / layout ---------- */
.card{
  background:var(--carte); border:1px solid var(--ligne); border-radius:var(--radius); padding:22px 24px; margin-bottom:16px;
  box-shadow:var(--shadow-sm); transition:box-shadow .25s var(--ease), transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
a.card:hover, .card.hoverable:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); }

.grid{ display:grid; gap:16px; }
.g2{ grid-template-columns:1fr 1fr; }
@media (max-width:700px){ .g2{ grid-template-columns:1fr; } .grid{ grid-template-columns:1fr !important; } }

h1{ font-size:30px; margin:0 0 6px; }
h2{ font-size:21px; margin:0 0 10px; }
.sub{ color:var(--mute); font-size:14px; margin:0 0 20px; line-height:1.5; }

label{ display:block; font-size:12px; font-weight:600; color:var(--mute); margin:14px 0 6px; text-transform:uppercase; letter-spacing:0.04em;}
.pwd-wrap{ position:relative; }
.pwd-wrap input{ padding-right:44px; }
.pwd-toggle{
  position:absolute; right:4px; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer; font-size:16px; padding:6px 8px;
  color:var(--mute); line-height:1;
}
.pwd-toggle:hover{ color:var(--texte); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], select, textarea{
  width:100%; border:1px solid var(--ligne); border-radius:var(--radius-sm); padding:10px 12px; font-size:14px; background:var(--papier); font-family:inherit; color:var(--texte);
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--rouge); box-shadow:0 0 0 4px var(--rouge-glow); }

.btn{
  display:inline-flex; align-items:center; gap:6px; padding:11px 20px; border-radius:var(--radius-sm); font-weight:600; font-size:14px;
  border:none; cursor:pointer; background:var(--rouge); color:#fff; margin-top:16px;
  transition:background .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
  box-shadow:0 1px 2px rgba(255,0,0,.15);
}
.btn:hover{ background:var(--rouge-dark); text-decoration:none; transform:translateY(-1px); box-shadow:0 4px 14px var(--rouge-glow); }
.btn:active{ transform:translateY(0) scale(.97); }
.btn.ghost{ background:transparent; color:var(--texte); border:1px solid var(--ligne); box-shadow:none; }
.btn.ghost:hover{ background:var(--papier); box-shadow:none; }
.btn.dark{ background:var(--asphalte); }
.btn.dark:hover{ background:#000; }
.btn.sm{ padding:7px 13px; font-size:13px; margin-top:0; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none !important; box-shadow:none !important; }

.tag{ display:inline-block; font-size:11px; font-weight:700; padding:4px 9px; border-radius:6px; font-family:'IBM Plex Mono'; }
.tag.orange{ background:var(--orange-clair); color:var(--rouge-dark); }
.tag.vert{ background:var(--vert-clair); color:var(--vert); }
.tag.mute{ background:#EDEBE2; color:var(--mute); }
html[data-theme="dark"] .tag.orange{ color:#FF9269; }

.alert{ padding:12px 16px; border-radius:var(--radius-sm); margin-bottom:18px; font-size:14px; animation:fadeSlideIn .3s var(--ease) both; }
.alert.error{ background:#FBE8E0; color:var(--rouge-dark); }
.alert.success{ background:var(--vert-clair); color:var(--vert); }
html[data-theme="dark"] .alert.error{ background:#2E1712; color:#FF9269; }

.row{ display:flex; justify-content:space-between; align-items:center; padding:13px 0; border-bottom:1px solid var(--ligne); gap:12px; transition:border-color .25s var(--ease); }
.row:last-child{ border-bottom:none; }
.row .title{ font-weight:600; font-size:14.5px; }
.row .meta{ color:var(--mute); font-size:12.5px; margin-top:2px; }
.row form{ margin:0; display:inline-block; }

.plaque{
  display:inline-flex; align-items:stretch; height:26px; border-radius:5px; overflow:hidden;
  border:1.5px solid var(--asphalte); font-family:'IBM Plex Mono'; font-weight:600;
}
.plaque .eu{ background:#3E6FA8; color:#fff; width:14px; display:flex; align-items:center; justify-content:center; font-size:9px; }
.plaque .num{ background:#fff; color:#111; padding:0 8px; display:flex; align-items:center; font-size:12px; letter-spacing:0.5px; }

footer{ text-align:center; color:var(--mute); font-size:12.5px; padding:26px; }

/* ---------- Animation au défilement (les cartes apparaissent en douceur) ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.revealed{ opacity:1; transform:translateY(0); }

/* ---------- Compteurs animés (statistiques de l'accueil) ---------- */
.stat-number{ display:inline-block; }

/* ---------- Info-bulle d'aide contextuelle ---------- */
.help-tip{
  display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border-radius:50%;
  background:var(--ligne); color:var(--mute); font-size:10.5px; font-weight:700; cursor:help; position:relative;
  vertical-align:middle; margin-left:5px; font-family:'Work Sans';
}
.help-tip:hover{ background:var(--rouge); color:#fff; }
.help-tip .help-tip-text{
  display:none; position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%);
  background:var(--asphalte); color:#fff; font-size:12px; font-weight:500; padding:8px 12px; border-radius:8px;
  width:max-content; max-width:220px; white-space:normal; line-height:1.4; z-index:20; text-align:left;
  box-shadow:var(--shadow-md);
}
.help-tip .help-tip-text::after{
  content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:5px solid transparent; border-top-color:var(--asphalte);
}
.help-tip:hover .help-tip-text{ display:block; animation:fadeSlideIn .15s var(--ease) both; }
@media (max-width:640px){
  .help-tip .help-tip-text{ left:auto; right:-10px; transform:none; }
  .help-tip .help-tip-text::after{ left:auto; right:14px; transform:none; }
}

/* ---------- Album photo moderne (grande photo + bande de vignettes) ---------- */
.photo-album{ margin:16px 0; }
.album-main-wrap{ position:relative; border-radius:14px; overflow:hidden; background:#EDEBE2; box-shadow:var(--shadow-md); }
.album-main{
  width:100%; height:380px; object-fit:cover; display:block; cursor:zoom-in;
  transition:opacity .15s var(--ease);
}
.album-arrow{
  position:absolute; top:50%; transform:translateY(-50%); background:rgba(20,23,28,.55); border:none; color:#fff;
  width:40px; height:40px; border-radius:50%; font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .15s var(--ease);
}
.album-arrow:hover{ background:rgba(20,23,28,.8); }
.album-prev{ left:12px; } .album-next{ right:12px; }
.album-counter{
  position:absolute; bottom:12px; right:14px; color:#fff; font-size:12px; font-family:'IBM Plex Mono';
  background:rgba(20,23,28,.55); padding:4px 11px; border-radius:20px;
}
.album-thumbs{
  display:flex; gap:8px; margin-top:10px; overflow-x:auto; padding-bottom:4px; scroll-behavior:smooth;
}
.album-thumb{
  width:76px; height:56px; object-fit:cover; border-radius:8px; flex-shrink:0; cursor:pointer; opacity:.55;
  border:2px solid transparent; transition:opacity .15s var(--ease), border-color .15s var(--ease);
}
.album-thumb:hover{ opacity:.85; }
.album-thumb.active{ opacity:1; border-color:var(--rouge); }
@media (max-width:640px){
  .album-main{ height:240px; }
  .album-thumb{ width:60px; height:44px; }
}

/* ---------- Visionneuse photo plein écran (lightbox) ---------- */
.lightbox{
  display:none; position:fixed; inset:0; z-index:300; background:rgba(10,10,12,.94);
  align-items:center; justify-content:center;
}
.lightbox.open{ display:flex; animation:fadeSlideIn .2s var(--ease) both; }
.lightbox-img{ max-width:min(85vw, 900px); max-height:80vh; object-fit:contain; border-radius:6px; }
.lightbox-close{
  position:absolute; top:18px; right:20px; background:rgba(255,255,255,.12); border:none; color:#fff;
  width:40px; height:40px; border-radius:50%; font-size:18px; cursor:pointer;
}
.lightbox-close:hover{ background:rgba(255,255,255,.22); }
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.12); border:none; color:#fff;
  width:48px; height:48px; border-radius:50%; font-size:24px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lightbox-nav:hover{ background:rgba(255,255,255,.22); }
.lightbox-prev{ left:16px; } .lightbox-next{ right:16px; }
.lightbox-counter{
  position:absolute; bottom:18px; left:50%; transform:translateX(-50%); color:#fff; font-size:13px;
  background:rgba(255,255,255,.12); padding:5px 14px; border-radius:20px;
}
@media (max-width:640px){
  .lightbox-nav{ width:40px; height:40px; font-size:20px; }
  .lightbox-prev{ left:8px; } .lightbox-next{ right:8px; }
}

.back-link{
  display:inline-block; font-size:13px; color:var(--mute); font-weight:600; margin-bottom:14px;
  transition:color .15s var(--ease);
}
.back-link:hover{ color:var(--rouge); text-decoration:none; }

/* ---------- Widget de chat IA flottant ---------- */
.ai-chat-widget{ position:fixed; right:22px; bottom:22px; z-index:70; }
.ai-chat-toggle{
  width:56px; height:56px; border-radius:50%; background:var(--rouge); color:#fff; border:none; font-size:24px;
  box-shadow:var(--shadow-lg); cursor:pointer; transition:transform .2s var(--ease), background .2s var(--ease);
}
.ai-chat-toggle:hover{ transform:scale(1.06); background:var(--rouge-dark); }
.ai-chat-toggle:active{ transform:scale(.94); }

.ai-chat-panel{
  display:none; flex-direction:column; position:fixed; right:22px; bottom:90px; width:340px; height:460px;
  background:var(--carte); border:1px solid var(--ligne); border-radius:16px; box-shadow:var(--shadow-lg); overflow:hidden;
}
.ai-chat-panel.open{ display:flex; animation:fadeSlideIn .2s var(--ease) both; }
.ai-chat-header{
  background:var(--asphalte); color:#fff; padding:14px 16px; font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:space-between;
}
.ai-chat-header button{ background:none; border:none; color:#B8BEC9; font-size:16px; cursor:pointer; }
.ai-chat-header button:hover{ color:#fff; }

.ai-chat-messages{ flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.ai-chat-msg{ max-width:85%; padding:9px 12px; border-radius:12px; font-size:13.5px; line-height:1.4; }
.ai-chat-msg.bot{ background:var(--papier); border:1px solid var(--ligne); align-self:flex-start; border-bottom-left-radius:3px; }
.ai-chat-msg.user{ background:var(--rouge); color:#fff; align-self:flex-end; border-bottom-right-radius:3px; }
.ai-chat-msg.typing{ color:var(--mute); font-style:italic; }

.ai-chat-input{ display:flex; gap:8px; padding:10px; border-top:1px solid var(--ligne); }
.ai-chat-input input{ margin:0; flex:1; }
.ai-chat-input button{
  width:40px; height:40px; border-radius:8px; background:var(--rouge); color:#fff; border:none; font-size:15px;
  cursor:pointer; flex-shrink:0;
}
.ai-chat-input button:hover{ background:var(--rouge-dark); }

@media (max-width:640px){
  .ai-chat-widget{ right:14px; bottom:78px; }
  .ai-chat-panel{ right:14px; left:14px; width:auto; bottom:150px; height:min(60vh, 460px); }
}

/* ---------- Navigation mobile (barre basse + feuille "Plus") ---------- */
.bottom-nav{ display:none; }
.bn-sheet{ display:none; }
.bn-overlay{ display:none; }

@media (max-width:760px){
  .rail{ display:none; }

  .bottom-nav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:50; background:var(--asphalte);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow:0 -2px 12px rgba(0,0,0,.15);
  }
  .bn-btn{
    flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:8px 2px;
    background:none; border:none; color:#8A93A6; font-size:10.5px; font-weight:600; text-decoration:none;
    -webkit-tap-highlight-color:transparent; transition:color .15s var(--ease);
  }
  .bn-btn svg{ width:22px; height:22px; stroke:#8A93A6; transition:stroke .15s var(--ease); }
  .bn-btn.active{ color:#fff; }
  .bn-btn.active svg{ stroke:var(--rouge); }
  .bn-btn:active{ transform:scale(.94); }

  .bn-overlay{
    position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:59; opacity:0; pointer-events:none; transition:opacity .25s var(--ease);
  }
  .bn-overlay.open{ display:block; opacity:1; pointer-events:auto; }

  .bn-sheet{
    display:flex; flex-direction:column; position:fixed; left:0; right:0; bottom:0; z-index:60;
    background:var(--carte); border-radius:20px 20px 0 0; padding:8px 8px calc(16px + env(safe-area-inset-bottom));
    transform:translateY(100%); transition:transform .3s var(--ease); box-shadow:0 -8px 30px rgba(0,0,0,.2);
  }
  .bn-sheet.open{ transform:translateY(0); }
  .bn-sheet-handle{ width:36px; height:4px; background:var(--ligne); border-radius:2px; margin:4px auto 10px; }
  .bn-sheet-link{
    display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:10px; color:var(--texte);
    font-weight:600; font-size:15px; -webkit-tap-highlight-color:transparent;
  }
  .bn-sheet-link:hover, .bn-sheet-link:active{ background:var(--papier); text-decoration:none; }
  .bn-sheet-link svg{ width:20px; height:20px; stroke:var(--texte); flex-shrink:0; }

  /* Laisse la place pour la barre basse fixe */
  .main{ padding-bottom:64px; }

  /* Cibles tactiles plus généreuses sur mobile */
  .btn{ min-height:46px; padding:12px 20px; }
  .btn.sm{ min-height:40px; padding:9px 16px; }
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], select, textarea{
    min-height:46px; font-size:16px; /* 16px empêche le zoom auto au focus sur iOS */
  }
  .row{ padding:15px 0; }
  a.card, .card.hoverable{ -webkit-tap-highlight-color:transparent; }
  .topbar{ padding:12px 16px; }
  .theme-toggle{ width:40px; height:40px; }
}

@media (max-width:760px){
  .wrap{ padding:24px 16px; }
  .hero{ padding:30px 24px; }
  .hero h1{ font-size:30px; }

  .lang-menu{
    position:fixed; top:64px; left:12px; right:12px; width:auto; min-width:0; max-width:none;
  }
  html[dir="rtl"] .lang-menu{ left:12px; right:12px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------- Recherches récentes ---------- */
.recent-search-wrap{ position:relative; flex:1; min-width:0; }
.recent-search-wrap input{ width:100%; }
.recent-search-dropdown{
  display:none; position:absolute; top:calc(100% + 6px); left:0; right:0; background:var(--carte);
  border:1px solid var(--ligne); border-radius:var(--radius-sm); box-shadow:var(--shadow-md); z-index:25;
  padding:6px; max-height:280px; overflow-y:auto;
}
.recent-search-dropdown.open{ display:block; animation:fadeSlideIn .15s var(--ease) both; }
.recent-search-item{
  display:flex; align-items:center; gap:9px; width:100%; text-align:left; padding:8px 10px; border-radius:8px;
  background:none; border:none; cursor:pointer; font-size:13.5px; color:var(--texte);
}
.recent-search-item:hover{ background:var(--papier); }
.recent-search-item span:first-child{ opacity:.6; font-size:12px; }
.lang-switcher{ position:relative; }
.lang-menu{
  display:none; position:absolute; top:44px; right:0; background:var(--carte); border:1px solid var(--ligne);
  border-radius:var(--radius-sm); box-shadow:var(--shadow-md); min-width:190px; max-height:340px; overflow-y:auto;
  padding:6px; z-index:30;
}
.lang-menu.open{ display:block; animation:fadeSlideIn .18s var(--ease) both; }
.lang-option{ display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:8px; color:var(--texte); font-size:13.5px; }
.lang-option:hover{ background:var(--papier); text-decoration:none; }
.lang-option.active{ background:var(--orange-clair); font-weight:700; }

/* ---------- Langues de droite à gauche (arabe, persan) ---------- */
html[dir="rtl"] body{ direction:rtl; }
html[dir="rtl"] .lang-menu{ right:auto; left:0; }
html[dir="rtl"] .rail-btn.active{ box-shadow:inset -3px 0 0 var(--rouge); }
html[dir="rtl"] .mono{ direction:ltr; unicode-bidi:embed; } /* prix/réf. techniques restent lisibles en LTR */
