/* LOT 100 (k) — L'ACCUEIL DU SITE D'UN ÉTABLISSEMENT, COMME UNE PRÉSENTATION.

   Les couleurs viennent de l'école, calculées par le serveur (Visuel) et
   posées en variables sur .vs : --ecole, --ecole-texte, --ecole-fonce (fond
   sombre, texte blanc lisible), --ecole-sombre (texte de la couleur de
   l'école sur blanc), --ecole-pale.

   Le mouvement n'existe que sous html.vs-anim (posée avant l'affichage, jamais
   en « mouvement réduit ») : sans elle, tout est visible et immobile. Il n'anime
   que transform, opacity et, pour le titre arabe, clip-path. Chaque état
   « avant apparition » est une animation CSS qui finit d'elle-même : si le
   script ne vient pas, rien ne reste caché.

   Un style par langue : .anim-fr l'élégance posée, .anim-en le rythme net,
   .anim-ar la plume, de droite à gauche. */

.vs {
    --or: #D3AF61;
    --or-pale: #EAD9AE;
    --papier-vs: #FAF9F6;
    --encre-vs: #1d2b24;
    --courbe-sortie: cubic-bezier(.22,.61,.36,1);
    --courbe-nette: cubic-bezier(.2,.8,.2,1);
    --courbe-plume: cubic-bezier(.45,.05,.25,1);
    --d-titre: 900ms; --d-trans: 800ms; --d-diapo: 7s; --courbe: var(--courbe-sortie); --pas: 90ms;
}
.vs.anim-en { --d-titre: 600ms; --d-trans: 600ms; --d-diapo: 6s; --courbe: var(--courbe-nette); --pas: 60ms; }
.vs.anim-ar { --d-titre: 1000ms; --d-trans: 1000ms; --d-diapo: 8s; --courbe: var(--courbe-plume); --pas: 110ms; }

.vs .surtitre { color: var(--ecole-sombre); }
.vs .picto { width: 22px; height: 22px; flex: none; }
.vs .vs-sens { width: 20px; height: 20px; }
[dir="rtl"] .vs .vs-sens { transform: scaleX(-1); }
.vs h1, .vs h2 { text-wrap: balance; }
.vs-h2 { font-size: clamp(1.4rem, 4.5vw, 2.2rem); position: relative; padding-bottom: .55rem; }
.vs-h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px;
                background: var(--or); transform-origin: left center; }
[dir="rtl"] .vs-h2::after { transform-origin: right center; }
.vs-lien { color: var(--ecole-sombre); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem;
           min-height: 44px; }
.vs-lien:hover { text-decoration: underline; }
.vs a:focus-visible, .vs button:focus-visible, .vs-boite button:focus-visible {
    outline: 3px solid var(--or); outline-offset: 3px; border-radius: 8px; }

/* ================= LE HÉROS ================= */
.vs-heros { position: relative; overflow: hidden; background: var(--ecole-fonce); color: #fff; isolation: isolate; }
.vs-diapos { display: grid; min-height: 560px; touch-action: pan-y; }
@media (min-width: 900px) { .vs-diapos { min-height: min(78vh, 680px); } }
.vs-diapo { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; min-width: 0; }
.vs-diapo:not(.est-active) { opacity: 0; visibility: hidden; }
.vs-diapo.a-uni { background: var(--ecole-fonce); color: var(--sur-fonce); }
.vs-diapo-fond { position: absolute; inset: 0; overflow: hidden; z-index: -1; background: var(--ecole-fonce); }
.vs-diapo-fond img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
/* Le voile : du blanc se lit à 4,5:1 même sur une photo claire. */
.vs-diapo-fond::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.18) 100%); }
.vs-diapo-texte { position: relative; width: 100%; padding-top: 2.4rem; padding-bottom: 5.2rem; }
.vs-fixe .vs-diapo-texte { padding-bottom: 2.6rem; }
@media (min-width: 900px) { .vs-diapo-texte { padding-bottom: 6.4rem; } .vs-fixe .vs-diapo-texte { padding-bottom: 4rem; } }

