/* RdvFlow, site vitrine : la base (couleurs du logo sur fond clair, typographie,
   navigation, accueil et son flux en image). Les scènes suivantes sont dans scenes.css. */
:root {
  --fond: #ffffff; --fond-2: #f5f7fb; --carte: #ffffff; --trait: #e6e9f0; --trait-2: #d7dce6;
  --texte: #0f1524; --doux: #5a6478; --pale: #98a2b3;
  --bleu: #4f7fee; --bleu-fonce: #3a64d8; --bleu-clair: #6cb0ff; --bleu-fond: #eef3ff;
  --vert: #0e9f6e; --vert-fond: #e8f7f0; --rouge: #e5484d;
  --ombre: 0 1px 2px rgba(15, 21, 36, .04), 0 12px 32px -12px rgba(15, 21, 36, .12);
  --ombre-forte: 0 2px 4px rgba(15, 21, 36, .04), 0 40px 80px -30px rgba(15, 21, 36, .22);
  --ease: cubic-bezier(.2, .8, .2, 1); --ressort: cubic-bezier(.34, 1.4, .64, 1);
  --titre: 'Plus Jakarta Sans', system-ui, sans-serif;
  --corps: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; background: var(--fond); overflow-x: clip }
body { background: var(--fond); color: var(--texte); font: 16px/1.55 var(--corps); -webkit-font-smoothing: antialiased; overflow-x: clip }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
svg { flex: none }
::selection { background: rgba(79, 127, 238, .2) }
[hidden] { display: none !important }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 8px }
.mono { font-family: var(--mono); font-size: .8em; letter-spacing: .01em }
.bleu { color: var(--bleu) }

/* ── logo : le vrai, version pour fond clair ("rdv" sombre) ── */
.logo { display: inline-flex; align-items: center }
.logo img { display: block; height: 21px; width: auto }
.nav .logo img { height: 20px }
.pied .logo img { height: 20px }

/* ── navigation : une barre d'appli flottante, les sections au centre (la section lue est
   repérée par une pastille qui glisse), le bouton bleu à droite ── */
.nav { position: fixed; inset: 12px 16px auto; z-index: 20; pointer-events: none }
.nav-dedans { pointer-events: auto; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 10px 0 22px; border-radius: 16px;
  background: transparent; box-shadow: none; transition: box-shadow .3s, background .3s, backdrop-filter .3s }
