/* =====================================================================
   Plateforme d'appels — thème « verre 3D »
   ===================================================================== */
:root {
  --fond: #060914;
  --fond-2: #0b1124;
  --verre: rgba(255, 255, 255, 0.055);
  --verre-fort: rgba(255, 255, 255, 0.09);
  --bord: rgba(255, 255, 255, 0.11);
  --bord-fort: rgba(255, 255, 255, 0.22);
  --texte: #eef2ff;
  --doux: #9aa6c7;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --rose: #ec4899;
  --degrade: linear-gradient(135deg, var(--cyan), var(--violet));
  --vert: #34d399; --orange: #fbbf24; --rouge: #f87171; --bleu: #60a5fa; --gris: #94a3b8;
  --ombre: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--bord) inset;
  --rayon: 18px;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titre: "Space Grotesk", var(--police);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--police); font-size: 15px; line-height: 1.55;
  color: var(--texte); background: var(--fond); overflow-x: hidden;
}

/* --- Fond : aurores animées + canvas de particules 3D ------------------ */
.aurore { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurore span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.35;
  animation: derive 26s ease-in-out infinite alternate;
}
.aurore span:nth-child(1) { background: #0e7490; top: -25vmax; left: -15vmax; }
.aurore span:nth-child(2) { background: #6d28d9; bottom: -30vmax; right: -20vmax; animation-duration: 32s; animation-delay: -8s; }
.aurore span:nth-child(3) { background: #be185d; top: 30%; left: 40%; width: 40vmax; height: 40vmax; opacity: 0.18; animation-duration: 38s; animation-delay: -15s; }
@keyframes derive {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vmax, 6vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 10vmax) scale(0.95); }
}
#particules { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }

/* --- Menu latéral (à gauche) -------------------------------------------- */
:root { --largeur-menu: 250px; }
header {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--largeur-menu); z-index: 50;
  background: rgba(6, 9, 20, 0.62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid var(--bord); box-shadow: 10px 0 40px -20px rgba(0, 0, 0, .8);
}
nav { height: 100%; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 22px; margin-bottom: 10px; border-bottom: 1px solid var(--bord); font-family: var(--titre); font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; color: var(--texte); }
.logo:hover { color: var(--texte); }
.cube { width: 30px; height: 30px; perspective: 200px; }
.cube i {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9px; font-style: normal; font-size: 15px;
  background: var(--degrade); box-shadow: 0 0 22px rgba(34, 211, 238, .55);
  animation: pivote 6s cubic-bezier(.7, 0, .3, 1) infinite; transform-style: preserve-3d;
}
@keyframes pivote { 0%, 70% { transform: rotateY(0) rotateX(0); } 85% { transform: rotateY(180deg) rotateX(10deg); } 100% { transform: rotateY(360deg) rotateX(0); } }
.texte-degrade { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav a.lien {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: var(--doux); font-weight: 500; transition: color .25s, background .25s, transform .25s;
}
nav a.lien .ico { width: 22px; text-align: center; font-size: 1.05rem; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
nav a.lien:hover { color: var(--texte); background: rgba(255, 255, 255, .05); transform: translateX(3px); }
nav a.lien:hover .ico { transform: scale(1.2) rotate(-6deg); }
nav a.lien.actif {
  color: var(--texte); background: linear-gradient(90deg, rgba(34, 211, 238, .16), rgba(168, 85, 247, .08));
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .25) inset, 0 8px 24px -14px var(--cyan);
}
nav a.lien.actif::before { /* trait lumineux à gauche */
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--degrade); box-shadow: 0 0 12px var(--cyan);
}
nav .droite { margin-top: auto; }

main { margin-left: var(--largeur-menu); max-width: 1320px; padding: 32px 28px 80px; perspective: 1400px; }

h1 { font-family: var(--titre); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 22px; letter-spacing: -.5px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
h2 { font-family: var(--titre); font-size: 1.12rem; margin: 0 0 14px; letter-spacing: -.2px; }
.retour { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--doux); }
.retour:hover { color: var(--texte); }

/* --- Cartes en verre, inclinables en 3D -------------------------------- */
.carte {
  position: relative; background: var(--verre); border-radius: var(--rayon); padding: 22px; margin-bottom: 22px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--ombre);
}
.carte::before { /* liseré lumineux en dégradé */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 211, 238, .45), transparent 35%, transparent 65%, rgba(168, 85, 247, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6;
}
.inclinable {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --brillance: 0;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
  will-change: transform;
}
.inclinable.survol { transition: transform .08s linear, box-shadow .4s; box-shadow: 0 30px 70px -25px rgba(34, 211, 238, .35), 0 0 0 1px var(--bord-fort) inset; }
.inclinable::after { /* reflet qui suit la souris */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(255, 255, 255, .13), transparent 45%);
  opacity: var(--brillance); transition: opacity .4s;
}
.profondeur { transform: translateZ(30px); }