.vs-logo { width: 64px; height: 64px; border-radius: 16px; background: #fff; padding: 6px; object-fit: contain; margin-bottom: .9rem;
           box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.vs-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .8rem; }
.vs-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 700; line-height: 1.2;
            padding: .32rem .75rem; border-radius: 999px; background: #fff; color: var(--encre-vs); }
.vs-badge.or { background: var(--or); color: #1E4630; }
.vs-badge .picto { width: 16px; height: 16px; }
.vs-titre { color: inherit; margin: 0; line-height: 1.15; }
.vs h1.vs-titre { font-size: clamp(1.75rem, 6.5vw, 3.25rem); max-width: 22ch; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.vs h1.vs-titre.nom-long { font-size: clamp(1.5rem, 5.2vw, 2.6rem); max-width: 30ch; }
html[lang="ar"] .vs .vs-titre { font-family: "Amiri", "Noto Naskh Arabic", "Segoe UI", "Traditional Arabic", serif; line-height: 1.6; letter-spacing: 0; }
.vs-filet { display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--or); margin: .9rem 0 .8rem; transform-origin: left center; }
[dir="rtl"] .vs-filet { transform-origin: right center; }
.vs-natif { font-size: 1.3rem; margin: -.2rem 0 .5rem; }
.vs-slogan { font-size: clamp(1.05rem, 3.6vw, 1.35rem); font-weight: 600; margin: 0 0 .35rem; max-width: 46ch; }
.vs-slogan-natif { font-size: 1.1rem; margin: 0 0 .35rem; }
/* Le nom et la devise en arabe, sur une page de gauche à droite : alignés avec le reste. */
html:not([dir="rtl"]) .vs-natif, html:not([dir="rtl"]) .vs-slogan-natif { text-align: left; }
.vs-lieu { display: inline-flex; align-items: center; gap: .35rem; margin: .5rem 0 0; font-size: .95rem; }
.vs-lieu .picto { width: 18px; height: 18px; }
.vs-surtitre { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; margin: 0 0 .6rem; color: var(--or-pale); }
html[lang="ar"] .vs-surtitre { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.vs p.vs-diapo-titre { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: clamp(1.5rem, 5.4vw, 2.6rem); max-width: 24ch; }
html[lang="ar"] .vs p.vs-diapo-titre { font-family: "Amiri", "Noto Naskh Arabic", "Segoe UI", serif; }
.vs-diapo-texte-court { font-size: 1.08rem; max-width: 52ch; margin: .8rem 0 0; }
.vs-direction { display: flex; gap: 1.2rem; align-items: center; }
.vs-direction-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; flex: none; background: var(--ecole-pale); }
.vs blockquote.vs-citation { border: 0; padding: 0; font-size: clamp(1.25rem, 4.4vw, 2rem); font-style: normal; max-width: 30ch; white-space: normal; }
.vs-signature { margin: .7rem 0 0; }
@media (max-width: 599px) { .vs-direction { flex-direction: column; align-items: flex-start; } .vs-direction-photo { width: 88px; height: 88px; } }

/* Boutons : 52 px au téléphone, pleine largeur, pictogramme + verbe court. */
.vs-boutons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.vs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.4rem;
          border-radius: 999px; font: inherit; font-size: 1.05rem; font-weight: 700; text-decoration: none; border: 2px solid transparent;
          transition: transform .2s var(--courbe-sortie), background-color .2s ease; }
