/* ═══ MON FIL D'ARIANE — styles (préfixe .ari- / .ak-ariane-) ═══════════════ */

/* Bouton d'entrée, en haut du Codex (ne remplace pas la navigation) */
.ak-ariane-entry { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0 auto 22px; padding: 0 12px; }
.ak-ariane-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 26px; border-radius: 23px; cursor: pointer;
  font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-weight: 600; font-size: 12px; letter-spacing: 2.6px; color: #1a1030;
  background: linear-gradient(135deg, #f3dc98, #d3ae57 55%, #b98f3a); border: 0; box-shadow: 0 0 22px rgba(211,174,87,.32), inset 0 0 0 1px rgba(255,244,205,.5);
  transition: transform .2s, box-shadow .2s; }
.ak-ariane-btn:hover, .ak-ariane-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 0 34px rgba(237,212,140,.55), inset 0 0 0 1px rgba(255,244,205,.7); outline: 0; }
.ak-ariane-btn::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 7px; height: 1px; background: linear-gradient(90deg, transparent, rgba(26,16,48,.55), transparent); transform-origin: left; animation: ari-thread 3.6s ease-in-out infinite; }
.ak-ariane-hint { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; color: var(--text2, #d9ccf0); opacity: .85; }

/* Vue courte */
.ari-overlay { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(3,2,13,.82); backdrop-filter: blur(7px); overflow-y: auto; }
.ari-overlay[hidden] { display: none; }
.ari-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; margin: auto;
  padding: 26px 24px 22px; border-radius: 18px; color: var(--text, #f5f0e8);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(80,50,160,.28), transparent 70%), linear-gradient(180deg, #0b0828, #05031a);
  border: 1px solid rgba(211,174,87,.4); box-shadow: 0 20px 70px #000c, 0 0 40px rgba(211,174,87,.12); scrollbar-width: thin; scrollbar-color: #372b6e transparent; }
.ari-x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--text2, #d9ccf0); font-size: 16px; cursor: pointer; z-index: 3; }
.ari-x:hover { color: var(--gold2, #edd48c); }
.ari-head { text-align: center; position: relative; z-index: 2; }
.ari-eyebrow { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 10px; letter-spacing: 3.4px; color: var(--gold, #d3ae57); }
.ari-head h2 { margin: 6px 0 8px; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-weight: 600; font-size: 24px; letter-spacing: 1px; color: var(--gold2, #edd48c); text-shadow: 0 0 18px rgba(211,174,87,.4); }
.ari-head p { margin: 0 auto 18px; max-width: 440px; font-family: 'Cormorant Garamond', serif; font-size: 17px; line-height: 1.4; color: var(--text2, #d9ccf0); }

/* Fil doré qui traverse les cartes */
.ari-list { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 30px; z-index: 2; }
.ari-rail { position: absolute; left: 31px; top: 150px; bottom: 120px; width: 2px; z-index: 1; border-radius: 1px;
  background: linear-gradient(180deg, rgba(255,226,150,0), #f3dc98 12%, #edd48c 88%, rgba(255,226,150,0));
  box-shadow: 0 0 10px rgba(237,212,140,.7); transform-origin: top; animation: ari-draw 1.4s ease-out both; }
.ari-card { position: relative; padding: 14px 16px 14px; border-radius: 14px; background: rgba(30,20,70,.5); border: 1px solid rgba(146,116,236,.28);
  animation: ari-in .6s ease-out both; animation-delay: calc(.35s + var(--i) * .22s); }
.ari-card.off { border-style: dashed; border-color: rgba(122,178,255,.4); }
.ari-dot { position: absolute; left: -26px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: #fff3c4;
  box-shadow: 0 0 0 3px rgba(237,212,140,.25), 0 0 14px 3px rgba(237,212,140,.8); animation: ari-pulse 3s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.ari-card.off .ari-dot { background: #cfe3ff; box-shadow: 0 0 0 3px rgba(122,178,255,.25), 0 0 14px 3px rgba(122,178,255,.75); }
.ari-tag { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #a9cdff; margin-bottom: 4px; }
.ari-dom { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-size: 9.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold, #d3ae57); }
.ari-card h3 { margin: 3px 0 6px; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-weight: 600; font-size: 18px; color: var(--gold2, #edd48c); }
.ari-desc { margin: 0 0 9px; font-family: 'Cormorant Garamond', serif; font-size: 16.5px; line-height: 1.38; color: var(--text2, #d9ccf0); }
.ari-why { margin: 0 0 10px; padding: 8px 11px; border-radius: 9px; background: rgba(211,174,87,.08); border-left: 2px solid rgba(237,212,140,.6);
  font-family: 'Cormorant Garamond', serif; font-size: 16px; line-height: 1.36; color: var(--text, #f5f0e8); }
.ari-why b { display: block; margin-bottom: 2px; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; font-weight: 600; font-size: 8.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold, #d3ae57); }
.ari-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 11px; font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--text2, #d9ccf0); opacity: .9; }
.ari-pg { width: 70px; height: 4px; border-radius: 2px; background: rgba(146,116,236,.25); overflow: hidden; }
.ari-pg i { display: block; height: 100%; background: linear-gradient(90deg, #a98a3c, #edd48c); }
.ari-go, .ari-map { cursor: pointer; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 2px; border-radius: 22px; min-height: 44px; }
.ari-go { padding: 0 22px; font-size: 10.5px; color: #1a1030; background: linear-gradient(135deg, #edd48c, #d3ae57); border: 0; box-shadow: 0 0 16px rgba(211,174,87,.28); }
.ari-map { display: block; width: calc(100% - 30px); margin: 16px 0 0 30px; padding: 0 16px; font-size: 10px; color: var(--gold2, #edd48c); background: transparent; border: 1px solid rgba(211,174,87,.55); position: relative; z-index: 2; }
.ari-map:hover, .ari-go:hover, .ari-go:focus-visible, .ari-map:focus-visible { filter: brightness(1.12); outline: 0; }
.ari-empty { position: relative; z-index: 2; font-family: 'Cormorant Garamond', serif; font-size: 17px; font-style: italic; text-align: center; color: var(--text2, #d9ccf0); }
.ari-foot { position: relative; z-index: 2; margin: 18px 0 0; font-family: 'Cormorant Garamond', serif; font-size: 13.5px; font-style: italic; line-height: 1.35; text-align: center; color: var(--text2, #d9ccf0); opacity: .6; }

/* Poussières lumineuses */
.ari-dust { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; pointer-events: none; z-index: 1; }
.ari-dust i { position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%; background: #f3dc98; box-shadow: 0 0 6px 1px rgba(237,212,140,.7); opacity: 0; animation: ari-float 9s linear infinite; }
.ari-dust i:nth-child(3n) { background: #cfe3ff; box-shadow: 0 0 6px 1px rgba(122,178,255,.6); }
.ari-dust i:nth-child(1) { left: 8%; animation-delay: 0s; } .ari-dust i:nth-child(2) { left: 18%; animation-delay: 2.2s; } .ari-dust i:nth-child(3) { left: 27%; animation-delay: 4.5s; }
.ari-dust i:nth-child(4) { left: 36%; animation-delay: 1.1s; } .ari-dust i:nth-child(5) { left: 45%; animation-delay: 6s; } .ari-dust i:nth-child(6) { left: 54%; animation-delay: 3.3s; }
.ari-dust i:nth-child(7) { left: 63%; animation-delay: 7.2s; } .ari-dust i:nth-child(8) { left: 71%; animation-delay: .6s; } .ari-dust i:nth-child(9) { left: 80%; animation-delay: 5.1s; }
.ari-dust i:nth-child(10) { left: 88%; animation-delay: 2.8s; } .ari-dust i:nth-child(11) { left: 93%; animation-delay: 7.9s; } .ari-dust i:nth-child(12) { left: 4%; animation-delay: 5.6s; } .ari-dust i:nth-child(13) { left: 58%; animation-delay: 8.4s; }
html.ari-open { overflow: hidden; }

@keyframes ari-draw { from { transform: scaleY(0); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }
@keyframes ari-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ari-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes ari-float { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateY(-420px); opacity: 0; } }
@keyframes ari-thread { 0%, 100% { transform: scaleX(.3); opacity: .3; } 50% { transform: scaleX(1); opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .ari-rail, .ari-card, .ari-dot, .ari-dust i, .ak-ariane-btn::after { animation: none !important; }
  .ari-dust { display: none; }
}
@media (max-width: 520px) {
  .ari-box { padding: 22px 14px 18px; }
  .ari-head h2 { font-size: 20px; }
  .ari-list { padding-left: 24px; }
  .ari-dot { left: -21px; }
  .ari-rail { left: 25px; }
  .ari-map { width: calc(100% - 24px); margin-left: 24px; }
}