.grille { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* --- Apparition en cascade -------------------------------------------- */
.apparition { opacity: 0; transform: translateY(26px) rotateX(-12deg); animation: apparait .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.apparition.inclinable { animation-name: apparait-incl; }
@keyframes apparait { to { opacity: 1; transform: none; } }
@keyframes apparait-incl { to { opacity: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)); } }

/* --- Tuiles de statistiques ------------------------------------------- */
.chiffres { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.chiffre {
  display: block; position: relative; border-radius: 14px; padding: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  box-shadow: 0 0 0 1px var(--bord) inset; overflow: hidden;
}
.chiffre .valeur { font-family: var(--titre); font-size: 2rem; font-weight: 700; line-height: 1.1; transform: translateZ(25px); }
.chiffre .etiquette { color: var(--doux); font-size: .8rem; margin-top: 4px; transform: translateZ(12px); }
.chiffre.accent .valeur { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chiffre.vert .valeur { color: var(--vert); } .chiffre.orange .valeur { color: var(--orange); }
.chiffre .halo { position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; filter: blur(30px); opacity: .35; background: var(--degrade); }

.heros { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 26px; }
.heros .chiffre { padding: 22px; border-radius: var(--rayon); backdrop-filter: blur(14px); }
.heros .chiffre .valeur { font-size: 2.6rem; }
.heros .icone { font-size: 1.4rem; margin-bottom: 8px; transform: translateZ(40px); display: inline-block; }

/* --- Cartes de campagnes ---------------------------------------------- */
.campagnes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.campagne {
  display: block; color: var(--texte); padding: 22px; border-radius: var(--rayon);
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)); box-shadow: var(--ombre);
  backdrop-filter: blur(14px); position: relative;
}
.campagne:hover { color: var(--texte); }
.campagne .entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; transform: translateZ(30px); }
.campagne .nom { font-family: var(--titre); font-weight: 600; font-size: 1.1rem; }
.campagne .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; transform: translateZ(20px); }
.campagne .mini b { display: block; font-family: var(--titre); font-size: 1.35rem; }
.campagne .mini span { color: var(--doux); font-size: .75rem; }
.progression { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 16px; transform: translateZ(15px); }
.progression i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--degrade); box-shadow: 0 0 12px var(--cyan); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.campagne .date { color: var(--doux); font-size: .78rem; margin-top: 12px; transform: translateZ(10px); }