.vs-btn.plein, .vs-btn.inverse { background: #fff; color: var(--ecole-sombre); border-color: #fff; }
.vs-btn.trait { background: transparent; color: inherit; border-color: currentColor; }
.vs-btn.plein:hover, .vs-btn.inverse:hover { background: var(--papier-vs); }
.vs-btn.trait:hover { background: rgba(255,255,255,.12); }
@media (hover: hover) { .vs-btn:hover { transform: translateY(-1px); } }
@media (max-width: 599px) {
    .vs-boutons { flex-direction: column; }
    .vs-btn { width: 100%; font-size: 1.06rem; }
}

/* Commandes du diaporama : sur la bande basse, sombre. */
.vs-commandes { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; }
.vs-commandes-corps { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .6rem; }
.vs-puces { display: flex; gap: 0; }
.vs-puce { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.vs-puce span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); transition: transform .3s ease, background-color .3s ease; }
.vs-puce[aria-current="true"] span { background: #fff; transform: scale(1.3); }
.vs-fleches { display: flex; gap: .35rem; }
.vs-bouton { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: rgba(0,0,0,.28); color: #fff;
             display: grid; place-items: center; cursor: pointer; padding: 0; }
.vs-bouton:hover { background: rgba(0,0,0,.5); }
.vs-si-pause { display: none; }
.vs-heros.vs-arrete .vs-si-pause { display: block; }
.vs-heros.vs-arrete .vs-si-lecture { display: none; }
@media (max-width: 479px) {
    .vs-puce { width: 26px; }
    .vs-bouton { width: 44px; height: 44px; }
    .vs-fleches { gap: .25rem; }
}
.vs-progres { height: 2px; background: rgba(255,255,255,.18); }
.vs-progres span { display: block; height: 100%; background: var(--or); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .vs-progres span { transform-origin: right center; }
.vs-annonce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.vs-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* L'étoile à huit branches (arabe) : au coin où la lecture s'achève. */
.vs-motif { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 150px; height: 150px; z-index: 1; pointer-events: none;
            fill: none; stroke: var(--or-pale); stroke-width: 1.5; }
@media (min-width: 900px) { .vs-motif { width: 180px; height: 180px; top: 2rem; inset-inline-end: 2rem; } }
@media (max-width: 599px) { .vs-motif { width: 96px; height: 96px; top: .6rem; inset-inline-end: .6rem; } }

/* ================= LES PREUVES ================= */
.vs-preuves { background: var(--papier-vs); border-bottom: 1px solid var(--trait); }
.vs-preuves-liste { list-style: none; margin: 0; padding: 1rem 0; display: grid; gap: .8rem 1.2rem;
                    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.vs-preuve { display: flex; align-items: center; gap: .65rem; line-height: 1.3; color: var(--encre-vs); }
.vs-preuve strong { display: block; font-size: .95rem; }
.vs-preuve small { display: block; color: var(--encre-douce); font-size: .82rem; }
.vs-preuve-picto { width: 44px; height: 44px; border-radius: 50%; background: var(--ecole-pale); color: var(--ecole-sombre);
                   display: grid; place-items: center; flex: none; border: 1.5px solid var(--or); }
@media (max-width: 599px) {
    .vs-preuves-liste { grid-template-columns: 1fr; gap: .7rem; padding: .9rem 0; }
    .vs-preuve-picto { width: 38px; height: 38px; }
    .vs-preuve-picto .picto { width: 20px; height: 20px; }
}

/* ================= PRÉSENTATION ET CHIFFRES ================= */
.vs-apropos-corps { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .vs-apropos-corps { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.vs-lead { font-size: 1.1rem; line-height: 1.7; color: var(--encre-douce); max-width: 62ch; }
.vs-mv { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.2rem 0 1rem; }
.vs-mv > div { background: var(--papier); border-radius: 14px; padding: 1rem 1.1rem; border-inline-start: 3px solid var(--or); }
.vs-mv h3 { color: var(--ecole-sombre); font-size: 1rem; margin-bottom: .3rem; }
.vs-mv p { margin: 0; color: var(--encre-douce); }
.vs-chiffres { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.vs-chiffre { background: var(--papier); border-radius: 16px; padding: 1.2rem .8rem; text-align: center; border: 1px solid var(--trait); }
.vs-chiffre b { display: block; font-family: "Poppins", system-ui, sans-serif; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.1;
                color: var(--ecole-sombre); font-variant-numeric: tabular-nums; }
.vs-chiffre span { color: var(--encre-douce); font-weight: 600; }
@media (hover: hover) {
    .vs a.carte { transition: transform .2s var(--courbe-sortie), box-shadow .2s ease; }
    .vs a.carte:hover { transform: translateY(-3px); }
}
.vs .etiquette { color: var(--ecole-sombre); background: var(--ecole-pale); }
.vs .personne .fonction { color: var(--ecole-sombre); }
.vs blockquote { border-inline-start-color: var(--ecole-sombre); }

/* ================= L'APPEL ================= */
.vs-appel { background: var(--ecole-fonce); color: var(--sur-fonce); padding: 2.6rem 0; margin-top: 1rem; }
.vs-appel h2 { color: inherit; margin-bottom: .4rem; }
.vs-appel p { margin: 0; opacity: .95; max-width: 60ch; }
.vs-appel-corps { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 900px) { .vs-appel-corps { grid-template-columns: 1fr auto; } .vs-appel .vs-boutons { margin-top: 0; } }

/* ================= ACTIONS RAPIDES (téléphone) ================= */
.vs-actions { display: none; }
@media (max-width: 767px) {
    /* Lot 104 : hauteur mesurée de la barre d'actions + 16 px (barre-basse.js) ; repli 88 px. */
    body.avec-actions { padding-bottom: var(--espace-bas, calc(88px + env(safe-area-inset-bottom, 0px))); }
    html { scroll-padding-bottom: var(--espace-bas, calc(88px + env(safe-area-inset-bottom, 0px))); }
    .vs-actions { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--trait);
                  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.08); transition: transform .3s var(--courbe-sortie); }
    .vs-actions a { flex: 1; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
                    text-decoration: none; color: var(--encre-vs); font-size: .8rem; font-weight: 700; }
    .vs-actions a.fort { background: var(--ecole-fonce); color: var(--sur-fonce); }
    html.vs-anim .vs-actions.vs-hors { transform: translateY(100%); }
    html.vs-anim .vs-actions.barre-cachee { transform: translateY(100%); }
}

/* ================= GALERIE PLEIN ÉCRAN ================= */
.galerie[data-vs-boite] a { display: block; height: 100%; cursor: zoom-in; }
.vs-boite { position: fixed; inset: 0; z-index: 100; background: #0b0d0c; color: #fff; display: flex; flex-direction: column; touch-action: pan-y; }
.vs-boite[hidden] { display: none; }
.vs-boite-haut { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; }
.vs-boite-compte { font-weight: 700; }
.vs-boite-scene { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.vs-boite-scene img { max-width: 100%; max-height: 100%; object-fit: contain; width: auto; height: auto; }
.vs-boite-legende { text-align: center; padding: .6rem 1rem 1rem; min-height: 3rem; margin: 0; }
.vs-boite-nav { position: absolute; top: 50%; margin-top: -24px; }
.vs-boite-nav.precedent { inset-inline-start: .5rem; }
.vs-boite-nav.suivant { inset-inline-end: .5rem; }
.vs-boite .vs-bouton { background: rgba(0,0,0,.5); }
@media (max-width: 599px) { .vs-boite-nav { top: auto; bottom: .5rem; margin: 0; } }
html.vs-boite-ouverte { overflow: hidden; }

/* =====================================================================
   LE MOUVEMENT — seulement sous html.vs-anim (jamais en mouvement réduit).
   ===================================================================== */
@keyframes vs-montee { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vs-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes vs-gauche { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes vs-droite { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes vs-filet { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vs-plume { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes vs-mot { from { transform: translateY(105%); } to { transform: none; } }
@keyframes vs-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vs-progres { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vs-kb-fr { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }
@keyframes vs-kb-en { from { transform: scale(1.03) translateX(0); } to { transform: scale(1.03) translateX(-2%); } }
@keyframes vs-kb-ar { from { transform: scale(1); } to { transform: scale(1.05); } }

/* Changement de diapositive : fondu enchaîné (fr, ar), glissement court (en). */
html.vs-anim .vs-diapo { transition: opacity var(--d-trans) var(--courbe), visibility 0s linear var(--d-trans); }
html.vs-anim .vs-diapo.est-active { transition: opacity var(--d-trans) var(--courbe), visibility 0s; }
html.vs-anim .anim-en .vs-diapo .vs-diapo-texte { transition: transform var(--d-trans) var(--courbe); transform: translateX(8%); }
html.vs-anim .anim-en .vs-diapo.est-active .vs-diapo-texte { transform: none; }
html.vs-anim .anim-en .vs-diapo.est-sortante .vs-diapo-texte { transform: translateX(-8%); }
html.vs-anim .anim-ar .vs-diapo .vs-diapo-texte { transition: transform var(--d-trans) var(--courbe); transform: translateX(-4%); }
html.vs-anim .anim-ar .vs-diapo.est-active .vs-diapo-texte { transform: none; }

/* Le zoom lent, borné à la durée de la diapositive (il s'arrête, il ne boucle pas). */
html.vs-anim .anim-fr .vs-diapo.est-active .vs-diapo-fond img { animation: vs-kb-fr var(--d-diapo) linear forwards; }
html.vs-anim .anim-en .vs-diapo.est-active .vs-diapo-fond img { animation: vs-kb-en var(--d-diapo) linear forwards; }
html.vs-anim .anim-ar .vs-diapo.est-active .vs-diapo-fond img { animation: vs-kb-ar var(--d-diapo) linear forwards; transform-origin: 100% 0; }
html.vs-anim .vs-heros.vs-arrete .vs-diapo-fond img { animation-play-state: paused; }

/* Les textes de la diapositive active, en cascade (le bouton ne bouge jamais). */
html.vs-anim .est-active .vs-attente { animation: vs-montee var(--d-titre) var(--courbe) both; }
html.vs-anim .est-active .vs-surtitre.vs-attente { animation-delay: 0ms; }
html.vs-anim .est-active .vs-titre.vs-attente { animation-delay: calc(var(--pas) * 1); }
html.vs-anim .est-active .vs-diapo-texte-court.vs-attente,
html.vs-anim .est-active .vs-signature.vs-attente { animation-delay: calc(var(--pas) * 3); }
/* Diapositive d'ouverture : le récit du premier écran. */
html.vs-anim .vs-diapo-identite.est-active .vs-badges { animation: vs-montee 600ms var(--courbe) 100ms both; }
html.vs-anim .vs-diapo-identite.est-active h1.vs-titre { animation: vs-montee var(--d-titre) var(--courbe) 200ms both; }
html.vs-anim .vs-diapo-identite.est-active .vs-filet { animation: vs-filet 700ms var(--courbe) 900ms both; }
html.vs-anim .vs-diapo-identite.est-active .vs-slogan { animation: vs-fondu 600ms var(--courbe) 1100ms both; }
html.vs-anim .vs-diapo-identite.est-active .vs-natif,
html.vs-anim .vs-diapo-identite.est-active .vs-slogan-natif { animation: vs-fondu 600ms var(--courbe) 1300ms both; }

/* Français : le slogan s'écrit (lettres déjà à leur place, jamais insérées). */
.vs-slogan.vs-ecrit { position: relative; }
html.vs-anim .vs-diapo-identite.est-active .vs-slogan.vs-ecrit { animation: none; opacity: 1; }
.vs-ecrit .vs-l { opacity: 0; transition: opacity .12s linear; }
.vs-ecrit .vs-l.vue { opacity: 1; }
/* Le curseur suit la dernière lettre écrite (un trait d'or), puis s'éteint. */
.vs-ecrit .vs-l.vs-curseur { box-shadow: 2px 0 0 var(--or); }
[dir="rtl"] .vs-ecrit .vs-l.vs-curseur { box-shadow: -2px 0 0 var(--or); }
.vs-ecrit.vs-fini .vs-l.vs-curseur { box-shadow: none; transition: box-shadow .4s ease; }

/* Anglais : les titres se révèlent mot à mot, puis le slogan glisse. */
.vs-mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.vs-mot > span { display: inline-block; }
html.vs-anim .anim-en .est-active .vs-titre.vs-mots { animation: none; }
html.vs-anim .anim-en .est-active .vs-mots .vs-mot > span { animation: vs-mot 550ms var(--courbe-nette) both;
    animation-delay: calc(150ms + var(--i, 0) * var(--pas-mot, 60ms)); }
html.vs-anim .anim-en .vs-diapo-identite.est-active .vs-badges { animation-name: vs-gauche; animation-duration: 420ms; animation-delay: 80ms; }
html.vs-anim .anim-en .vs-diapo-identite.est-active .vs-filet { animation-duration: 450ms; animation-delay: 700ms; }
html.vs-anim .anim-en .vs-diapo-identite.est-active .vs-slogan { animation: vs-gauche 600ms var(--courbe-nette) 800ms both; }

/* Arabe : la plume ouvre le titre de droite à gauche (ligatures intactes). */
html.vs-anim .anim-ar .est-active .vs-titre.vs-attente,
html.vs-anim .anim-ar .vs-diapo-identite.est-active h1.vs-titre { animation: vs-plume 1000ms var(--courbe-plume) 150ms both; }
html.vs-anim .anim-ar .vs-diapo-identite.est-active .vs-filet { animation-delay: 1000ms; }
html.vs-anim .anim-ar .vs-diapo-identite.est-active .vs-slogan { animation: vs-droite 900ms var(--courbe-plume) 1200ms both; }
html.vs-anim .anim-ar .vs-diapo-identite.est-active .vs-badges { animation-name: vs-droite; }
html.vs-anim .anim-ar .vs-motif * { stroke-dasharray: 1; animation: vs-trace 2.4s var(--courbe-plume) both; }

/* La barre de progression : se remplit sur la durée de la diapositive, se fige en pause. */
html.vs-anim .vs-heros.vs-joue .vs-progres span { animation: vs-progres var(--d-diapo) linear forwards; }
html.vs-anim .vs-heros.vs-arrete .vs-progres span { animation-play-state: paused; }
html:not(.vs-anim) .vs-progres { display: none; }

/* Au défilement : chaque bloc apparaît une fois, du côté où la lecture commence. */
html.vs-anim .vs-cache { opacity: 0; transform: translateY(16px); }
html.vs-anim .anim-en .vs-cache { transform: translateX(-16px); }
html.vs-anim .anim-ar .vs-cache { transform: translateX(16px); }
html.vs-anim .vs-cache.vs-vu { opacity: 1; transform: none;
    transition: opacity var(--d-titre) var(--courbe), transform var(--d-titre) var(--courbe); transition-delay: var(--delai, 0ms); }
html.vs-anim .vs-cache .vs-h2::after { transform: scaleX(0); }
html.vs-anim .vs-cache.vs-vu .vs-h2::after { transform: scaleX(1); transition: transform 700ms var(--courbe) 300ms; }

/* Galerie plein écran : entrée de la photo, dans le sens de lecture. */
html.vs-anim .vs-boite-scene img.vs-entre { animation: vs-fondu 400ms var(--courbe-sortie) both; }

/* Transitions de page douces (navigateurs qui les connaissent). */
@view-transition { navigation: auto; }

/* ============ Mouvement réduit : simples fondus, rien d'automatique ============ */
@media (prefers-reduced-motion: reduce) {
    .vs *, .vs *::before, .vs *::after, .vs-boite * { animation: none !important; }
    .vs-diapo { transition: opacity .2s linear, visibility 0s !important; }
    .vs-diapo .vs-diapo-texte { transform: none !important; }
    .vs-progres { display: none; }
    .vs-actions { transition: none !important; }
    @view-transition { navigation: none; }
}

/* =====================================================================
   DIRECTION ARTISTIQUE (lot 100) — retouches après relecture à l'écran.
   ===================================================================== */

/* La police des titres arabes : Amiri gras, réduite aux lettres arabes, aux chiffres
   orientaux et à la ponctuation (40 Ko), servie par le site. Le navigateur ne la
   télécharge que s'il doit dessiner de l'arabe avec elle (unicode-range) : seulement
   les titres des pages arabes. Un nom d'école en lettres latines garde Poppins. */
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("/fonts/amiri-700-arabe.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200F; }
html[lang="ar"] .vs .vs-titre, html[lang="ar"] .vs p.vs-diapo-titre {
    font-family: "Amiri", "Poppins", "Noto Naskh Arabic", "Segoe UI", "Traditional Arabic", serif; font-weight: 700; }

/* Changement de diapositive : le texte sortant s'efface dans le premier tiers du
   fondu, l'entrant n'arrive qu'ensuite — jamais deux textes l'un sur l'autre. */
html.vs-anim .vs-diapo .vs-diapo-texte { opacity: 0; transition: opacity calc(var(--d-trans) * .35) linear; }
html.vs-anim .vs-diapo.est-active .vs-diapo-texte { opacity: 1; transition: opacity calc(var(--d-trans) * .55) var(--courbe) calc(var(--d-trans) * .35); }
html.vs-anim .anim-en .vs-diapo .vs-diapo-texte { transition: opacity calc(var(--d-trans) * .35) linear, transform var(--d-trans) var(--courbe); }
html.vs-anim .anim-en .vs-diapo.est-active .vs-diapo-texte,
html.vs-anim .anim-ar .vs-diapo.est-active .vs-diapo-texte {
    transition: opacity calc(var(--d-trans) * .55) var(--courbe) calc(var(--d-trans) * .35), transform var(--d-trans) var(--courbe); }
html.vs-anim .anim-ar .vs-diapo .vs-diapo-texte { transition: opacity calc(var(--d-trans) * .35) linear, transform var(--d-trans) var(--courbe); }

/* Diapositive sans photo : un emblème (pictogramme cerclé d'or) ouvre le texte, et
   le bloc se tient au milieu au lieu de laisser un grand vide au-dessus. */
.vs-embleme { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--or);
              color: var(--or); margin-bottom: 1.1rem; }
.vs-embleme .picto { width: 30px; height: 30px; }
.vs-diapo.a-uni:not(.vs-diapo-identite) { align-items: center; }
.vs-diapo.a-uni:not(.vs-diapo-identite) .vs-diapo-texte { padding-top: 2rem; padding-bottom: 5.6rem; }

/* Grand écran, sans photo de couverture : le sceau de l'école occupe la fin de lecture
   (disque blanc, anneau d'or) au lieu d'une moitié de héros vide ; il reste immobile
   d'une diapositive à l'autre. Sous 1100 px, le texte a besoin de la place. */
.vs-medaillon { display: none; }
@media (min-width: 1100px) {
    .vs-medaillon { display: grid; place-items: center; position: absolute; z-index: 2; top: 50%; margin-top: -150px;
        inset-inline-end: max(1rem, calc((100% - 1160px) / 2 + 1rem)); width: 300px; height: 300px; border-radius: 50%;
        background: #fff; box-shadow: 0 0 0 6px var(--ecole-fonce), 0 0 0 8px var(--or), 0 18px 40px rgba(0,0,0,.28); }
    .vs-medaillon img { width: 210px; height: 210px; object-fit: contain; }
    .vs-a-medaillon .vs-diapo-texte { padding-inline-end: 360px; }
    .vs-a-medaillon .vs-logo { display: none; }
    /* Arabe : l'étoile se trace autour du sceau (même centre). */
    .vs-heros.vs-a-medaillon .vs-motif { width: 420px; height: 420px; top: 50%; margin-top: -210px;
        inset-inline-end: calc(max(1rem, calc((100% - 1160px) / 2 + 1rem)) - 60px); }
    html.vs-anim .vs-medaillon { animation: vs-sceau 1000ms var(--courbe) 250ms both; }
    html.vs-anim .anim-en .vs-medaillon { animation-duration: 600ms; animation-delay: 150ms; }
}
@keyframes vs-sceau { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
/* Page arabe : le nom officiel en lettres latines, sous le nom arabe, reste calé à droite avec la colonne. */
html[dir="rtl"] .vs-natif[dir="ltr"] { text-align: right; font-family: "Poppins", system-ui, sans-serif; font-size: 1.1rem; }
