/* BonneGestion : le couloir de l'entreprise (15 octobre 2026), toujours clair */
:root {
  --mur: #f5f3ee; --blanc: #ffffff; --carton: #f3ead6; --encre: #23406b; --vert: #2e8b57; --vert-pale: #e2f1e8;
  --liege: #e7c99a; --rouge: #d0453a; --texte: #26303b; --gris: #66707b; --filet: #e2ddd2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--mur); color: var(--texte); font: 400 1.03rem/1.72 'Inclusive Sans', system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--encre); text-underline-offset: .2em; }
h1, h2, h3, h4 { font-family: 'Familjen Grotesk', system-ui, sans-serif; font-weight: 700; line-height: 1.15; color: var(--encre); }
.badger { position: absolute; left: -999px; }
.badger:focus { left: 1rem; top: 1rem; background: var(--liege); padding: .5rem 1rem; z-index: 9; }

/* l'accueil RH : en-tête */
.accueil-rh { background: var(--blanc); border-bottom: 4px solid var(--encre); }
.accueil-rh__in { max-width: 1120px; margin: 0 auto; padding: .9rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.6rem; }
.accueil-rh__nom { font: 700 1.6rem/1 'Familjen Grotesk', sans-serif; color: var(--encre); text-decoration: none; }
.accueil-rh__nom span { color: var(--vert); }
.accueil-rh__nav { display: flex; flex-wrap: wrap; gap: .3rem; }
.accueil-rh__nav a { color: var(--texte); text-decoration: none; font: 500 .92rem/1 'Familjen Grotesk', sans-serif; padding: .5rem .75rem; border: 1px solid var(--filet); border-radius: 6px; background: var(--mur); }
.accueil-rh__nav a:hover, .accueil-rh__nav a[aria-current] { background: var(--encre); color: #fff; border-color: var(--encre); }

main { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3rem; }

/* le hall */
.hall { padding: 2.6rem 0 1.2rem; }
.hall h1 { margin: 0 0 .7rem; font-size: clamp(1.8rem, 4.2vw, 2.7rem); max-width: 860px; }
.hall p { margin: 0; max-width: 760px; color: var(--gris); }
.hall--rubrique { padding-bottom: .4rem; }

/* le râtelier des cartes de pointage */
.ratelier { margin: 1.4rem 0 3rem; }
.ratelier h2 { font-size: 1.4rem; margin: 0 0 .9rem; }
.cartes-pointage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .9rem; padding: 1.2rem .9rem 1rem; background: linear-gradient(#d8dde3, #c9cfd6); border-radius: 8px; box-shadow: inset 0 3px 0 rgba(255,255,255,.6); }
.cartes-pointage > * { min-width: 0; }
.carte-pointage { background: var(--carton); border: 1px solid #dccfb1; border-radius: 3px; padding: .9rem .8rem 1rem; background-image: repeating-linear-gradient(transparent 0 27px, #e2d6bb 27px 28px); box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.carte-pointage__matricule { margin: 0; font: 500 .74rem/1 'Familjen Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge); }
.carte-pointage h3 { margin: .35rem 0 .7rem; font-size: 1.25rem; }
.carte-pointage h3 a { text-decoration: none; }
.carte-pointage__lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pointage { display: grid; grid-template-columns: 44px 1fr; gap: .2rem .55rem; text-decoration: none; color: var(--texte); background: rgba(255,255,255,.75); padding: .4rem; border-radius: 3px; }
.pointage__img { grid-row: span 2; width: 44px; height: 44px; overflow: hidden; border-radius: 3px; background: var(--filet); }
.pointage__img img { width: 100%; height: 100%; object-fit: cover; }
.pointage__t { font-size: .86rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pointage__h { font: 500 .75rem/1 'Familjen Grotesk', monospace; color: var(--vert); }
.pointage:hover .pointage__t { text-decoration: underline; }

/* le panneau d'affichage */
.affichage { background: var(--liege); background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px); background-size: 6px 6px; border: 10px solid #c9a46b; border-radius: 6px; padding: 1.4rem 1.2rem 1.6rem; }
.affichage h2 { margin: 0 0 1rem; font-size: 1.4rem; background: var(--blanc); display: inline-block; padding: .4rem .8rem; transform: rotate(-1deg); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; }
.notes > * { min-width: 0; }
.note { position: relative; display: grid; gap: .5rem; text-decoration: none; color: var(--texte); background: var(--blanc); padding: .8rem .8rem 1rem; box-shadow: 0 4px 8px rgba(0,0,0,.12); }
.notes li:nth-child(1) .note { transform: rotate(-1.5deg); }
.notes li:nth-child(2) .note { transform: rotate(1deg); }
.notes li:nth-child(3) .note { transform: rotate(-.5deg); }
.note__punaise { position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--rouge); box-shadow: 0 2px 2px rgba(0,0,0,.25); }
.note__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--filet); }
.note__img img { width: 100%; height: 100%; object-fit: cover; }
.note__t { font-weight: 700; line-height: 1.35; }

/* les dossiers (listes) */
.dossiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.dossiers > * { min-width: 0; }
.dossier { display: grid; gap: .35rem; text-decoration: none; color: var(--texte); background: var(--blanc); border-radius: 0 10px 10px 10px; padding: .6rem .6rem 1rem; border-top: 6px solid var(--carton); }
.dossier:hover { border-top-color: var(--vert); }
.dossier__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--filet); }
.dossier__img img { width: 100%; height: 100%; object-fit: cover; }
.dossier__r { font: 500 .78rem/1 'Familjen Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--vert); }
.dossier__t { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.dossier__m { font-size: .82rem; color: var(--gris); }
.suite { margin-top: 2.6rem; }
.suite h2 { font-size: 1.4rem; }
.suite--large { margin-top: 1.4rem; }

/* la note de service (article, page) */
.note-service { max-width: 800px; margin: 0 auto; }
.note-service__tete { padding: 2.4rem 0 1rem; border-bottom: 2px solid var(--encre); margin-bottom: 1.4rem; }
.note-service__ref { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .8rem; font: 500 .82rem/1.4 'Familjen Grotesk', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.note-service__ref a { color: var(--vert); text-decoration: none; font-weight: 700; }
.note-service__tete h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.8vw, 2.4rem); overflow-wrap: anywhere; }
.note-service__par { margin: 0; color: var(--gris); font-size: .9rem; }
.note-service__img { margin: 0 0 1.6rem; }
.note-service__img img { border-radius: 8px; }
.note-service__texte { background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; padding: 1.6rem clamp(1rem, 4vw, 2.4rem); overflow-wrap: anywhere; }
.note-service__texte h2 { font-size: 1.45rem; margin: 2rem 0 .7rem; }
.note-service__texte h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.note-service__texte table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; display: block; overflow-x: auto; }
.note-service__texte th, .note-service__texte td { border: 1px solid var(--filet); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.note-service__texte th { background: var(--vert-pale); }
.note-service__texte blockquote { margin: 1.2rem 0; padding: .9rem 1.2rem; background: var(--carton); border-left: 4px solid var(--vert); }

/* le badge du pied */
.badge { margin-top: 3.5rem; padding: 2.6rem 1rem 2.2rem; background: var(--blanc); border-top: 1px solid var(--filet); display: grid; justify-items: center; gap: 1rem; text-align: center; }
.badge__carte { position: relative; width: min(340px, 92vw); background: var(--blanc); border: 2px solid var(--encre); border-radius: 14px; padding: 2rem 1.2rem 1.2rem; box-shadow: 0 8px 18px rgba(35,64,107,.12); border-top: 34px solid var(--encre); }
.badge__trou { position: absolute; top: -24px; left: 50%; width: 46px; height: 10px; margin-left: -23px; border-radius: 5px; background: var(--mur); }
.badge__nom { margin: 0; font: 700 1.4rem/1 'Familjen Grotesk', sans-serif; color: var(--encre); }
.badge__poste { margin: .3rem 0 .9rem; font-size: .82rem; color: var(--gris); }
.badge__rubriques { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; }
.badge__rubriques a { color: var(--vert); font-weight: 700; text-decoration: none; }
.badge__mot { margin: 0; max-width: 640px; color: var(--gris); font-size: .9rem; }
.badge__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; font-size: .85rem; }
.badge__pages a { color: var(--texte); }