/* --- Tableau de bord ---------------------------------------------------- */
.heros.six { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.heros .chiffre .valeur small { font-size: .5em; color: var(--doux); margin-left: 2px; -webkit-text-fill-color: var(--doux); }
.direct { display: inline-flex; align-items: center; gap: 8px; font-family: var(--police); font-size: .78rem; font-weight: 600; color: var(--vert); padding: 5px 12px; border-radius: 999px; background: rgba(52, 211, 153, .1); box-shadow: 0 0 0 1px rgba(52, 211, 153, .35) inset; letter-spacing: .3px; text-transform: uppercase; }
.disposition { display: grid; gap: 22px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 960px) { .disposition { grid-template-columns: 1fr; } }
.titre-section { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.titre-section h2 { margin: 0; }
.liste-campagnes { display: grid; gap: 12px; }
.ligne-campagne { display: block; color: var(--texte); padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: 0 0 0 1px var(--bord) inset; transition: transform .25s, background .25s, box-shadow .25s; }
.ligne-campagne:hover { color: var(--texte); transform: translateX(6px); background: rgba(34, 211, 238, .07); box-shadow: 0 0 0 1px rgba(34, 211, 238, .4) inset, -6px 0 20px -10px var(--cyan); }
.ligne-campagne .entete { display: flex; justify-content: space-between; gap: 10px; }
.ligne-campagne .progression { margin-top: 10px; transform: none; }
.mini-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: .82rem; color: var(--doux); }
.point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.point.vert { background: var(--vert); box-shadow: 0 0 8px var(--vert); } .point.bleu { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); } .point.gris { background: var(--gris); }

