/* QasbaGuard — accueil : section « Le voyage dans le temps », la qasba de Mehdia en 3D. Chargee par l'accueil seulement une fois la page publiee (reglage _publie de site/i18n/textes/qasba/fr.json). */
.voyage-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.voyage-image { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(232, 184, 77, .45); background: var(--night-2); }
.voyage-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.voyage-texte { display: grid; gap: 14px; justify-items: start; }
.voyage-texte h2 { margin: 0; }
.voyage-texte .lead { margin: 0; }
.voyage-puces { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 8px; }
.voyage-puces li { position: relative; padding-inline-start: 24px; color: var(--sand-2); }
.voyage-puces li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); }
.voyage-btn { display: inline-flex; align-items: center; gap: 12px; white-space: normal; text-align: start; }
.voyage-cube { position: relative; width: 18px; height: 18px; flex: none; }
.voyage-cube::before, .voyage-cube::after { content: ""; position: absolute; inset: 0; border: 2px solid currentColor; border-radius: 2px; }
.voyage-cube::before { transform: translate(-3px, 3px); } .voyage-cube::after { transform: translate(3px, -3px); opacity: .55; }
@media (max-width: 860px) { .voyage-grille { grid-template-columns: 1fr; gap: 24px; } }
/* arabe entierement vocalise : le koufi decoratif se lit mal avec les voyelles, titre en Noto Sans Arabic */
.voyage h2:lang(ar) { font-family: "Noto Sans Arabic", var(--f-body); font-weight: 600; line-height: 1.5; }
.voyage-texte :lang(ar) { line-height: 1.95; }

/* Haut de l'accueil : bouton vers la visite 3D, et pastille sur le dessin du chateau */
.hero-qasba { margin: 14px 0 0; }
.hero-qasba-btn { display: inline-flex; align-items: center; gap: 12px; color: var(--sand); background: color-mix(in srgb, var(--jade) 26%, transparent); border: 1px solid var(--jade); box-shadow: 0 0 0 0 color-mix(in srgb, var(--jade) 60%, transparent); animation: hero-qasba-pouls 2.4s ease-out infinite; }
.hero-qasba-btn:hover, .hero-qasba-btn:focus-visible { color: var(--night); background: var(--jade); }
@keyframes hero-qasba-pouls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--jade) 55%, transparent); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.sky-3d { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font: 600 .82rem/1.2 var(--f-body); color: var(--night); background: var(--gold); border-radius: 999px; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.sky-3d:hover, .sky-3d:focus-visible { background: var(--sand); }
.sky-3d-jeu { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
[dir="rtl"] .sky-3d-jeu { transform: scaleX(-1); }
@media (max-width: 420px) { .sky-3d { top: 8px; inset-inline-end: 8px; padding: 6px 10px; font-size: .76rem; } }
@media (prefers-reduced-motion: reduce) { .hero-qasba-btn { animation: none; } }
