/* Lekipo : feuille de style unique. Univers clair de l'appli. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/polices/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
/* Police de repli aux mesures proches, pour que l'arrivée de la vraie police ne fasse pas sauter la page. */
@font-face {
  font-family: "Repli";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --fond: #f4f3fb;
  --surface: #fff;
  --encre: #0c111d;
  --texte: #474c66;
  --trait: #e2e0f0;
  --trait-fort: #c9c5e4;
  --indigo: #4b3bbd;
  --indigo-fonce: #3a2db0;
  --indigo-pale: #e9e6fc;
  --bleu: #2f6fed;
  --jaune: #f5b301;
  --orange: #e4572e;
  --matin: #d7e4fd; --matin-t: #1b3a85;
  --journee: #fde6a1; --journee-t: #5a4300;
  --soir: #fdd7ca; --soir-t: #7d2b13;
  --nuit: #e3ddfb; --nuit-t: #3a2d7d;
  --vert: #e3f4ea; --vert-t: #1f5a3a;
  --rouge: #fde4e1; --rouge-t: #8a1c12;
  --gris: #eeedf5;
  --ombre: 0 1px 2px rgba(23, 20, 70, .06), 0 28px 56px -28px rgba(40, 30, 120, .32);
  --bandeau: 40px;
  --doux: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --police: "Bricolage Grotesque", "Repli", system-ui, sans-serif;
  --gouttiere: 16px;
  --largeur: 1200px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gouttiere: 32px; } }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bandeau) + 88px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fond); color: var(--encre);
  font-family: var(--police); font-size: 17px; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--indigo-fonce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
p, ul, ol { margin: 0 0 1em; }
figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
strong { font-weight: 700; }
small { font-size: .875em; }

h1, h2, h3 { margin: 0 0 .45em; color: var(--encre); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1.02; font-weight: 740; font-stretch: 88%; letter-spacing: -.022em; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3.25rem); line-height: 1.06; font-weight: 740; font-stretch: 90%; letter-spacing: -.018em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.2; font-weight: 700; }
.chapeau { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.3rem); line-height: 1.5; color: var(--texte); max-width: 36em; text-wrap: pretty; }
.chapeau strong { color: var(--encre); font-weight: 650; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 16px; top: 8px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--encre); color: #fff; font-weight: 650; text-decoration: none; transform: translateY(-300%); }
.evitement:focus { transform: none; }

.int { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.section { padding-block: clamp(72px, 8vw, 104px); }
.blanc { background: var(--surface); }

/* Les blocs de l'accueil et les écrans dessinés posent leurs marges eux-mêmes. */
:is(.accueil, .bande-chiffres, .accueil-section, .entete, .pied, .fenetre, .tel) :where(p, ul, ol, h2, h3) { margin: 0; }
:is(.accueil, .bande-chiffres, .accueil-section, .entete, .pied, .fenetre, .tel) :where(ul, ol) { padding: 0; list-style: none; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Le petit drapeau : trois rectangles, un fin contour pour que le blanc se voie sur fond clair. */
.drapeau { flex: none; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(12, 17, 29, .18); }
.france { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--encre); }

/* ---------- Le bandeau qui défile, fixé en haut de chaque page ---------- */
.bandeau { position: relative; z-index: 0; height: var(--bandeau); display: flex; background: var(--encre); color: #fff; }
.bandeau-lien { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.bandeau-lien:hover .phrase { text-decoration: underline; text-underline-offset: 3px; }
.bandeau-lien:focus-visible, .bandeau-pause:focus-visible { outline: 2px solid var(--jaune); outline-offset: -5px; border-radius: 8px; }
.piste { display: flex; width: max-content; }
.groupe { display: flex; }
.item { display: inline-flex; align-items: center; gap: 12px; padding-right: 44px; white-space: nowrap; }
.marque-barres { width: 15px; height: 12px; flex: none; }
.bandeau-pause { flex: none; width: 48px; display: grid; place-items: center; padding: 0; background: var(--encre); color: #fff; border: 0; border-left: 1px solid rgba(255, 255, 255, .2); cursor: pointer; }
.bandeau-pause .ic { width: 16px; height: 16px; }
/* Sans JavaScript : la phrase, une fois, centrée et immobile. */
html:not(.js) .piste { width: 100%; justify-content: center; }
html:not(.js) :is(.groupe + .groupe, .item + .item) { display: none; }
html:not(.js) .item { padding-right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .piste { animation: defile 36s linear infinite; }
  .bandeau:hover .piste, .bandeau:focus-within .piste, .bandeau.arret .piste { animation-play-state: paused; }
}
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 90; background: var(--fond); border-bottom: 1px solid var(--trait); }
.entete-int { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; min-height: 72px; } /* ses menus passent par-dessus le bandeau */
.logo-lien { display: inline-flex; color: var(--encre); text-decoration: none; border-radius: 8px; }
.entete .marque-logo { width: 136px; height: auto; }
@media (min-width: 640px) { .entete .marque-logo { width: 160px; } }
.pied .marque-logo { width: 200px; height: auto; }
/* « TM » en exposant, à droite du logo de l'en-tête. */
html:not(.js) .avec-js { display: none; }
@media (max-width: 379px) { .entete .marque-logo { width: 124px; } }
.tm { align-self: flex-start; margin: 1px 0 0 -2px; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .03em; }

.nav-large { display: none; align-items: center; gap: 4px; margin-inline: auto; }
.nav-large > a, .deroulant summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--encre); text-decoration: none; font-weight: 560; cursor: pointer; }
.nav-large a[aria-current="page"] { color: var(--indigo-fonce); box-shadow: inset 0 -2px 0 var(--indigo); }
@media (hover: hover) and (pointer: fine) { .nav-large > a:hover, .deroulant summary:hover { background: var(--indigo-pale); } }
.deroulant { position: relative; }
.deroulant summary { list-style: none; }
.deroulant summary::-webkit-details-marker { display: none; }
.deroulant summary .ic { width: 16px; height: 16px; transition: transform .2s var(--doux); }
.deroulant[open] summary .ic { transform: rotate(180deg); }
.deroulant-liste { position: absolute; left: 0; top: calc(100% + 8px); width: 300px; margin: 0; padding: 8px; display: grid; background: var(--surface); border-radius: 14px; box-shadow: var(--ombre), 0 0 0 1px var(--trait); }
.deroulant-liste a, .menu-liste a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--encre); text-decoration: none; font-weight: 560; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .deroulant-liste a:hover, .menu-liste a:hover { background: var(--indigo-pale); } }

.entete-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu { position: relative; }
.menu-bouton { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; border-radius: 10px; font-weight: 600; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--trait); }
.menu-bouton::-webkit-details-marker { display: none; }
.menu-liste { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); max-height: calc(100vh - var(--bandeau) - 96px); overflow-y: auto; padding: 8px; display: grid; background: var(--surface); border-radius: 14px; box-shadow: var(--ombre), 0 0 0 1px var(--trait); }
.menu-groupe { margin: 6px 14px 2px; font-size: 13px; font-weight: 700; color: var(--texte); }
.menu-liste .menu-sous { padding-left: 24px; font-weight: 500; }
.menu-liste a[aria-current="page"] { color: var(--indigo-fonce); background: var(--indigo-pale); }
@media (prefers-reduced-motion: no-preference) {
  :is(.menu, .deroulant)[open] :is(.menu-liste, .deroulant-liste) { animation: ouvre .2s var(--doux); }
}
@keyframes ouvre { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 979px) { .entete-actions .connexion { display: none; } }
@media (min-width: 980px) {
  .nav-large { display: flex; }
  .menu { display: none; }
  .entete-actions { margin-left: 0; }
}
@media (max-width: 419px) {
  .menu-mot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-bouton { padding: 0; width: 44px; }
  .entete-int { gap: 8px; }
}

/* À l'arrivée sur l'accueil, les lettres du logo de l'en-tête roulent comme des galets, l'une après l'autre : la même
   animation que dans l'appli (ses valeurs), à la place du logo, pas en grand. Pas pour qui a demandé moins d'animations. */
@media screen and (prefers-reduced-motion: no-preference) {
  body:has(.accueil) .entete .marque-logo { overflow: visible; }
  body:has(.accueil) .entete .tm { animation: apparait .3s ease .55s backwards; }
  body:has(.accueil) .entete .marque-logo .lettre { transform-box: fill-box; transform-origin: center; animation: rouler .55s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--i) * 40ms); }
}
@keyframes rouler { from { opacity: 0; transform: translateX(-160px) rotate(-200deg); } }