/* en haut de page, la barre se fond dans la page ; elle devient pleine, bordée et ombrée dès qu'on défile */
.nav.defile .nav-dedans, .nav.ouvert .nav-dedans { background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 0 0 1px rgba(15, 21, 36, .06), 0 10px 30px -14px rgba(15, 21, 36, .25) }
.nav-liens { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(15, 21, 36, .04) }
.nav-liens a { position: relative; z-index: 1; padding: 7px 14px; border-radius: 9px; font: 600 .86rem var(--titre); color: var(--doux); transition: color .25s }
.nav-liens a:hover, .nav-liens a.actif { color: var(--texte) }
.nav-marque { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: var(--carte); box-shadow: 0 1px 3px rgba(15, 21, 36, .1); opacity: 0; transition: transform .45s var(--ressort), width .45s var(--ressort), opacity .3s }
.nav-liens a.ici { color: var(--texte); background: var(--carte); box-shadow: 0 1px 3px rgba(15, 21, 36, .1) }
/* le menu du téléphone : deux traits qui deviennent une croix, les liens dans un panneau sous la barre */
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; position: relative; flex: none }
.nav-burger i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--texte); transition: transform .3s var(--ressort), top .3s var(--ressort) }
.nav-burger i:first-child { top: 16px } .nav-burger i:last-child { top: 22px }
.nav.ouvert .nav-burger i:first-child { top: 19px; transform: rotate(45deg) }
.nav.ouvert .nav-burger i:last-child { top: 19px; transform: rotate(-45deg) }
.nav-menu { pointer-events: auto; display: grid; gap: 2px; margin-top: 8px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 0 0 1px rgba(15, 21, 36, .05), 0 24px 48px -20px rgba(15, 21, 36, .3); opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 50% 0; transition: opacity .2s, transform .3s var(--ressort) }
.nav-menu.ouvert { opacity: 1; transform: none }
.nav-menu a { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 11px; font: 600 1rem var(--titre); color: var(--texte) }
.nav-menu a svg { width: 16px; height: 16px; fill: none; stroke: var(--pale); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.nav-menu a.ici { background: var(--fond-2) }
.nav-menu .bouton { justify-content: center; margin-top: 6px; color: #fff; background: var(--bleu) }
.nav-cta { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; font: 600 .86rem var(--titre); color: var(--bleu); white-space: nowrap }
.nav-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ressort) }
.nav-cta:hover { color: var(--bleu-fonce) }
.nav-cta:hover svg { transform: translateX(3px) }
/* le choix de la langue : le drapeau rond de la page, qui ouvre la liste des langues */
.nav-droite { display: flex; align-items: center; gap: 14px }
.legal-tete .nav-droite { gap: 10px }
.langue { position: relative; flex: none; display: flex; align-items: center; gap: 4px }
.langue::before { content: ''; width: 1px; height: 18px; background: rgba(15, 21, 36, .12) }
.langue-bouton { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; transition: background .2s }
.langue-bouton:hover, .langue.ouvert .langue-bouton { background: rgba(15, 21, 36, .05) }
.drapeau { display: block; flex: none; width: 21px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 21, 36, .1) }
.drapeau svg { display: block; width: 100%; height: 100% }
.langue-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--carte);
  box-shadow: 0 0 0 1px rgba(15, 21, 36, .06), 0 24px 48px -20px rgba(15, 21, 36, .3); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: 100% 0; transition: opacity .2s, transform .3s var(--ressort) }
.langue.ouvert .langue-menu { opacity: 1; transform: none }
.langue-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font: 600 .86rem var(--titre); color: var(--doux) }
.langue-menu a:hover { color: var(--texte); background: var(--fond-2) }
.langue-menu a[aria-current] { color: var(--texte) }
.langue-menu a[aria-current]::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--bleu) }
[id] { scroll-margin-top: 84px }

/* ── boutons : encre pleine, ou blanc bordé ── */
.bouton { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font: 700 .95rem var(--titre); color: #fff; background: var(--texte);
  transition: transform .2s var(--ease), background .2s }
.bouton:hover { transform: translateY(-1px); background: #232b40 }
.bouton.petit { padding: 9px 16px; font-size: .85rem; border-radius: 10px }
.bouton.clair, .bouton.fantome { background: var(--carte); color: var(--texte); box-shadow: inset 0 0 0 1px var(--trait-2) }
.bouton.clair:hover, .bouton.fantome:hover { background: var(--fond-2) }

/* ── scènes ── */
.scene { position: relative; max-width: 1180px; margin: 0 auto; padding: 120px 24px }
.sur-titre { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bleu); margin-bottom: 18px }
h1, h2 { font-family: var(--titre); font-weight: 800; letter-spacing: -.035em; line-height: 1.04 }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem) }
.insecable { white-space: nowrap }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 16ch }

/* apparition douce à l'entrée dans l'écran */
.revele { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease) }
.revele.vu { opacity: 1; transform: none }