/* Anneau de résultats en 3D */
.anneau-conteneur { display: grid; place-items: center; padding: 10px 0 18px; perspective: 600px; }
.anneau {
  position: relative; width: 190px; height: 190px; border-radius: 50%; background: var(--secteurs);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(34, 211, 238, .45);
  animation: anneau-entree 1.4s cubic-bezier(.2, .8, .2, 1) backwards; /* backwards : l'inclinaison 3D reprend après */
}
.anneau::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .25), transparent 55%); pointer-events: none; }
.anneau .centre { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1a2140, #080c1a); box-shadow: inset 0 8px 20px rgba(0, 0, 0, .7), 0 0 0 1px var(--bord); display: grid; place-content: center; text-align: center; transform: translateZ(30px); }
.anneau .centre b { font-family: var(--titre); font-size: 2.1rem; line-height: 1; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.anneau .centre span { color: var(--doux); font-size: .78rem; margin-top: 4px; }
@keyframes anneau-entree { from { transform: rotate(-120deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legende li { display: flex; align-items: center; font-size: .86rem; }
.legende li b { margin-left: auto; font-family: var(--titre); }

/* Caller ID */
.caller-actuel { padding: 26px; border-radius: var(--rayon); backdrop-filter: blur(14px); display: flex; flex-direction: column; justify-content: center; }
.caller-actuel .numero { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-top: 8px; word-break: break-all; }

/* Agents */
.liste-agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-agents li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); box-shadow: 0 0 0 1px var(--bord) inset; }
.liste-agents li.inactif { opacity: .5; }
.liste-agents .etat-agent { margin-left: auto; font-size: .8rem; color: var(--doux); }
.agents { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.agent.inactif { opacity: .6; }
.entete-agent { display: flex; align-items: center; gap: 14px; transform: translateZ(25px); }
.entete-agent .nom { font-family: var(--titre); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.avatar { position: relative; width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-family: var(--titre); font-size: 1.4rem; font-weight: 700; background: var(--degrade); box-shadow: 0 10px 25px -8px rgba(168, 85, 247, .8); }
.avatar .voyant { position: absolute; right: -3px; bottom: -3px; border: 2px solid var(--fond); width: 14px; height: 14px; }
.acces { display: grid; gap: 8px; margin-top: 18px; transform: translateZ(15px); }
.acces > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acces > div > .doux { width: 100px; font-size: .82rem; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88rem; padding: 3px 8px; border-radius: 7px; background: rgba(0, 0, 0, .35); box-shadow: 0 0 0 1px var(--bord) inset; color: #c4f1ff; }
.config-zoiper td { padding: 7px 8px; }
.agent .date { margin-top: 12px; font-size: .78rem; }

/* --- Bandeaux ---------------------------------------------------------- */
.bandeau { position: relative; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; background: var(--verre); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--bord) inset; }
.bandeau.test { box-shadow: 0 0 0 1px rgba(251, 191, 36, .5) inset, 0 0 30px -10px rgba(251, 191, 36, .5); color: var(--orange); font-weight: 600; }
.bandeau.info { box-shadow: 0 0 0 1px rgba(34, 211, 238, .45) inset, 0 0 30px -12px rgba(34, 211, 238, .5); }
.bandeau.erreur { box-shadow: 0 0 0 1px rgba(248, 113, 113, .55) inset; color: var(--rouge); }

/* --- État du système --------------------------------------------------- */
.etat { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.etat .puce { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--verre); box-shadow: 0 0 0 1px var(--bord) inset; backdrop-filter: blur(12px); font-size: .88rem; }
.voyant { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 10px var(--rouge); }
.voyant.ok { background: var(--vert); box-shadow: 0 0 10px var(--vert); }
.voyant.ok::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--vert); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* --- Tableaux ---------------------------------------------------------- */
.tableau-defilant { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
th { color: var(--doux); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; }
tbody tr, table tr { transition: background .25s, transform .25s; }
table tr:not(:first-child):hover { background: rgba(34, 211, 238, .06); }
tr.change { animation: ligne-change 1.6s ease-out; }
tr.change .pastille { animation: pastille-change .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes ligne-change { 0% { background: rgba(34, 211, 238, .28); } 100% { background: transparent; } }
@keyframes pastille-change { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* --- Formulaires ------------------------------------------------------- */
label { display: block; font-size: .82rem; color: var(--doux); margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=time], input[type=file], select {
  width: 100%; padding: 10px 12px; border-radius: 10px; font: inherit; color: var(--texte);
  background: rgba(0, 0, 0, .28); border: 1px solid var(--bord); outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15), 0 0 20px -5px var(--cyan); background: rgba(0, 0, 0, .4); }
select option { background: var(--fond-2); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 0; border-radius: 8px; color: #fff; background: var(--degrade); cursor: pointer; font: inherit; }
input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }
input[type=checkbox] { appearance: none; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1px solid var(--bord-fort); background: rgba(0, 0, 0, .3); margin: 0 10px 0 0; display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, box-shadow .2s; }
input[type=checkbox]:checked { background: var(--degrade); border-color: transparent; box-shadow: 0 0 14px rgba(34, 211, 238, .5); }
input[type=checkbox]:checked::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 700; }
.case { display: flex; align-items: center; color: var(--texte); font-size: .95rem; cursor: pointer; margin: 12px 0; }

/* --- Boutons ----------------------------------------------------------- */
button, .bouton {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 11px;
  border: 0; color: #fff; font: inherit; font-weight: 600; cursor: pointer; background: var(--degrade);
  box-shadow: 0 8px 24px -10px rgba(168, 85, 247, .8), 0 0 0 1px rgba(255, 255, 255, .15) inset;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, filter .25s;
}
button:hover, .bouton:hover { transform: translateY(-2px); filter: brightness(1.12); color: #fff; box-shadow: 0 14px 30px -10px rgba(34, 211, 238, .8), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
button:active, .bouton:active { transform: translateY(0) scale(.97); }
button.secondaire, .bouton.secondaire { background: rgba(255, 255, 255, .06); color: var(--texte); box-shadow: 0 0 0 1px var(--bord-fort) inset; }
button.secondaire:hover, .bouton.secondaire:hover { background: rgba(255, 255, 255, .12); }
button.danger { background: rgba(248, 113, 113, .1); color: var(--rouge); box-shadow: 0 0 0 1px rgba(248, 113, 113, .5) inset; }
button.vert { background: linear-gradient(135deg, #10b981, #22d3ee); box-shadow: 0 8px 24px -10px rgba(16, 185, 129, .9), 0 0 0 1px rgba(255, 255, 255, .15) inset; }
button.petit, .bouton.petit { padding: 6px 12px; font-size: .82rem; border-radius: 9px; }
.onde { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: onde .6s ease-out forwards; pointer-events: none; }
@keyframes onde { to { transform: scale(4); opacity: 0; } }
form.ligne { display: inline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* --- Pastilles de statut ----------------------------------------------- */
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; background: color-mix(in srgb, currentColor 14%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent) inset; }
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pastille.vert { color: var(--vert); } .pastille.orange { color: var(--orange); } .pastille.rouge { color: var(--rouge); }
.pastille.bleu { color: var(--bleu); } .pastille.gris { color: var(--gris); }
.pastille.vivant::before { animation: clignote 1.4s ease-in-out infinite; }
@keyframes clignote { 50% { opacity: .25; } }

.doux { color: var(--doux); }
.horaires td { padding: 6px; }
.horaires input { width: 112px; display: inline-block; }
.pagination { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
audio { height: 34px; max-width: 230px; filter: invert(.9) hue-rotate(180deg); border-radius: 20px; }
.vide { text-align: center; padding: 30px 10px; color: var(--doux); }

/* --- Page de connexion ------------------------------------------------- */
.page-connexion { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; perspective: 1200px; }
.connexion { width: 100%; max-width: 400px; text-align: center; padding: 34px 30px; }
.connexion form { text-align: left; }
.connexion button { width: 100%; justify-content: center; margin-top: 8px; padding: 12px; }
.sphere { position: relative; width: 120px; height: 120px; margin: 0 auto 22px; transform-style: preserve-3d; animation: tourne 14s linear infinite; }
.sphere i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--cyan); border-bottom-color: var(--violet); box-shadow: 0 0 18px rgba(34, 211, 238, .25); }
.sphere i:nth-child(1) { transform: rotateY(0deg); }
.sphere i:nth-child(2) { transform: rotateY(60deg); }
.sphere i:nth-child(3) { transform: rotateY(120deg); }
.sphere i:nth-child(4) { transform: rotateX(90deg); border-color: rgba(236, 72, 153, .7); }
.sphere b { position: absolute; inset: 38px; border-radius: 50%; background: var(--degrade); box-shadow: 0 0 40px var(--cyan), 0 0 80px var(--violet); display: grid; place-items: center; font-size: 22px; animation: contre 14s linear infinite; }
@keyframes tourne { from { transform: rotateX(18deg) rotateY(0); } to { transform: rotateX(18deg) rotateY(360deg); } }
@keyframes contre { from { transform: rotateY(0); } to { transform: rotateY(-360deg); } }
.connexion h1 { justify-content: center; margin-bottom: 6px; }
.connexion .sous-titre { color: var(--doux); margin: 0 0 18px; }
.secoue { animation: secoue .5s; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* --- Téléphone ---------------------------------------------------------- */
@media (max-width: 900px) {
  /* Sur petit écran, le menu repasse en haut et défile horizontalement */
  header { position: sticky; bottom: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--bord); }
  nav { flex-direction: row; height: auto; padding: 8px 12px; gap: 4px; overflow-x: auto; overflow-y: hidden; align-items: center; }
  .logo { padding: 6px 10px 6px 0; margin: 0 6px 0 0; border-bottom: 0; flex: none; }
  .logo > span:last-child { display: none; }
  nav a.lien { flex: none; padding: 9px 12px; font-size: .9rem; }
  nav a.lien.actif::before { display: none; }
  nav .droite { margin-top: 0; margin-left: auto; }
  main { margin-left: 0; padding: 22px 16px 80px; }
}
@media (max-width: 700px) {
  .carte { padding: 18px; }
  .heros .chiffre .valeur { font-size: 2rem; }
}

/* --- Moins d'animations si demandé par le système ----------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .apparition { opacity: 1; transform: none; }
  #particules { display: none; }
}