/* ---------- Boutons : rectangles arrondis, jamais de pilule ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 650; font-size: 17px; line-height: 1.1; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .16s var(--doux), background-color .2s ease, box-shadow .2s ease;
}
.bouton:active { transform: scale(.97); }
.bouton-principal { background: var(--indigo); color: #fff; box-shadow: 0 10px 22px -10px rgba(69, 54, 201, .7); }
.bouton-secondaire { background: var(--surface); color: var(--indigo-fonce); box-shadow: inset 0 0 0 1.5px var(--trait-fort); }
@media (hover: hover) and (pointer: fine) {
  .bouton-principal:hover { background: var(--indigo-fonce); }
  .bouton-secondaire:hover { background: var(--indigo-pale); }
}
.bouton-petit { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.actions-centre { justify-content: center; margin-top: 36px; }
.plus { display: inline-block; margin-top: 22px; font-weight: 650; color: var(--indigo-fonce); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; border-radius: 4px; }
.plus:hover { text-decoration-color: var(--jaune); }
.rejouer {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  background: transparent; color: var(--indigo-fonce); border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.rejouer::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .rejouer:hover { background: var(--indigo-pale); } }

/* ---------- Entrées en cascade (JS ajoute .vu quand le bloc arrive à l'écran) ---------- */
/* Règle : sans JavaScript ou en mouvement réduit, tout est dans son état final. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-entree]:not(.vu) > * { opacity: 0; }
  .js [data-entree].vu > * { animation: entree 800ms var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 110ms); }
  [data-entree] > :first-child { --n: 0; }
  [data-entree] > :nth-child(2) { --n: 1; }
  [data-entree] > :nth-child(3) { --n: 2; }
  [data-entree] > :nth-child(4) { --n: 3; }
  [data-entree] > :nth-child(5) { --n: 4; }
  [data-entree] > :nth-child(n+6) { --n: 5; }
  /* Une scène de l'accueil attend d'être à l'écran pour se jouer (une seule fois). */
  .js .accueil-section [data-scene]:not(.vu), .js .accueil-section [data-scene]:not(.vu) *,
  .js .bande-chiffres [data-scene]:not(.vu), .js .bande-chiffres [data-scene]:not(.vu) * { animation-play-state: paused !important; }
}
@keyframes entree { from { opacity: 0; transform: translateY(20px); } }
@keyframes monte { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes tombe { from { opacity: 0; transform: translateY(-14px); } }
@keyframes descend { from { transform: translateY(-105%); } }
@keyframes apparait { from { opacity: 0; } }
@keyframes pousse { from { opacity: 0; transform: scale(.4); } }
@keyframes sonne { 0%, 100% { transform: none; } 15% { transform: rotate(-2deg); } 35% { transform: rotate(1.6deg); } 55% { transform: rotate(-1deg); } 75% { transform: rotate(.5deg); } }
@keyframes volet { from { transform: translateX(-100%); } }
@keyframes contre-volet { from { transform: translateX(100%); } }
@keyframes grandit { from { transform: scaleX(0); } }
@keyframes leve { from { transform: scaleY(0); } }
@keyframes valide { 0%, 100% { opacity: 0; } 15%, 70% { opacity: 1; } }

/* ---------- Accueil : le haut de page ---------- */
.accueil { padding-top: 72px; text-align: center; overflow-x: clip; }
.statut { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait); font-size: 15px; font-weight: 560; color: var(--texte); }
.accueil h1 { margin-inline: auto; max-width: 13em; font-size: clamp(44px, 6.6vw, 84px); line-height: 1; }
.accueil .chapeau { margin: 26px auto 0; max-width: 34em; font-size: clamp(18px, 2vw, 21px); }
.accueil .france { margin-top: 20px; padding: 8px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait); font-size: 15px; }
.confiance { display: flex; justify-content: center; align-items: flex-start; gap: 10px; max-width: 36em; margin: 16px auto 0; font-size: 15px; line-height: 1.45; color: var(--texte); text-align: left; }
.confiance strong { color: var(--encre); }
.confiance .ic { margin-top: 1px; color: var(--indigo-fonce); }

.scene-accueil { position: relative; margin-top: 64px; padding-bottom: 160px; }
.legende { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; margin-top: 14px; font-size: 14px; color: var(--texte); text-align: center; }