/* ── 1. accueil : l'accroche qui monte, un bouton, et la fenêtre d'appli en image ── */
.hero { isolation: isolate; padding-top: 124px; padding-bottom: 60px; text-align: center }
.hero h1 { margin: 0 auto 18px }
/* chaque ligne du titre monte depuis un masque, l'une après l'autre */
.hero h1 .l { display: block; overflow: hidden; padding: 0 .1em .14em; margin-bottom: -.14em }
.hero h1 .l > span { display: inline-block; animation: monte 1s var(--ressort) both }
.hero h1 .l:nth-child(2) > span { animation-delay: .12s }
@keyframes monte { from { transform: translateY(110%) } }
.apparait { animation: apparait .9s var(--ease) backwards }
@keyframes apparait { from { opacity: 0; transform: translateY(14px) } }
/* le surlignement : un trait de marqueur bleu, tracé à l'arrivée */
.surligne { position: relative; display: inline-block; white-space: nowrap; color: var(--bleu-fonce); z-index: 0 }
.surligne svg { position: absolute; left: -3%; width: 106%; bottom: -.08em; height: .42em; z-index: -1; overflow: visible }
.surligne path { fill: none; stroke: #c9dbff; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: trace .9s .7s var(--ease) forwards }
@keyframes trace { to { stroke-dashoffset: 0 } }
.emoji { display: inline-block; font-size: .85em; transform-origin: 70% 70%; animation: salue 1.2s 1.3s ease-in-out both }
@keyframes salue { 0%, 100% { transform: none } 30% { transform: rotate(-12deg) scale(1.08) } 60% { transform: rotate(8deg) } }
.fictif { margin-top: 14px; font-size: .78rem; color: var(--pale); text-align: center }
.chapeau { font-size: 1.25rem; color: var(--doux); margin-bottom: 30px }

/* la fenêtre : inclinée en perspective, elle se redresse en montant dans l'écran */
.hero3d { display: block; width: 100%; max-width: 1180px; aspect-ratio: 1920 / 900; margin: 40px auto 0; background: #fff }
.hero-pub { display: block; width: min(1500px, 100vw); aspect-ratio: 1920 / 900; margin: 18px 0 0 calc(50% - min(750px, 50vw)); mix-blend-mode: multiply; animation: apparait 1.1s .45s var(--ease) backwards }
.hero-pub.m { aspect-ratio: 720 / 812; margin-top: 8px }
.flux { position: relative; height: 460px; margin-top: 52px; text-align: left; font-family: var(--titre); perspective: 1600px; animation: apparait 1.1s .45s var(--ease) backwards }
.fx-app { position: absolute; inset: 0; display: grid; grid-template-columns: 37% 1fr; grid-template-rows: auto minmax(0, 1fr); border-radius: 20px; background: var(--carte); border: 1px solid var(--trait); box-shadow: var(--ombre-forte); overflow: hidden;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); transform-origin: 50% 0; will-change: transform }
.fx-contacts, .fx-agenda { display: flex; flex-direction: column; min-width: 0; min-height: 0 }
.fx-contacts { border-right: 1px solid var(--trait) }
.fx-app header { display: flex; align-items: center; gap: 10px; height: 64px; flex: none; padding: 0 18px; border-bottom: 1px solid var(--trait); font: 700 .86rem var(--titre) }
.fx-app header > div { flex: 1; min-width: 0 }
.fx-app header small { display: block; font: 400 .72rem var(--corps); color: var(--pale) }
.fx-loupe { width: 30px; height: 30px; border-radius: 50%; background: #2563eb; display: grid; place-items: center; flex: none }
.fx-loupe svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round }
.fx-live { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem var(--titre); color: var(--vert); background: var(--vert-fond); padding: 4px 9px 4px 7px; border-radius: 99px }
.fx-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--vert) }
.fx-chrome { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #eef1f6; border-bottom: 1px solid var(--trait) }
.fx-chrome i { width: 11px; height: 11px; border-radius: 50% }
.fx-chrome i:nth-child(1) { background: #ff5f57 } .fx-chrome i:nth-child(2) { background: #febc2e } .fx-chrome i:nth-child(3) { background: #28c840 }
.fx-chrome span { margin: 0 auto; padding: 4px 60px; border-radius: 8px; background: var(--carte); font: 500 .74rem var(--corps); color: var(--doux) }

/* la liste : la recherche floue, puis le lot */
.fx-lignes { flex: 1; overflow: hidden; position: relative }
.fx-defile { position: absolute; inset: 0; overflow: hidden; transition: opacity .25s }
.fx-defile.stop { opacity: 0 }
.fx-bande { animation: defile .7s linear infinite; filter: blur(.8px) }
@keyframes defile { to { transform: translateY(-50%) } }
.fx-flou { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; color: var(--doux); font: 500 .8rem var(--titre); opacity: .7; border-bottom: 1px solid var(--fond-2) }
.fx-flou i { width: 24px; height: 24px; border-radius: 50%; background: #e3e8f1; flex: none }
.fx-recherche { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--carte); box-shadow: var(--ombre-forte), 0 0 0 1px var(--trait); font: 500 .84rem var(--corps); color: var(--doux); white-space: nowrap; animation: pop .45s var(--ressort) both }
.fx-recherche svg { width: 16px; height: 16px; fill: none; stroke: var(--bleu); stroke-width: 2.4; stroke-linecap: round }
.fx-compte { font: 700 1rem var(--titre); color: var(--texte); font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.85) } }
.fx-ligne { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--fond-2); animation: arrive .55s var(--ressort) both;
  transition: background .4s, opacity .6s, filter .6s }
@keyframes arrive { from { opacity: 0; transform: translateY(14px) } }
.fx-ligne > div { flex: 1; min-width: 0 }
.fx-ligne b, .fx-ligne small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fx-ligne b { font: 600 .84rem var(--titre) }
.fx-ligne small { font: 400 .74rem var(--corps); color: var(--pale) }
.fx-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden }
.fx-av svg { width: 72%; height: 72%; fill: currentColor; margin-top: 3px }
.fx-etat { flex: none; display: inline-flex; align-items: center; gap: 5px; font: 600 .7rem var(--titre); padding: 4px 9px; border-radius: 99px; background: var(--vert); color: #fff; opacity: 0; transform: scale(.7) }
.fx-etat svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round }
.fx-ligne.ok { background: var(--vert-fond) }
.fx-ligne.ok .fx-etat { opacity: 1; transform: none; transition: opacity .3s, transform .45s var(--ressort) }
.fx-ligne.non { opacity: .28; filter: grayscale(1) }
.fx-ligne.part { animation: sort .4s var(--ease) both }
@keyframes sort { to { opacity: 0; transform: translateY(-10px) } }

/* l'agenda : une vraie vue semaine, heures à gauche, aujourd'hui repéré, ligne de l'heure */
.fx-cal-tete { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); align-items: center; height: 64px; flex: none; border-bottom: 1px solid var(--trait); padding: 0 14px 0 0; font: 500 .72rem var(--corps); color: var(--pale) }
.fx-cal-tete::before { content: "" }
.fx-cal-tete span { text-align: center; white-space: nowrap }
.fx-cal-tete b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 2px; border-radius: 50%; font: 700 .78rem var(--titre); color: var(--texte) }
.fx-cal-tete .ajd { color: var(--bleu) }
.fx-cal-tete .ajd b { background: var(--bleu); color: #fff }
.fx-cal { flex: 1; display: grid; grid-template-columns: 44px 1fr; padding: 6px 14px 14px 0; min-height: 0 }
.fx-heures { position: relative }
.fx-heures span { position: absolute; right: 8px; transform: translateY(-50%); font: 500 .62rem var(--corps); color: var(--pale) }
.fx-heures span:first-child { transform: none }
.fx-zone { position: relative; border-left: 1px solid var(--trait) }
.fx-zone > i { position: absolute; left: 0; right: 0; border-top: 1px solid var(--fond-2) }
.fx-zone > b { position: absolute; top: 0; bottom: 0; width: 20%; border-right: 1px solid var(--fond-2) }
.fx-zone > b.ajd { background: rgba(79, 127, 238, .04) }
.fx-maintenant { position: absolute; width: 20%; height: 0; border-top: 2px solid var(--rouge); z-index: 2 }
.fx-maintenant::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--rouge) }
.fx-evs { position: absolute; inset: 0 }
.fx-ev { position: absolute; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 8px 0 10px; border-radius: 8px; overflow: hidden; box-shadow: inset 3px 0 0 var(--c), 0 6px 14px -8px rgba(15, 21, 36, .25);
  animation: ev .6s var(--ressort) both; transform-origin: 0 50% }