/* Écrans dessinés : fenêtre d'ordinateur */
.fenetre { background: var(--surface); border-radius: 16px; box-shadow: var(--ombre), 0 0 0 1px rgba(30, 20, 90, .05); text-align: left; }
.ecran-planning { width: 880px; max-width: 100%; padding: 22px 22px 18px; }
.ecran-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.ecran-titre { font-size: 26px; line-height: 1.1; font-weight: 760; font-stretch: 88%; letter-spacing: -.02em; color: var(--encre); }
.ecran-sous { margin-top: 3px; font-size: 14px; color: var(--texte); }
.ecran-actions { display: flex; gap: 8px; }
.faux { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; font: inherit; font-size: 13px; font-weight: 650; white-space: nowrap; }
.faux .ic { width: 15px; height: 15px; }
.faux.pale { background: var(--indigo-pale); color: var(--indigo-fonce); }
.faux.plein { background: var(--indigo); color: #fff; }
.faux.valider { background: #157a43; color: #fff; }
/* « Valider les changements » ne se voit que pendant qu'un changement attend, comme dans l'appli : une fois validé, il n'est plus là. */
.ecran-actions .valider { opacity: 0; }
button.faux { cursor: pointer; min-height: 40px; transition: transform .16s var(--doux), background-color .2s ease; }
button.faux:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) {
  button.faux.plein:hover { background: var(--indigo-fonce); }
  button.faux.pale:hover { background: #dcd7fa; }
}

.ecran-planning .grille { display: grid; grid-template-columns: 116px repeat(7, minmax(0, 1fr)); }
.ecran-planning .ligne { display: contents; }
.ecran-planning .c { min-width: 0; padding: 3px; }
.ecran-planning .c.auj { background: #eeecfb; }
.ecran-planning .ligne:first-child .c.auj { border-radius: 14px 14px 0 0; }
.ecran-planning .ligne:last-child .c.auj { border-radius: 0 0 14px 14px; }
.ecran-planning .jour { padding: 8px 6px 10px; font-size: 13px; color: var(--texte); }
.ecran-planning .jour b { margin-left: 4px; font-size: 17px; color: var(--encre); }
.ecran-planning .nom { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-style: normal; }
.av-l { background: var(--matin); color: var(--matin-t); }
.av-t { background: var(--soir); color: var(--soir-t); }
.av-s { background: var(--journee); color: var(--journee-t); }
.av-h { background: var(--nuit); color: var(--nuit-t); }
.av-c { background: #d9f0e3; color: #1f5a3a; }
.av-q { background: var(--surface); color: var(--indigo); border: 1.5px dashed var(--indigo); }

.poste { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 8px; border-radius: 12px; font-size: 12px; line-height: 1.2; text-align: left; }
.poste b { display: block; font-weight: 700; }
.poste small { display: block; font-size: 11px; white-space: nowrap; }
.poste .ic { width: 14px; height: 14px; }
.m { background: var(--matin); color: var(--matin-t); }
.j { background: var(--journee); color: var(--journee-t); }
.s { background: var(--soir); color: var(--soir-t); }
.n { background: var(--nuit); color: var(--nuit-t); }
.cp { background: repeating-linear-gradient(135deg, #efeef4 0 6px, #e3e2eb 6px 12px); color: #3d4157; }
.ap { background: var(--surface); color: var(--indigo-fonce); border: 1.5px dashed var(--indigo); }
.ecran-planning .ap .ic { display: none; }
/* Un poste qui change : le nouveau descend par-dessus l'ancien. */
.change { position: relative; overflow: hidden; }
.change > .nouveau { position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) and (pointer: fine) {
  .ecran-planning .poste { transition: transform .2s var(--doux), box-shadow .2s ease; }
  .ecran-planning .poste:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(40, 30, 120, .5); }
}

/* Écrans dessinés : téléphone */
.tel { width: 272px; padding: 9px; border-radius: 40px; background: #1b1d2e; box-shadow: var(--ombre), 0 36px 60px -24px rgba(20, 15, 70, .45); }
.tel-ecran { position: relative; height: 560px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 18px 14px 0; border-radius: 31px; background: #f6f5fc; text-align: left; color: var(--encre); }
.tel-logo { align-self: flex-start; height: 20px; width: auto; color: var(--encre); }
.tel-ecran.avec-notif { padding-top: 76px; }
.tel-titre { font-size: 25px; line-height: 1.1; font-weight: 760; font-stretch: 88%; letter-spacing: -.02em; }
.tel-carte { display: grid; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--trait); }
.tel-jour { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--texte); }
.tel-jour .poste { width: 124px; height: 42px; }
.tel-ligne { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--trait); font-size: 13px; font-weight: 600; }
.pastille { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--indigo); color: #fff; font-size: 11px; font-weight: 700; }
.tel-semaine { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 10px; color: var(--texte); font-weight: 600; }
.tel-semaine > span { display: grid; gap: 4px; justify-items: center; }
.tel-semaine i, .cal i { display: grid; place-items: center; width: 26px; height: 22px; border-radius: 7px; }
.cal i { height: 20px; }
.tel-semaine .nouveau { display: grid; place-items: center; }
.tel-semaine .ic, .cal .ic { width: 12px; height: 12px; }
.tel-onglets { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 10px 14px; background: var(--surface); border-top: 1px solid var(--trait); font-size: 11px; font-weight: 600; text-align: center; color: var(--texte); }
.tel-onglets span { padding: 8px 0; border-radius: 10px; }
.tel-onglets .actif { background: var(--indigo-pale); color: var(--indigo-fonce); }
.notif { position: absolute; z-index: 2; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 14px 30px -12px rgba(20, 15, 70, .4), 0 0 0 1px var(--trait); font-size: 12px; line-height: 1.35; }
.notif .ic { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--indigo); color: #fff; }
.notif b { display: block; font-size: 11px; color: var(--texte); font-weight: 600; }
.notif span { font-weight: 650; }
.tel-hero { position: absolute; right: 0; top: 36px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; text-align: center; font-size: 12px; line-height: 1.2; font-weight: 650; }
.cal .t { padding-bottom: 2px; font-size: 10px; font-weight: 600; color: var(--texte); }
.cal span { display: grid; justify-items: center; gap: 2px; padding: 2px 0; border-radius: 10px; }
.cal span.auj { box-shadow: inset 0 0 0 1.5px var(--indigo); }

.conv { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); font-weight: 650; font-size: 15px; }
.bulles { display: grid; gap: 8px; font-size: 13px; line-height: 1.4; }
.bulle { max-width: 82%; padding: 9px 12px; border-radius: 16px; }
.bulle.eux { background: var(--surface); box-shadow: 0 0 0 1px var(--trait); border-bottom-left-radius: 6px; }
.bulle.moi { justify-self: end; background: var(--indigo); color: #fff; border-bottom-right-radius: 6px; }
.bulle small { display: block; margin-top: 2px; font-size: 10px; opacity: .8; }
.saisie { position: absolute; left: 14px; right: 14px; bottom: 74px; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--trait); font-size: 13px; color: var(--texte); }
.saisie .ic { width: 18px; height: 18px; color: var(--indigo); }

/* L'accueil du responsable : trois chiffres de la semaine d'exemple */
.bande-chiffres { padding-top: 24px; }
.chiffres-ecran { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 32px; padding: 22px 24px; }
.chiffres-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.galet-chiffre { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--fond); box-shadow: inset 0 0 0 1px var(--trait); }
.galet-chiffre .ic { grid-row: 1 / 3; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--surface); color: var(--indigo-fonce); box-shadow: 0 0 0 1px var(--trait); }
.galet-chiffre strong { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; font-weight: 760; font-stretch: 88%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.galet-chiffre > span { font-size: 15px; line-height: 1.3; color: var(--texte); }
[data-compte] { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }

/* Fonctions */
.titre-section { max-width: 18em; }
.intro { margin-top: 16px; max-width: 36em; font-size: 19px; color: var(--texte); text-wrap: pretty; }
.blocs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 96px; margin-top: 64px; }
.bloc { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.bloc:nth-child(even) { grid-template-columns: 7fr 5fr; }
.bloc:nth-child(even) .bloc-texte { order: 2; }
.etiquette { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 15px; font-weight: 650; color: var(--indigo-fonce); }
.etiquette .ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--indigo-pale); }
.bloc h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; font-weight: 740; font-stretch: 90%; letter-spacing: -.02em; }
.bloc-texte p { margin-top: 14px; font-size: 18px; color: var(--texte); text-wrap: pretty; }
.bloc-texte .etiquette { margin-top: 0; font-size: 15px; color: var(--indigo-fonce); }
.coches { display: grid; gap: 10px; margin-top: 20px; }
.coches li { display: flex; gap: 10px; font-size: 17px; }
.coches .ic { margin-top: 3px; color: var(--indigo); stroke-width: 2.4; }
.estrade { display: grid; place-items: center; min-height: 460px; padding: 40px; border-radius: 16px; }
.estrade > * { transition: transform .3s var(--doux); }
@media (hover: hover) and (pointer: fine) { .estrade:hover > * { transform: translateY(-4px); } }
.t-bleu { background: #e6eefe; }
.t-jaune { background: #fdf1cd; }
.t-corail { background: #fde4da; }
.t-lavande { background: #ebe7fc; }

/* Panneaux d'ordinateur des fonctions */
.panneau { width: min(100%, 520px); padding: 22px; }
.panneau-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panneau .ecran-titre { font-size: 22px; }
.compte { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--indigo-pale); color: var(--indigo-fonce); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.demandes { display: grid; gap: 10px; }
.demandes li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 66px; padding: 12px; border-radius: 14px; box-shadow: 0 0 0 1px var(--trait); }
.demandes .quoi { flex: 1 1 180px; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--texte); }
.demandes .quoi b { display: block; font-size: 15px; color: var(--encre); }
.accord, .dem-fait { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: var(--vert); color: var(--vert-t); font-size: 12px; font-weight: 650; }
.accord .ic, .dem-fait .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.dem-choix { display: flex; gap: 6px; margin-left: auto; }
.dem-fait { margin: 0 0 0 auto; padding: 6px 10px; font-size: 13px; }
.dem-fait.refusee { background: var(--gris); color: var(--texte); }
.dem-fin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.calme { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--vert-t); }
.calme .ic { width: 18px; height: 18px; stroke-width: 2.4; }
@media (prefers-reduced-motion: no-preference) {
  .dem-fait:not([hidden]), .dem-fin:not([hidden]) { animation: monte .3s var(--doux); }
}

.heures { width: 100%; border-collapse: collapse; font-size: 14px; }
.heures th { padding: 0 8px 8px; text-align: left; font-size: 12px; font-weight: 600; color: var(--texte); border-bottom: 1px solid var(--trait); }
.heures td { padding: 9px 8px; border-bottom: 1px solid #efeef6; }
.heures tr:last-child td { border-bottom: 0; }
.heures .chiffre { text-align: right; font-variant-numeric: tabular-nums; }
.heures td:first-child { font-weight: 600; white-space: nowrap; }
.heures .av { display: inline-grid; vertical-align: middle; width: 26px; height: 26px; margin-right: 10px; font-size: 12px; }

.qui { display: flex; align-items: center; gap: 12px; }
.qui .av { width: 44px; height: 44px; font-size: 17px; }
.droits { display: grid; gap: 8px; }
.droits li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 14px; box-shadow: 0 0 0 1px var(--trait); font-size: 15px; }
.droit { display: flex; flex: 1; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.droit b { font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .droit:hover { background: var(--fond); } }
.coche-case { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #9e9abf; color: #fff; transition: background-color .2s ease, border-color .2s ease; }
.coche-case .ic { width: 15px; height: 15px; stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .25s var(--doux); }
.droit[aria-pressed="true"] .coche-case { background: var(--indigo); border-color: var(--indigo); }
.droit[aria-pressed="true"] .coche-case .ic { opacity: 1; transform: none; }
.portee { margin-left: auto; padding: 3px 9px; border-radius: 7px; background: #f1f0f8; color: var(--texte); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* L'écran « Statistiques » de l'appli, avec des chiffres d'exemple */
.stats-figure { margin-top: 48px; }
.stats { padding: 24px; }
.stats-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.stats-gauche { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.stats-titre { font-size: 30px; line-height: 1.1; font-weight: 760; font-stretch: 88%; letter-spacing: -.02em; }
.stats-periode { display: flex; align-items: center; gap: 8px; }
.stats-periode b { font-size: 19px; font-weight: 700; }
.rond { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fond); box-shadow: inset 0 0 0 1px var(--trait); color: var(--texte); }
.rond .ic { width: 16px; height: 16px; }
.stats-gauche .ecran-sous { margin: 0; }
.stats-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.puces { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--fond); }
.puces button { min-height: 30px; padding: 6px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--texte); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.puces [aria-checked="true"] { background: var(--indigo); color: #fff; }
.puces button:focus-visible { outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .puces [aria-checked="false"]:hover { background: #ebe9f8; } }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 14px; background: var(--fond); overflow: hidden; }
.kpi { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border: 0; border-top: 3px solid transparent; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease; }
.kpi:focus-visible { outline-offset: -5px; }
.kpi + .kpi { box-shadow: inset 1px 0 0 var(--trait); }
.kpi[aria-selected="true"] { background: var(--surface); border-top-color: var(--indigo); }
@media (hover: hover) and (pointer: fine) { .kpi[aria-selected="false"]:hover { background: #ebe9f8; } }
.etiq { font-size: 14px; color: var(--texte); }
.kpi strong { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; font-weight: 760; font-stretch: 88%; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tendance { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--gris); color: var(--texte); font-size: 12px; font-weight: 700; }
.tendance.mieux { background: var(--vert); color: var(--vert-t); }
.tendance.moins { background: var(--rouge); color: var(--rouge-t); }
.fl { width: 9px; height: 9px; flex: none; }
.graphe { margin-top: 16px; padding: 18px 20px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--trait); }
.graphe-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.graphe-titre { font-size: 17px; font-weight: 700; }
.gc-cle { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--texte); }
.gc-cle span { display: inline-flex; align-items: center; gap: 8px; }
.gc-cle i { width: 18px; height: 0; border-top: 3px solid var(--indigo); }
.gc-cle i.gris { border-top-color: #b4b1c8; }
.gc-cle i.tirets { border-top-style: dashed; }
.gc { padding-left: 40px; }
.gc-zone { position: relative; height: 240px; margin-top: 30px; }
.gc-ligne { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--trait); font-style: normal; }
.gc-ligne small { position: absolute; right: calc(100% + 8px); top: -.7em; font-size: 12px; line-height: 1.2; color: var(--texte); white-space: nowrap; }
.gc-zone svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gc-zone path { fill: none; stroke: var(--indigo); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gc-avant path { stroke: #b4b1c8; stroke-width: 2; }
.gc-zone path.tirets { stroke-dasharray: 5 5; stroke-linecap: butt; }
.gc-trace { position: absolute; inset: -4px 0; overflow: hidden; }
.gc-trace > svg { top: 4px; bottom: 4px; height: calc(100% - 8px); }
.gc-auj { position: absolute; top: -10px; bottom: 0; width: 0; border-left: 1px solid #9e9abf; }
.gc-auj small { position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--encre); }
.gc-point { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 3px var(--surface); }
.gc-noms { position: relative; height: 26px; margin-top: 6px; font-size: 12px; color: var(--texte); }
.gc-noms span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.gc-noms span:first-child { transform: none; }
.gc-noms span:last-child { transform: translateX(-80%); }
.listes-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.carte-stat { padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--trait); }
.carte-titre { margin-bottom: 12px !important; font-size: 16px; font-weight: 700; }
.sb { display: grid; gap: 10px; }
.sb-l { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.sb-l b { font-weight: 700; font-variant-numeric: tabular-nums; }
.piste-barre { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 3px; background: var(--indigo-pale); overflow: hidden; }
.piste-barre i { display: block; height: 100%; width: calc(var(--part) * 100%); border-radius: 3px; background: var(--indigo); transform-origin: left; }
.listes-stat.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gens { margin: 0; padding: 0; list-style: none; }
.ln { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.ln + .ln { border-top: 1px solid var(--trait); }
.ln b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.carte-stat .calme { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--texte); }
.carte-stat .calme .ic { width: 18px; height: 18px; color: var(--vert-t); stroke-width: 2.4; }
/* Colonnes (jours d'avance, turnover) et écart avec les contrats (barres autour du trait du contrat), comme dans l'appli. */
.sc, .ge { --haut: 180px; margin-top: 8px; }
.sc-zone, .ge-zone, .sc-noms { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.sc-zone, .ge-zone { position: relative; }
.sc-zone { height: calc(var(--haut) + 30px); align-items: end; border-bottom: 1px solid var(--trait); }
.sc-zone > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.sc-zone b, .ge-zone b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--encre); }
.sc-zone small, .ge-zone small { font-size: 11px; line-height: 1.25; text-align: center; color: var(--texte); }
.sc-zone > div > i { display: block; width: min(100%, 96px); height: max(3px, calc(var(--part) * var(--haut))); border-radius: 6px 6px 2px 2px; background: var(--indigo); transform-origin: bottom; }
.sc-zone > .autre > i { background: var(--trait-fort); }
.sc-zone > .sans { padding-bottom: 6px; }
.repere { position: absolute; left: 0; right: 0; bottom: calc(var(--a) * var(--haut)); height: 0; border-top: 1.5px dashed #9e9abf; text-decoration: none; pointer-events: none; }
.repere small { position: absolute; right: 0; bottom: 4px; padding-left: 6px; background: var(--surface); }
.sc-noms { margin-top: 8px; font-size: 12px; line-height: 1.25; text-align: center; color: var(--texte); }
.ge-zone { height: calc(var(--haut) + 60px); }
.ge-zone > div { position: relative; }
.ge-zero { position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 1.5px solid #9e9abf; font-style: normal; }
.ge-zero small { position: absolute; right: 0; bottom: 4px; font-style: italic; }
.ge-zone > div > i { position: absolute; left: 0; right: 0; width: min(100%, 96px); height: calc(var(--part) * var(--haut) / 2); margin-inline: auto; }
.ge-zone > div > b { position: absolute; left: 0; right: 0; text-align: center; }
.dessus > i { bottom: 50%; border-radius: 6px 6px 2px 2px; background: var(--orange); transform-origin: bottom; }
.dessous > i { top: 50%; border-radius: 2px 2px 6px 6px; background: var(--trait-fort); transform-origin: top; }
.dessus > b { bottom: calc(50% + var(--part) * var(--haut) / 2 + 6px); }
.dessous > b { top: calc(50% + var(--part) * var(--haut) / 2 + 6px); }
.pile > b { bottom: calc(50% + 6px); color: var(--vert-t); }
.ge-zone > .sans { display: flex; align-items: center; justify-content: center; }

/* Secteurs */
.secteurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px !important; }
.secteurs li { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 16px; background: var(--fond); font-size: 17px; font-weight: 650; line-height: 1.25; transition: transform .25s var(--doux), box-shadow .25s ease; }
@media (hover: hover) and (pointer: fine) { .secteurs li:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(40, 30, 120, .45); } }
.secteurs .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--surface); color: var(--indigo-fonce); }
.secteurs-fin { display: flex; align-items: center; gap: 18px; margin-top: 28px !important; padding: 22px 24px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--trait); font-size: 18px; }
.secteurs-fin b { font-weight: 700; }
.mini-postes { display: flex; gap: 6px; flex: none; }
.mini-postes i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.mini-postes .ic { width: 16px; height: 16px; }

/* Le mot du fondateur, sur toute la largeur */
.fondateur { display: grid; justify-items: center; gap: 28px; padding: clamp(28px, 5vw, 64px); border-radius: 16px; background: var(--surface); box-shadow: var(--ombre); text-align: center; }
.fondateur blockquote p { max-width: 30em; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.36; font-weight: 560; letter-spacing: -.01em; text-wrap: pretty; }
.signature { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; color: var(--texte); }
.signature .marque-barres { width: 22px; height: 18px; }

/* Avant, avec Lekipo */
.colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.colonne { padding: 32px; border-radius: 16px; }
.avant { background: var(--fond); }
.apres { background: var(--surface); box-shadow: var(--ombre), 0 0 0 1.5px #d8d3f7; }
.colonne h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 24px; font-weight: 740; font-stretch: 90%; }
.colonne h3 .marque-barres { width: 22px; height: 18px; }
.colonne ol, .colonne ul { display: grid; gap: 22px; }
.colonne li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.colonne li b { display: block; font-size: 18px; line-height: 1.3; }
.colonne li p { margin-top: 4px; font-size: 16px; color: var(--texte); }
.puce { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.avant .puce { background: #e4e3ee; color: #565b74; }
.apres .puce { background: var(--indigo); color: #fff; font-weight: 700; }

/* Vie privée */
.prive { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.faits { display: grid; gap: 14px; margin-top: 36px !important; }
.faits li { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 560; line-height: 1.4; }
.faits .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; }
.f1 .ic { background: var(--nuit); color: var(--nuit-t); }
.f2 .ic { background: var(--soir); color: var(--soir-t); }
.f3 .ic { background: var(--matin); color: var(--matin-t); }
.technique { display: grid; gap: 18px; padding: 30px; border-radius: 16px; background: var(--fond); box-shadow: 0 0 0 1px var(--trait); }
.technique h3 { font-size: 22px; font-weight: 740; font-stretch: 90%; }
.technique ul { display: grid; gap: 14px; }
.technique li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; }
.technique li .ic { margin-top: 1px; color: var(--indigo-fonce); }
.technique li .drapeau { margin-top: 3px; margin-inline: -2px; }
.technique .plus { margin-top: 0; justify-self: start; }

/* Ce que nous ne faisons pas */
.limites-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px !important; }
.limites-liste li { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--trait); font-size: 18px; font-weight: 600; line-height: 1.35; }
.limites-liste .ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--rouge); color: var(--rouge-t); }

/* Questions */
.faq { display: grid; gap: 12px; max-width: 860px; margin-top: 40px; }
.faq details { border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--trait); }
.blanc .faq details { background: var(--fond); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 16px; font-size: 19px; font-weight: 650; line-height: 1.35; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--indigo); transition: transform .2s var(--doux); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.reponse { padding: 0 24px 24px; font-size: 17px; color: var(--texte); max-width: 44em; }
.reponse p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] .reponse { animation: ouvre .25s var(--doux); } }