.fx-ev b { font: 700 .7rem var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fx-ev small { font: 500 .62rem var(--corps); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fx-ev.part { animation: evsort .5s var(--ease) both }
@keyframes ev { from { opacity: 0; transform: scale(.4) } }
@keyframes evsort { to { opacity: 0; transform: scale(.9) } }

/* ── pied de page ── */
.pied { max-width: 1180px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; font-size: .9rem }
.pied-marque p { margin-top: 12px; color: var(--pale); max-width: 22em }
.pied-col { display: grid; align-content: start; gap: 9px }
.pied-col b { font: 700 .82rem var(--titre); color: var(--texte); margin-bottom: 2px }
.pied-col a { color: var(--doux); transition: color .2s }
.pied-col a:hover { color: var(--bleu) }
.pied-bas { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--trait); font-size: .8rem; color: var(--pale) }
/* pages légales */
.legal-tete { max-width: 760px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; align-items: center }
.legal-retour { font: 600 .88rem var(--titre); color: var(--bleu) }
.legal { max-width: 760px; margin: 0 auto; padding: 20px 24px 60px; color: var(--doux); line-height: 1.7 }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--texte); margin-bottom: 6px }
.legal-maj { font-size: .85rem; color: var(--pale); margin-bottom: 30px }
.legal h2 { font: 700 1.2rem var(--titre); color: var(--texte); margin: 30px 0 10px; max-width: none }
.legal ul { padding-left: 20px; display: grid; gap: 8px }
.legal b { color: var(--texte) }
.legal a { color: var(--bleu) }
.a-completer { padding: 1px 6px; border-radius: 5px; background: #fff4d6; color: #8a5a00; font-size: .9em }
.legal-pied { max-width: 760px; margin: 0 auto; padding: 24px; display: flex; gap: 20px; border-top: 1px solid var(--trait); font-size: .85rem }
.legal-pied a { color: var(--doux) }

@media (max-width: 760px) {
  .flux { height: 700px; margin-top: 44px }
  .fx-app { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr) }
  .fx-chrome span { padding: 4px 24px }
  .fx-contacts { border-right: 0; border-bottom: 1px solid var(--trait) }
  .fx-lignes { flex: none; height: 216px }
}
@media (max-width: 560px) {
  .nav { inset: 8px 8px auto }
  .nav-dedans { height: 50px; padding: 0 4px 0 16px; border-radius: 14px }
  .nav .logo img { height: 17px }
  .nav-cta { font-size: .8rem; padding: 8px 10px }
  .nav-liens { display: none }
  .nav-burger { display: block; margin-left: -12px }
  .nav-droite { margin-left: auto }
  .nav-cta svg { display: none }
  .scene { padding: 84px 16px }
  .hero { padding-top: 116px; padding-bottom: 40px }
  .chapeau { font-size: 1.05rem }
  .fx-ligne { height: 54px; padding: 0 16px }
  .fx-ev { padding: 0 4px 0 7px }
  .fx-ev b { font-size: .62rem }
  .fx-cal-tete { grid-template-columns: 34px repeat(5, minmax(0, 1fr)); font-size: .62rem }
  .fx-cal-tete b { min-width: 20px; height: 20px; font-size: .68rem }
  .fx-cal { grid-template-columns: 34px 1fr }
  .fx-heures span { right: 5px; font-size: .55rem }
  .pied { grid-template-columns: 1fr 1fr; gap: 26px } .pied-marque { grid-column: 1 / -1 }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .revele { opacity: 1; transform: none; transition: none }
  .surligne path { animation: none; stroke-dashoffset: 0 }
  .emoji, .hero h1 .l > span, .apparait, .flux { animation: none }
}