/* Appel final */
.fin { padding: 0 0 104px; }
.fin-panneau { padding: 80px 32px; border-radius: 16px; background: var(--indigo); color: #fff; text-align: center; }
.fin-panneau .titre-section { margin-inline: auto; color: #fff; }
.fin-panneau .intro { margin-inline: auto; color: rgba(255, 255, 255, .9); }
.fin-panneau .bouton-principal { background: #fff; color: var(--indigo-fonce); box-shadow: none; }
.fin-panneau .bouton-secondaire { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
@media (hover: hover) and (pointer: fine) {
  .fin-panneau .bouton-principal:hover { background: var(--indigo-pale); }
  .fin-panneau .bouton-secondaire:hover { background: rgba(255, 255, 255, .12); }
}
.fin-panneau :focus-visible { outline-color: #fff; }

/* ---------- Ce qui bouge sur l'accueil : une fois, à l'arrivée ou quand le visiteur agit ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Le haut de page : les postes arrivent, le samedi de Léa change, son téléphone reçoit l'avis. */
  .js .ecran-planning .poste { animation: monte .72s var(--doux) both; animation-delay: calc(240ms + var(--r, 0) * 100ms); }
  .js .ecran-planning .ligne:nth-child(3) { --r: 1; }
  .js .ecran-planning .ligne:nth-child(4) { --r: 2; }
  .js .ecran-planning .ligne:nth-child(5) { --r: 3; }
  .js .ecran-planning .ligne:nth-child(6) { --r: 4; }
  .js .ecran-planning .ligne:nth-child(7) { --r: 5; }
  .js .ecran-planning .poste .nouveau { animation: descend .8s var(--doux) 2.9s both; }
  .js .ecran-actions .valider { animation: valide 1.3s ease 3s; }
  .js .tel-hero { animation: monte .9s var(--doux) .8s both; }
  .js .tel-hero .tel { animation: sonne 1s var(--doux) 3.8s; }
  .js .tel-hero .notif { animation: tombe .8s var(--doux) 3.8s both; }
  .js .tel-hero .nouveau { animation: descend .64s var(--doux) 4.3s both; }

  /* Les trois chiffres de l'accueil du responsable */
  .js .chiffres-ecran .galet-chiffre { animation: monte 800ms var(--doux) both; }
  .js .chiffres-ecran .galet-chiffre:nth-child(2) { animation-delay: 160ms; }
  .js .chiffres-ecran .galet-chiffre:nth-child(3) { animation-delay: 320ms; }

  /* Le mois de Léa : les jours arrivent colonne après colonne. */
  .js .cal span:not(.t) { animation: pousse 640ms var(--doux) both; animation-delay: calc(320ms + var(--c, 0) * 100ms); }
  .cal span:nth-child(7n+2) { --c: 1; } .cal span:nth-child(7n+3) { --c: 2; } .cal span:nth-child(7n+4) { --c: 3; }
  .cal span:nth-child(7n+5) { --c: 4; } .cal span:nth-child(7n+6) { --c: 5; } .cal span:nth-child(7n) { --c: 6; }
  .js .estrade .tel-carte { animation: monte 800ms var(--doux) both; }

  /* Les demandes arrivent l'une après l'autre. */
  .js .demandes li { animation: monte 720ms var(--doux) both; }
  .js .demandes li:nth-child(2) { animation-delay: 190ms; }
  .js .demandes li:nth-child(3) { animation-delay: 380ms; }

  /* Le téléphone sonne, l'avis descend, puis la conversation s'affiche. */
  .js .t-corail .tel { animation: sonne 1.02s var(--doux) 800ms; }
  .js .t-corail .notif { animation: tombe 800ms var(--doux) 800ms both; }
  .js .t-corail .bulle { animation: monte 640ms var(--doux) both; animation-delay: 1.6s; }
  .js .t-corail .bulle:nth-child(2) { animation-delay: 2.4s; }
  .js .t-corail .bulle:nth-child(3) { animation-delay: 3.2s; }

  /* Les heures du mois : les lignes arrivent, les chiffres comptent (site.js). */
  .js .heures tbody tr { animation: monte 640ms var(--doux) both; }
  .js .heures tbody tr:nth-child(2) { animation-delay: 100ms; }
  .js .heures tbody tr:nth-child(3) { animation-delay: 190ms; }
  .js .heures tbody tr:nth-child(4) { animation-delay: 290ms; }
  .js .heures tbody tr:nth-child(5) { animation-delay: 380ms; }

  /* Les droits de Hugo : les cases se cochent l'une après l'autre. */
  .js .droits li { animation: monte 640ms var(--doux) both; }
  .js .droits li:nth-child(2) { animation-delay: 160ms; }
  .js .droits li:nth-child(3) { animation-delay: 320ms; }
  /* Seulement à l'arrivée : une fois que le visiteur a touché une case, elle répond tout de suite. */
  .js .droits:not(.touche) .droit[aria-pressed="true"] .coche-case .ic { animation: pousse 480ms var(--doux) both; animation-delay: 960ms; }
  .js .droits:not(.touche) li:nth-child(2) .droit[aria-pressed="true"] .coche-case .ic { animation-delay: 1.36s; }

  /* Les statistiques : les chiffres comptent, la courbe se dessine, les barres poussent. */
  .js .stats .kpi { animation: monte 720ms var(--doux) both; }
  .js .stats .kpi:nth-child(2) { animation-delay: 100ms; }
  .js .stats .kpi:nth-child(3) { animation-delay: 190ms; }
  .js .stats .kpi:nth-child(4) { animation-delay: 290ms; }
  .js .stats .kpi:nth-child(5) { animation-delay: 380ms; }
  .js .stats .tendance { animation: apparait 640ms ease 1.92s both; }
  .js .stats.bascule .tendance { animation-delay: 600ms; }
  .js .gc-avant { animation: apparait 960ms ease 480ms both; }
  .js .gc-trace { animation: volet 2.56s var(--ease-out) 960ms both; }
  .js .gc-trace > svg { animation: contre-volet 2.56s var(--ease-out) 960ms both; }
  .js .gc-auj { animation: apparait 640ms ease 2.24s both; }
  .js .gc-point { animation: pousse 640ms var(--doux) 2.56s both; }
  .js .piste-barre i { animation: grandit 1.44s var(--ease-out) both; animation-delay: calc(1.6s + var(--b, 0) * 130ms); }
  .sb-l:nth-child(2) { --b: 1; } .sb-l:nth-child(3) { --b: 2; } .sb-l:nth-child(4) { --b: 3; } .sb-l:nth-child(5) { --b: 4; } .sb-l:nth-child(6) { --b: 5; } .sb-l:nth-child(7) { --b: 6; }
  /* Les autres chiffres : les barres montent l'une après l'autre, puis leurs nombres apparaissent. */
  .js .sc-zone > div > i, .js .ge-zone > div > i { animation: leve 1.1s var(--ease-out) both; animation-delay: calc(.25s + var(--k, 0) * 90ms); }
  .js .sc-zone > div > :is(b, small), .js .ge-zone > div > b, .js .repere { animation: apparait 500ms ease both; animation-delay: calc(.8s + var(--k, 0) * 90ms); }
  .sc-zone > div:nth-of-type(2), .ge-zone > div:nth-of-type(2) { --k: 1; } .sc-zone > div:nth-of-type(3), .ge-zone > div:nth-of-type(3) { --k: 2; }
  .sc-zone > div:nth-of-type(4), .ge-zone > div:nth-of-type(4) { --k: 3; } .sc-zone > div:nth-of-type(5) { --k: 4; } .sc-zone > div:nth-of-type(6) { --k: 5; }
  .js .ln, .js .carte-stat .calme { animation: monte 560ms var(--doux) both; animation-delay: calc(.45s + var(--b, 0) * 90ms); }
  .ln:nth-child(2) { --b: 1; } .ln:nth-child(3) { --b: 2; } .ln:nth-child(4) { --b: 3; } .ln:nth-child(5) { --b: 4; }
  /* Un chiffre choisi : son panneau arrive vite, sans les longues attentes de l'arrivée à l'écran. */
  .js .stats.bascule .stat-panneau { animation: apparait 280ms ease both; }
  .js .stats.bascule .gc-avant { animation-delay: 0s; animation-duration: 500ms; }
  .js .stats.bascule :is(.gc-trace, .gc-trace > svg) { animation-delay: 150ms; animation-duration: 1.4s; }
  .js .stats.bascule .gc-auj { animation-delay: 1s; }
  .js .stats.bascule .gc-point { animation-delay: 1.3s; }
  .js .stats.bascule .piste-barre i { animation-duration: 1s; animation-delay: calc(.35s + var(--b, 0) * 90ms); }
}

/* ---------- Pages intérieures ---------- */
.page-tete { padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.page-tete h1 { max-width: 15em; }
.page-tete .chapeau { margin-bottom: 0; }
/* L'offre d'ouverture, une ligne sous le chapeau (tarifs, liste d'attente) et dans l'appel final de l'accueil. */
.offre { margin: 16px 0 0; font-weight: 700; color: var(--encre); }
.fin-panneau .offre { color: #fff; }
/* L'espace vide qui clôt chaque page intérieure, avant le pied. */
.section:empty { padding-block: 0 clamp(56px, 7vw, 96px); }
.prose { max-width: 46rem; }
/* Un texte posé directement dans le conteneur reste aligné à gauche sur le titre, pas centré. */
.int.prose { max-width: none; }
.int.prose > :not(.bandeau-cta) { max-width: 46rem; }
@media (min-width: 960px) { .prose { font-size: 18px; } }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.prose > :is(h2, h3):first-child { margin-top: 0; }
.prose li { margin-bottom: .5em; }
.prose ul:not([role]), .prose ol:not([role]) { padding-left: 1.3em; }
.prose li::marker { color: var(--indigo); }
.prose p, .prose li { text-wrap: pretty; }
.encadre { margin: 28px 0; padding: 20px 22px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait); }
.encadre > :last-child { margin-bottom: 0; }
.encadre-jaune { background: #fff8e1; box-shadow: inset 0 0 0 1.5px #e9c45a; }
.source { font-size: .9rem; color: var(--texte); }
.capture-note { font-size: .875rem; color: var(--texte); margin-top: 10px; }
.a-completer { display: inline; padding: 1px 6px; border-radius: 6px; background: #fff4cc; box-shadow: inset 0 0 0 1px #e0b100; color: #5a4300; font-weight: 600; font-size: .95em; }
.tableau { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--trait); }
.tableau thead th { color: var(--texte); font-weight: 600; border-top: 0; font-size: .875rem; background: var(--fond); }
.tableau tbody th { font-weight: 650; }
/* Le cadre porte la carte (coins arrondis) ; le tableau défile dedans s'il est trop large. */
.cadre-defile { overflow-x: auto; margin: 20px 0 32px; border-radius: 16px; background: var(--surface); border: 1px solid var(--trait); }
.pleine { margin-top: clamp(40px, 6vw, 72px); }
.bandeau-cta { margin-top: clamp(48px, 7vw, 96px); padding: clamp(28px, 4vw, 44px); border-radius: 16px; background: var(--surface); box-shadow: var(--ombre), 0 0 0 1px var(--trait); }
.bandeau-cta h2 { margin-top: 0 !important; }
.bandeau-cta p { color: var(--texte); max-width: 36rem; }
.colonnes-2 { display: grid; gap: 28px; }
@media (min-width: 900px) { .colonnes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }

/* Semaines d'exemple (modèles, page santé) */
/* Les cases ont la forme des postes de l'accueil : un rectangle arrondi, l'heure lisible dedans. */
.semaine-type { max-width: 760px; display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--ombre), 0 0 0 1px var(--trait); margin: 20px 0; font-size: .85rem; }
.semaine-type i:not([class]) { background: var(--gris); }
.semaine-type b { font-weight: 650; padding-right: 10px; white-space: nowrap; }
.semaine-type span { padding-bottom: 2px; color: var(--texte); text-align: center; font-size: .8rem; }
.semaine-type i { height: 44px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .8rem; white-space: nowrap; }
@media (max-width: 640px) {
  .semaine-type { gap: 4px; padding: 12px 10px; font-size: .75rem; }
  .semaine-type b { padding-right: 6px; }
  .semaine-type span { font-size: .7rem; }
  .semaine-type i { height: 38px; border-radius: 8px; font-size: .68rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-scene]:not(.vu) .semaine-anim i:not(:empty) { opacity: 0; transform: scale(.7); }
  .semaine-anim i { transition: opacity 280ms ease, transform 480ms var(--ease-out); }
  .semaine-anim i:nth-child(8n+3) { transition-delay: 60ms; }
  .semaine-anim i:nth-child(8n+4) { transition-delay: 120ms; }
  .semaine-anim i:nth-child(8n+5) { transition-delay: 180ms; }
  .semaine-anim i:nth-child(8n+6) { transition-delay: 240ms; }
  .semaine-anim i:nth-child(8n+7) { transition-delay: 300ms; }
  .semaine-anim i:nth-child(8n+8) { transition-delay: 360ms; }
}

/* Ce que nous ne faisons pas : des mots barrés */
.barres { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.barres li { display: grid; gap: 4px 32px; padding: 22px 0; border-top: 1px solid var(--trait); }
@media (min-width: 900px) { .barres li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }
.barre-texte { position: relative; justify-self: start; font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem); font-weight: 760; font-stretch: 80%; line-height: 1.05; color: var(--texte); }
.barre-texte > span { position: relative; display: inline-block; white-space: nowrap; }
.barre-texte > span::after { content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: .11em; background: var(--orange); border-radius: 4px; transform-origin: left center; }
.barre-note { color: var(--texte); margin: 0; }
.barre-note strong { color: var(--encre); }
@media (prefers-reduced-motion: no-preference) {
  .js [data-scene]:not(.vu) .barre-texte > span::after { transform: scaleX(0); }
  .barre-texte > span::after { transition: transform 520ms var(--ease-in-out); }
  .barre-texte > span + span::after { transition-delay: 220ms; }
  .barres li:nth-child(2) .barre-texte > span::after { transition-delay: 160ms; }
  .barres li:nth-child(2) .barre-texte > span + span::after { transition-delay: 380ms; }
  .barres li:nth-child(3) .barre-texte > span::after { transition-delay: 320ms; }
  .barres li:nth-child(3) .barre-texte > span + span::after { transition-delay: 540ms; }
  .barres li:nth-child(4) .barre-texte > span::after { transition-delay: 480ms; }
  .barres li:nth-child(4) .barre-texte > span + span::after { transition-delay: 700ms; }
}

/* Qui voit quoi : onglets, tableau, écran d'exemple */
.cadenas { position: relative; flex: none; width: 22px; height: 24px; margin-top: 1px; }
.cadenas::before { content: ""; position: absolute; left: 4px; top: 0; width: 14px; height: 14px; border: 3px solid var(--indigo); border-bottom: 0; border-radius: 9px 9px 0 0; transition: transform 240ms var(--ease-out); }
.cadenas::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 13px; border-radius: 4px; background: var(--indigo); }
.roles-onglets { display: none; }
.js .roles-onglets { display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait); margin-bottom: 20px; max-width: 100%; overflow-x: auto; }
.onglet { position: relative; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--texte); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; transition: color 200ms ease, background-color 240ms var(--ease-out); }
.onglet[aria-selected="true"] { background: var(--indigo); color: #fff; }
@media (hover: hover) and (pointer: fine) { .onglet[aria-selected="false"]:hover { color: var(--encre); background: var(--indigo-pale); } }
.table-defile { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--trait); background: var(--surface); }
.table-roles { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.table-roles caption { text-align: left; padding: 16px 18px 0; color: var(--texte); font-size: .875rem; }
.table-roles th, .table-roles td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--trait); }
.table-roles thead th { border-top: 0; font-size: .875rem; color: var(--texte); font-weight: 600; }
.table-roles tbody th { font-weight: 600; width: 34%; }
@media (max-width: 640px) {
  .table-roles th, .table-roles td { padding: 12px 14px; }
  .js .table-roles tbody th { width: 50%; }
}
.etat { display: flex; gap: 10px; align-items: flex-start; }
.etat::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: .4em; border-radius: 50%; }
.etat-oui::before { background: var(--indigo); box-shadow: 0 0 0 4px var(--indigo-pale); }
.etat-non::before { background: transparent; box-shadow: inset 0 0 0 2px var(--texte); border-radius: 3px; }
.etat-non { color: var(--texte); }
.etat-part::before { background: transparent; box-shadow: inset 6px 0 0 var(--indigo), inset 0 0 0 2px var(--indigo); }
.legende-etats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; color: var(--texte); margin: 14px 0 0; padding: 0; list-style: none; }
.js .table-roles { min-width: 0; }
.js .table-roles [data-col] { display: none; }
.js .table-roles[data-role="collab"] [data-col="collab"],
.js .table-roles[data-role="resp"] [data-col="resp"],
.js .table-roles[data-role="lekipo"] [data-col="lekipo"] { display: table-cell; }
@media (prefers-reduced-motion: no-preference) {
  .js .table-roles td[data-col] .etat { animation: etat-allume 320ms var(--ease-out) both; animation-delay: calc(var(--r, 0) * 40ms); }
}
@keyframes etat-allume { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.roles-vue { display: none; }
.js .roles-corps { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .js .roles-corps { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; } }
.js .roles-vue { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait); }
.vue-tete { display: grid; margin: 2px 4px; font-weight: 700; font-size: .95rem; }
.vue-tete span { grid-area: 1 / 1; }
.vue-bloc { position: relative; padding: 14px; border-radius: 14px; background: var(--fond); overflow: hidden; }
.vue-nom { position: relative; z-index: 1; margin: 0 0 10px; font-size: .8rem; color: var(--texte); }
.vue-sem { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.vue-sem i { aspect-ratio: 1 / 1.05; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .66rem; }
.vue-sem i:not([class]) { background: #e9e8f3; }
.vue-fil { display: grid; gap: 6px; justify-items: start; }
.vue-bulle { padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: 0 0 0 1px var(--trait); font-size: .85rem; line-height: 1.3; }
.vue-bulle-2 { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--indigo); color: #fff; box-shadow: none; }
.vue-voile { position: absolute; inset: 0; margin: 0; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 36px 16px 10px; background: rgba(244, 243, 251, .86); color: var(--encre); font-size: .9rem; font-weight: 600; line-height: 1.35; }
/* Sous le voile, les bulles restent des formes : on voit qu'il y a des messages, pas leur texte. */
:is([data-vue="resp"], [data-vue="lekipo"]) .vue-bulle { color: transparent; background: #dcdaea; box-shadow: none; }
.roles-vue .capture-note { margin: 0 4px; }
.roles-vue [data-pour] { opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s 240ms; }
:is([data-vue="collab"] [data-pour="collab"], [data-vue="resp"] [data-pour="resp"], [data-vue="lekipo"] [data-pour="lekipo"]) { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: no-preference) {
  .vue-voile { transform: scale(1.05); transition: opacity 240ms ease, transform 420ms var(--ease-out), visibility 0s 240ms; }
  .vue-voile .cadenas::before { transform: translateY(-4px); }
  .vue-voile:is([data-vue="resp"] [data-pour="resp"], [data-vue="lekipo"] [data-pour="lekipo"]) { transform: none; transition-delay: 0s; }
  .vue-voile:is([data-vue="resp"] [data-pour="resp"], [data-vue="lekipo"] [data-pour="lekipo"]) .cadenas::before { transform: none; transition-delay: 240ms; }
}
.roles-notes { display: grid; gap: 12px; margin-top: 24px; color: var(--texte); font-size: .95rem; max-width: 52rem; }
.roles-notes p { margin: 0; }

.note-tarifs { margin: 16px 0 0; font-size: .9rem; color: var(--texte); }
/* L'offre annuelle, au-dessus des formules ; l'économie sous chaque prix annuel. */
.offre-annuelle { display: grid; gap: 4px; margin: 0 0 20px; padding: 18px 22px; border-radius: 16px; background: #fff8e1; box-shadow: inset 0 0 0 1.5px #e9c45a; }
.offre-annuelle p { margin: 0; }
.offre-annuelle-titre { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.15; font-weight: 760; font-stretch: 88%; letter-spacing: -.01em; color: var(--encre); }
.economie { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--vert-t); white-space: nowrap; }
/* Les formules en cartes ; le curseur « Combien de comptes » allume la bonne (anneau en opacité, petite montée). */
.offres-equipe { display: grid; gap: 10px; margin: 0 0 22px; padding: 18px 22px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait); }
.offres-equipe label { font-weight: 700; }
.offres-curseur { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.offres-curseur input { flex: 1 1 220px; min-height: 44px; margin: 0; accent-color: var(--indigo); cursor: pointer; }
.offres-curseur output { flex: 1 1 260px; font-weight: 650; color: var(--indigo-fonce); }
.offres-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.carte-offre { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait), var(--ombre); transition: transform .3s var(--doux); }
.carte-offre::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2.5px var(--indigo); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.carte-offre.choisie { transform: translateY(-4px); }
.carte-offre.choisie::after { opacity: 1; }
.carte-offre h3 { margin: 0; font-size: 21px; }
.offre-comptes { margin: 0; font-size: 14px; color: var(--texte); }
.offre-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 12px 0 0; }
.offre-montant { font-size: 42px; line-height: 1; font-weight: 780; font-stretch: 88%; letter-spacing: -.02em; color: var(--encre); }
.offre-montant.offre-mot { font-size: 26px; }
.offre-prix span { font-size: 14px; color: var(--texte); }
.offre-an { margin: 0 0 16px; font-size: 14px; color: var(--texte); }
.carte-offre .bouton { margin-top: auto; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .carte-offre, .carte-offre::after { transition: none; } }
}

/* Formulaire */
.formulaire { display: grid; gap: 20px; max-width: 40rem; }
.champ { display: grid; gap: 8px; }
.champ label, .champ legend { font-weight: 600; }
.aide { font-size: .9rem; color: var(--texte); margin: 0; }
.champ label .aide { font-weight: 400; }
.champ legend { padding: 0; margin-bottom: 10px; }
.champ .case { font-weight: 500; }
input[type="text"], input[type="email"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--trait-fort);
  background: var(--surface); color: var(--encre); font: inherit; font-size: 1rem;
  transition: border-color 200ms ease;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b3261e; }
.erreur { color: #b3261e; font-size: .9rem; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 10px; }
.choix label, .case { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.choix label { padding: 12px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--trait-fort); }
.choix label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); background: var(--indigo-pale); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--indigo); }
.mention-collecte { font-size: .9rem; color: var(--texte); padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait); }
.mention-collecte p:last-child { margin: 0; }
.message-envoi { padding: 18px 20px; border-radius: 14px; background: var(--indigo-pale); box-shadow: inset 0 0 0 1.5px var(--indigo); }
.message-envoi:focus { outline: 3px solid var(--bleu); outline-offset: 2px; }

/* Outil : repos de 11 heures */
.outil { padding: clamp(20px, 3vw, 32px); border-radius: 16px; background: var(--surface); box-shadow: var(--ombre), 0 0 0 1px var(--trait); display: grid; gap: 18px; max-width: 40rem; }
.outil-ligne { display: grid; gap: 14px; }
@media (min-width: 560px) { .outil-ligne { grid-template-columns: 1fr 1fr; } }
.resultat { min-height: 3.2em; padding: 16px 18px; border-radius: 14px; background: var(--fond); font-weight: 600; }
.resultat[data-etat="ok"] { box-shadow: inset 0 0 0 2px var(--indigo); }
.resultat[data-etat="court"] { box-shadow: inset 0 0 0 2px var(--orange); }
.frise { position: relative; height: 18px; border-radius: 6px; background: var(--indigo-pale); overflow: hidden; }
.frise-repos { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--indigo); transform-origin: left; transform: scaleX(var(--part, 0)); transition: transform 400ms var(--ease-out); }
.frise[data-etat="court"] .frise-repos { background: var(--orange); }
.frise-seuil { position: absolute; top: -4px; bottom: -4px; width: 2px; left: calc(var(--seuil, .6875) * 100%); background: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { padding: 72px 0 40px; background: var(--surface); border-top: 1px solid var(--trait); font-size: 15px; }
.pied-haut { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.pied h2 { margin-bottom: 14px; font-size: 15px; font-weight: 700; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; }
.pied ul { display: grid; gap: 2px; }
.pied ul a { display: inline-block; padding: 5px 0; color: var(--texte); text-decoration: none; border-radius: 4px; }
.pied ul a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.pied-marque > p { margin-top: 14px; color: var(--texte); max-width: 22em; }
.pied-marque .france { color: var(--encre); }
.pied-marque .pied-ville { margin-top: 6px; }
.cookie { margin-top: 16px; color: var(--texte); }
.pied-bas { display: grid; gap: 22px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--trait); text-align: center; color: var(--texte); }
.pied-documents { font-weight: 600; line-height: 1.7; }
.pied-documents a { display: inline-block; padding: 4px 2px; color: var(--encre); }

/* ---------- Largeurs moyennes et téléphone ---------- */
@media (max-width: 1100px) {
  .scene-accueil { padding-bottom: 8px; }
  .ecran-planning { width: auto; }
  /* visibility et non display : un display qui bascule relancerait l'entrée du téléphone */
  .tel-hero { visibility: hidden; top: 0; }
}
@media (max-width: 980px) {
  .bloc, .bloc:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bloc:nth-child(even) .bloc-texte { order: 0; }
  .secteurs { grid-template-columns: repeat(2, 1fr); }
  .prive, .colonnes { grid-template-columns: 1fr; }
  .limites-liste { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi + .kpi { box-shadow: inset 1px 0 0 var(--trait), inset 0 1px 0 var(--trait); }
  .chiffres-ecran { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .ecran-planning .grille { grid-template-columns: 62px repeat(7, minmax(0, 1fr)); }
  .ecran-planning .poste { justify-content: center; height: 38px; padding: 0; border-radius: 10px; }
  .ecran-planning .poste > span:not(.nouveau) { display: none; }
  .ecran-planning .ap .ic { display: block; }
  .ecran-planning .nom { font-size: 12px; line-height: 1.2; white-space: normal; }
  .ecran-planning .nom .av { display: none; }
  .ecran-planning .jour { padding: 6px 0 8px; text-align: center; font-size: 12px; }
  .ecran-planning .jour b { display: block; margin: 0; font-size: 15px; }
  .change > .nouveau { display: flex; justify-content: center; }
}
@media (max-width: 760px) {
  .listes-stat, .listes-stat.trois { grid-template-columns: 1fr; }
  .chiffres-liste { gap: 8px; }
  .galet-chiffre { grid-template-columns: 1fr; padding: 12px 10px; }
  .galet-chiffre .ic { display: none; }
  .galet-chiffre strong { font-size: 26px; }
  .galet-chiffre > span { font-size: 13px; }
  .chiffres-ecran { padding: 16px; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .accueil { padding-top: 44px; }
  .statut { font-size: 14px; margin-bottom: 20px; }
  .actions-centre .bouton { flex: 1 1 100%; }
  .scene-accueil { margin-top: 40px; padding-bottom: 8px; }
  .ecran-planning { padding: 14px 10px 12px; border-radius: 14px; }
  .ecran-tete { margin: 0 4px 10px; }
  .ecran-actions { display: none; }
  .ecran-titre { font-size: 22px; }
  .blocs { gap: 72px; margin-top: 44px; }
  .estrade { min-height: 0; padding: 28px 12px; border-radius: 16px; }
  .panneau { padding: 16px; }
  .dem-choix { margin-left: 0; }
  .secteurs { margin-top: 32px !important; gap: 10px; }
  .secteurs li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; font-size: 16px; }
  .secteurs-fin { flex-direction: column; align-items: flex-start; }
  .fondateur, .colonne, .technique { padding: 24px; }
  .colonne li { grid-template-columns: 36px 1fr; }
  .puce { width: 36px; height: 36px; }
  .fin { padding: 0 0 72px; }
  .fin-panneau { padding: 56px 20px; }
  .faq summary { padding: 18px; font-size: 17px; }
  .reponse { padding: 0 18px 20px; }
  .pied-haut { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .pied-marque { grid-column: 1 / -1; }
  .entete-int { min-height: 64px; gap: 10px; }
  .entete-actions .bouton-petit { padding: 0 14px; }
  .stats { padding: 14px; }
  .stats-titre { font-size: 24px; }
  .stats-gauche .ecran-sous { flex-basis: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 14px; }
  .kpi:first-child { grid-column: 1 / -1; }
  .sc, .ge { --haut: 130px; }
  .sc-zone, .ge-zone, .sc-noms { gap: 6px; }
  .sc-noms { font-size: 11px; }
  .graphe { padding: 14px 12px 10px; }
  .gc { padding-left: 34px; }
  .gc-zone { height: 180px; }
  .gc-noms .loin { display: none; }
  /* Beaucoup de colonnes (un trimestre, une année) : sur un téléphone, les six dernières, comme dans l'appli. */
  .nombreux { --n: 6 !important; }
  .nombreux > .sc-zone > div:nth-last-of-type(n+7), .nombreux > .ge-zone > div:nth-last-of-type(n+7), .nombreux > .sc-noms > span:nth-last-of-type(n+7) { display: none; }
  .carte-stat { padding: 14px; }
}
@media (max-width: 420px) {
  .puces button { padding: 6px 7px; font-size: 12px; }
}

/* ---------- Mouvement réduit : tout s'arrête, la phrase du bandeau est fixe et centrée ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .piste { width: 100%; justify-content: center; }
  .groupe + .groupe, .item + .item, .bandeau-pause { display: none; }
  .item { padding-right: 0; }
}

/* ---------- Impression (la page « Qui voit quoi » s'imprime pour le CSE) ---------- */
@media print {
  :root { --fond: #fff; --surface: #fff; --encre: #000; --texte: #333; --trait: #bbb; }
  body { background: #fff; color: #000; font-size: 11pt; padding-top: 0; }
  .bandeau, .entete, .pied, .actions, .roles-onglets, .roles-vue, .rejouer, .bandeau-cta, .evitement { display: none !important; }
  .js .roles-corps { display: block; }
  .js .table-roles [data-col] { display: table-cell !important; }
  .table-roles { min-width: 0; }
  .section { padding-block: 16pt; }
  h1 { font-size: 26pt; } h2 { font-size: 18pt; }
  * { animation: none !important; transition: none !important; box-shadow: none !important; }
  /* Les repères « voit, en partie, ne voit pas » restent sur le papier, en noir (un fond ne s'imprime pas par défaut). */
  .etat::before { border: 1.5pt solid #000; box-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .etat-oui::before { background: #000; }
  .etat-part::before { background: linear-gradient(90deg, #000 50%, transparent 50%); }
  .etat-non::before { background: none; }
  .table-defile { border: 1px solid #bbb; }
}
