/* Pages publiques d'un groupement : feuille de style unique, sans compilation.
   Couleurs dérivées de la couleur du groupement (--brand) et de sa couleur d'accent (--accent). */
:root {
  --brand: #0f766e;
  --accent: #d97706;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #12201e;
  --muted: #5b6764;
  --line: #e7e4dc;
  --ink: #12201e;
  --ko: #b91c1c;
  --radius: 18px;
  --radius-lg: 28px;
  --brand-deep: color-mix(in srgb, var(--brand) 55%, #000);
  --brand-ink: color-mix(in srgb, var(--brand) 60%, #000);
  --brand-tint: color-mix(in srgb, var(--brand) 12%, var(--surface));
  --brand-soft: color-mix(in srgb, var(--brand) 34%, var(--surface));
  --accent-tint: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --accent-ink: color-mix(in srgb, var(--accent) 45%, #000);
  --shadow: 0 18px 40px -22px rgba(18, 32, 30, .45);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111413; --surface: #1a1e1c; --text: #eef1ef; --muted: #a2aaa6; --line: #2c3230; --ink: #0a0d0c; --ko: #f87171;
    --brand-ink: color-mix(in srgb, var(--brand) 55%, #fff); --accent-ink: color-mix(in srgb, var(--accent) 50%, #fff); --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* En-tête collant, flouté */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand img { height: 46px; width: auto; }
.brand .initial { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 800; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 99px; text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 600; }
.site-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.site-nav a.active { color: var(--brand-ink); background: var(--brand-tint); }
.header-cta { padding: 10px 18px; font-size: .92rem; }
/* Téléphone : le menu tient sur une ligne qui défile, au lieu de s'empiler. */
@media (max-width: 1120px) {
  .site-header .wrap { padding-top: 12px; padding-bottom: 0; }
  .header-cta { margin-left: auto; }
  .site-nav { order: 3; flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 48px); margin: 0 -24px; padding: 2px 24px 12px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; flex: none; }
}
@media (max-width: 600px) { .header-cta { padding: 8px 14px; font-size: .84rem; } .brand { min-width: 0; flex: 1 1 0; } .site-nav { width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px 12px; } .brand { font-size: .95rem; } }

/* Contenu */
/* Classe dédiée : la règle .wrap (padding: 0 24px) écrasait l'espacement vertical de <main>. */
.site-main { padding-top: 48px; padding-bottom: 72px; }
.site-main.wrap { max-width: 968px; }
.site-main.is-bleed { padding-top: 0; padding-bottom: 0; }
h1 { font-size: 2.2rem; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: 1.2rem; margin: 32px 0 12px; letter-spacing: -.01em; }
.display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.eyebrow { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 8px; }
.section-h { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 0; }
/* Texte d'introduction : toute la largeur de la zone de contenu. */
.lead { color: var(--muted); font-size: 1.1rem; line-height: 1.65; margin: 0 0 36px; }
@media (max-width: 600px) { .site-main { padding-top: 28px; padding-bottom: 48px; } h1 { font-size: 1.7rem; } .lead { margin-bottom: 28px; } }
.muted { color: var(--muted); font-size: .9rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
@media (max-width: 600px) { .card { padding: 20px; margin-bottom: 16px; } }
.intro { white-space: pre-line; }
.back { display: inline-block; margin-bottom: 20px; text-decoration: none; font-weight: 600; }
.arrow-link { font-weight: 700; text-decoration: none; color: var(--brand-ink); }
.arrow-link:hover { text-decoration: underline; }

.principle { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 24px; }
.principle .card { margin: 0; }
.principle strong { display: block; margin-bottom: 4px; }

/* Offres (fiche d'une offre, anciens gabarits) */
.offer { display: block; text-decoration: none; color: var(--text); transition: border-color .15s; }
.offer:hover { border-color: var(--brand); }
.offer h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--brand-ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: .82rem; padding: 3px 11px; border-radius: 99px; background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; }
.description { white-space: pre-line; }
.empty { text-align: center; padding: 48px 24px; }
.empty p { margin: 0 0 8px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Formulaires */
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 1px; }
.row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
.row > .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .row, .row.three { grid-template-columns: 1fr; } h1 { font-size: 1.45rem; } }
.hint { color: var(--muted); font-size: .85rem; font-weight: 400; margin: 4px 0 0; }
.errors { color: var(--ko); font-size: .9rem; margin: 4px 0 0; }
.alert { border-left: 4px solid var(--ko); background: var(--surface); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radios label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 6px 0; }
.radios input { accent-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost, .btn.outline { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.btn.ghost { color: var(--brand-ink); border-color: var(--brand); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--brand-deep); }
.btn.outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.actions { margin-top: 28px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grille des créneaux */
.slots { width: 100%; border-collapse: collapse; margin-top: 6px; }
.slots th, .slots td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); font-size: .9rem; }
.slots th:first-child, .slots td:first-child { text-align: left; font-weight: 600; }
.slots input { width: 20px; height: 20px; accent-color: var(--brand); }

/* Champ à étiquettes (public/js/tags.js) */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.tags-chips { display: contents; }
.tags-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .88rem; }
.tags-chip button { border: 0; background: transparent; color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.tags-input { flex: 1; min-width: 160px; border: 0 !important; background: transparent !important; padding: 6px !important; outline: none !important; }
.tags-hint { width: 100%; padding: 0 4px; font-size: .8rem; }

/* Pied de page : coordonnées et trois colonnes de liens */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--text) 3%, var(--bg)); color: var(--muted); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 9px; }
.footer-grid strong { color: var(--text); margin-bottom: 4px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { margin: 12px 0 0; line-height: 1.6; }
.footer-about .brand { color: var(--text); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: .84rem; }
.footer-legal a, .footer-legal .linklike { color: var(--muted); }

/* Saisie des métiers (public/js/rome.js) */
[data-rome-jobs], [data-address] { position: relative; }
.rome-results { position: absolute; z-index: 20; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 280px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.rome-results li { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.rome-results li[aria-selected=true], .rome-results li[role=option]:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.skills-grid .check { margin: 6px 0; }
@media (max-width: 600px) { .skills-grid { grid-template-columns: 1fr; } }
details > summary { margin: 12px 0 4px; }

/* Mentions légales et confidentialité */
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal h2:first-of-type { margin-top: 24px; }

/* Site internet (option) : lien d'évitement, accueil, chiffres, actualités, pages */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
/* Site internet : sections pleine largeur (main.is-bleed), accueil, pages, offres */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-last { padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .section { padding-top: 56px; padding-bottom: 56px; } .section-head { margin-bottom: 24px; } }

/* Emplacement d'image sans photo : aplat de la couleur du groupement, deux disques plus clairs. */
.media-placeholder { display: block; width: 100%; height: 100%; background:
  radial-gradient(circle at 78% 22%, var(--brand-tint) 0 28%, transparent 28.5%),
  radial-gradient(circle at 18% 92%, var(--brand-tint) 0 36%, transparent 36.5%), var(--brand-soft); }

/* Accueil : bandeau */
.home-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 48px; }
.home-hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.home-hero-text .display span { color: var(--brand); }
.eyebrow-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: .84rem; font-weight: 700; text-decoration: none; }
.eyebrow-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero-lead { margin: 0; font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 580px; }
.hero-aside { margin: 0; color: var(--muted); }
.hero-aside a { font-weight: 700; }
.home-hero-media { position: relative; min-height: 480px; }
.home-hero-media > img, .home-hero-media > .media-placeholder { position: absolute; inset: 0 0 0 40px; width: calc(100% - 40px); height: 100%; object-fit: cover; border-radius: 32px; }
.float-card { position: absolute; display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.4; color: var(--muted); max-width: 290px; }
.float-card strong { display: block; color: var(--text); font-size: .95rem; }
.float-card-left { left: 0; bottom: 44px; }
.float-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-ink); }
.float-card-dark { right: 22px; top: 26px; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); color: #c6d0cd; }
.float-card-dark strong { color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 600px) {
  .home-hero { padding-top: 32px; gap: 32px; }
  .home-hero-media { min-height: 300px; }
  .home-hero-media > img, .home-hero-media > .media-placeholder { inset: 0; width: 100%; border-radius: 24px; }
  .float-card-left { left: 12px; bottom: 12px; right: 12px; max-width: none; }
  .float-card-dark { right: 12px; top: 12px; }
}

/* Barre de recherche des offres */
.search-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); max-width: 640px; }
.search-field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 6px 14px; min-width: 0; }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-select { flex: 0 1 150px; }
.search-field span { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.search-field input, .search-field select { border: 0; outline: 0; padding: 2px 0; background: transparent; font-size: 1rem; border-radius: 0; }
.search-field input:focus, .search-field select:focus { outline: 0; }
.search-bar:focus-within { border-color: var(--brand); }
.search-bar .btn { min-height: 52px; border-radius: 14px; }
@media (max-width: 600px) { .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line); } .search-bar .btn { flex: 1 1 100%; } }

/* Chiffres clés en bandeau */
.figures-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 72px; }
.figures-band div { padding: 24px 4px; display: flex; flex-direction: column; gap: 2px; }
.figures-band strong { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-ink); line-height: 1.1; }
.figures-band span { color: var(--muted); font-size: .92rem; }
@media (max-width: 600px) { .figures-band { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; margin-bottom: 48px; } .figures-band div { padding: 18px 0; } .figures-band strong { font-size: 1.9rem; } .figures-band span { font-size: .82rem; line-height: 1.3; } }

/* Deux portes d'entrée */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; padding-bottom: 96px; }
.door { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); min-height: 340px; }
.door h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.door-candidate { background: var(--brand-deep); color: #fff; }
.door-candidate .eyebrow { color: color-mix(in srgb, var(--brand) 30%, #fff); }
.door-candidate .ticks li { color: #dfe9e6; }
.door-candidate .ticks li::before { color: color-mix(in srgb, var(--brand) 30%, #fff); }
.door-employer { background: var(--accent-tint); color: var(--text); }
.door-employer .eyebrow { color: var(--accent-ink); }
.door-employer .ticks li::before { color: var(--accent-ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 1.02rem; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; font-weight: 800; }
.door-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* Cartes d'offre */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.offer-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.offer-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.offer-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.015em; font-weight: 800; }
.offer-card .more { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--brand-ink); }
.offer-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.pill { padding: 4px 11px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: .78rem; font-weight: 800; }
.offer-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; color: var(--muted); }
.fact { display: inline-flex; align-items: center; gap: 6px; }
.fact::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.fact-hours { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.fact-place { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.fact-start { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-chips span { padding: 5px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Liste des offres */
.offers-hero { background: var(--brand-deep); color: #fff; }
.offers-hero .wrap { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; padding-bottom: 60px; }
.offers-hero .hero-lead { color: color-mix(in srgb, var(--brand) 12%, #fff); max-width: 680px; }
.offers-hero .search-bar { color: var(--text); max-width: 780px; border: 0; }
.offers-list { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; padding-bottom: 96px; }
.offers-list > .search-bar { margin-bottom: 12px; max-width: none; box-shadow: none; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.offer-row:hover { border-color: var(--brand); }
.offer-row-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.offer-row h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.015em; font-weight: 800; }
.offer-row h2 a { color: var(--text); text-decoration: none; }
.offer-row h2 a:hover { color: var(--brand-ink); }
.offer-row-slots { display: flex; flex-direction: column; gap: 8px; }
.mini-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.offer-row-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 900px) { .offer-row { grid-template-columns: 1fr; } .offer-row-actions { justify-content: flex-start; } }
.accent-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 32px; border-radius: 26px; background: var(--accent-tint); }
.accent-band strong { display: block; font-size: 1.35rem; letter-spacing: -.01em; margin-bottom: 4px; }
.accent-band span { color: var(--muted); }

/* Comment ça marche */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: start; }
.how-intro p { font-size: 1.08rem; line-height: 1.65; color: var(--muted); margin: 16px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }
.step-n { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; font-size: 1.35rem; font-weight: 800; }

/* Actualités */
.news-magazine { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.news-lead { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.news-lead img, .news-lead .media-placeholder { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 24px; margin-bottom: 4px; }
.news-lead h3 { margin: 0; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.news-lead p { margin: 0; color: var(--muted); }
.news-lead time, .news-mini time, .news-card time { font-size: .84rem; font-weight: 700; color: var(--brand-ink); }
.news-side { display: flex; flex-direction: column; gap: 24px; }
.news-mini { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; color: var(--text); text-decoration: none; }
.news-mini img, .news-mini .media-placeholder { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 18px; }
.news-mini > span { display: flex; flex-direction: column; gap: 6px; }
.news-mini strong { font-size: 1.15rem; line-height: 1.3; }
.news-lead:hover h3, .news-mini:hover strong, .news-card:hover h3 { color: var(--brand-ink); }
@media (max-width: 600px) { .news-mini { grid-template-columns: 96px minmax(0, 1fr); } }
.news-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: 16px; }
.news-card { display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; }
.news-card img, .news-card .media-placeholder { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 20px; margin-bottom: 6px; }
.news-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.news-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }

/* Bandeaux */
.ink-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.ink-band h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.8vw, 2.2rem); letter-spacing: -.02em; }
.ink-band p { margin: 0; color: #c6d0cd; max-width: 620px; }
.tint-band { background: var(--brand-tint); }
.tint-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.tint-band p { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }

/* Partenaires et financeurs */
.partners-head { text-align: center; margin-bottom: 28px; }
.partners-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.partners-group { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.partners-group > strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.partners-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.partners-group li > a, .partners-group li > span { height: 88px; display: grid; place-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; font-size: .85rem; font-weight: 700; color: #4a5653; text-decoration: none; }
.partners-group li > a:hover { border-color: var(--brand); }
.partners-group img { max-height: 60px; max-width: 100%; object-fit: contain; }
.blk-partners { margin: 32px 0; }
.prose .blk-partners .section-h { margin: 0; }

/* Pages de contenu et actualités */
.page-head { display: flex; flex-direction: column; gap: 20px; padding-top: 44px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head .display { max-width: 1000px; font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
.page-lead { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 780px; }
.page-cover { display: block; width: 100%; aspect-ratio: 21 / 8; min-height: 240px; object-fit: cover; border-radius: 32px; margin-top: 16px; }
.page-body { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 56px; padding-bottom: 96px; }
.page-body > .prose { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.page-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.toc { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.toc strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc a { color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.toc a:hover { color: var(--brand-ink); }
.aside-cta { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: var(--brand-deep); color: #fff; }
.aside-cta strong { font-size: 1.25rem; line-height: 1.25; }
.aside-cta span { color: color-mix(in srgb, var(--brand) 12%, #fff); font-size: .95rem; }
.aside-cta .btn { align-self: flex-start; }
@media (max-width: 900px) { .page-aside { position: static; } .page-body { gap: 32px; padding-top: 36px; } }

/* Texte riche */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin: 48px 0 14px; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); color: var(--muted); font-size: 1.12rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose img { height: auto; border-radius: 18px; }
/* Mise en page de l'éditeur (Filament) et blocs du site (App\PublicSite\Blocks) */
.prose .lead { font-size: 1.3rem; line-height: 1.6; color: var(--text); font-weight: 600; }
.prose small { font-size: .85em; color: var(--muted); }
.prose mark { background: color-mix(in srgb, var(--brand) 22%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .grid-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin: 24px 0; }
@media (min-width: 760px) { .prose .grid-layout { grid-template-columns: var(--cols); } .prose .grid-layout > .grid-layout-col { grid-column: var(--col-span); } }
.prose .grid-layout > .grid-layout-col { min-width: 0; }
.prose .grid-layout > .grid-layout-col > :first-child { margin-top: 0; }
.prose details, .blk-faq details { border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin: 10px 0; background: var(--surface); }
.prose details > summary, .blk-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.prose details[open] > summary::after { content: "–"; }
.prose details > :not(summary) { margin-top: 0; }
.prose details[open] { padding-bottom: 6px; }
.blk-button { margin: 28px 0; }
.blk-button.is-center { text-align: center; }
.blk-cta { margin: 40px 0; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--brand-deep); color: #fff; }
.prose .blk-cta .blk-cta-title { margin: 0 0 8px; color: #fff; }
.blk-cta p { color: color-mix(in srgb, var(--brand) 12%, #fff); }
.blk-cta p:last-child { margin-bottom: 0; }
.blk-cta .btn { background: #fff; border-color: #fff; color: var(--brand-deep); }
.blk-callout { margin: 32px 0; padding: 22px 26px; border-radius: 22px; background: var(--brand-tint); }
.blk-callout.is-succes { background: color-mix(in srgb, #16a34a 12%, var(--surface)); }
.blk-callout.is-attention { background: var(--accent-tint); }
.blk-callout strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.blk-callout p { margin: 0; }
.blk-quote { margin: 40px 0; padding: 36px; border-radius: 26px; background: var(--brand-tint); position: relative; }
.blk-quote::before { content: "“"; display: block; font-size: 4.5rem; line-height: .7; height: 28px; color: var(--brand); font-family: Georgia, serif; font-weight: 700; }
.prose .blk-quote blockquote { margin: 0 0 18px; padding: 0; border: 0; color: var(--text); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: -.01em; font-weight: 700; }
.blk-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.blk-quote-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand); flex: none; }
.blk-quote small { display: block; color: var(--muted); }
.figures { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.blk-figures { margin: 32px 0; }
.figures .card { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.figures strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-ink); line-height: 1.1; }
.figures span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.blk-offers { margin: 32px 0; }
.blk-offers .offer-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.preview-banner { position: sticky; top: 0; z-index: 50; background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d; padding: 10px 16px; text-align: center; font-size: .92rem; }
.cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 0 0 28px; }

/* Bandeau de consentement aux cookies de mesure d'audience (public._consent) : refuser et accepter à égalité. */
.consent { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; padding: 18px 20px; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 18px 50px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06); font-size: .92rem; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 10px; }
.consent-title { font-weight: 800; font-size: 1rem; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; text-align: center; }
.linklike { border: 0; padding: 0; background: none; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }

/* Feuilles de temps : saisie jour par jour (une ligne par jour, en cartes sur téléphone), signature. */
.ts-grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 20px; }
.ts-row { display: grid; grid-template-columns: 104px repeat(4, 1fr) 1.8fr 1fr; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.ts-row.ts-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; border-bottom-width: 2px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.ts-row.is-weekend { background: color-mix(in srgb, var(--muted) 6%, transparent); }
.ts-row.is-holiday .ts-day small { color: var(--brand); }
.ts-day { font-size: .9rem; line-height: 1.2; }
.ts-day strong { text-transform: capitalize; }
.ts-day small { display: block; font-size: .7rem; color: var(--muted); }
.ts-f { margin: 0; font-weight: 400; }
.ts-f span { display: none; }
.ts-f input, .ts-f select { width: 100%; padding: 6px 7px; font-size: .9rem; border-radius: 8px; }
/* Cases remplies : elles ressortent du reste de la grille. */
.ts-f input:not(:placeholder-shown), .ts-f select[data-filled="1"] { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border-color: var(--brand); font-weight: 600; }
.ts-row.ts-subtotal { background: color-mix(in srgb, var(--brand) 6%, transparent); border-bottom: 2px solid var(--line); font-size: .88rem; padding: 7px 0; margin-bottom: 6px; }
.ts-row.ts-subtotal b { font-variant-numeric: tabular-nums; padding-left: 8px; }
.ts-subtotal small { color: var(--muted); }
.ts-subtotal .ts-day strong { text-transform: none; white-space: nowrap; }
.ts-header { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 20px; margin: 0 0 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ts-header div { margin: 0; }
.ts-header dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
.ts-header dd { margin: 2px 0 0; font-weight: 600; }
.ts-totals { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 4px 6px; font-size: .92rem; color: var(--muted); position: sticky; bottom: 0; background: var(--surface); }
.ts-totals b { color: var(--text); font-variant-numeric: tabular-nums; }
.ts-totals > span:first-child { font-weight: 700; color: var(--text); }
@media (max-width: 860px) {
  .ts-row.ts-head { display: none; }
  .ts-row { grid-template-columns: repeat(4, 1fr); padding: 12px 0; }
  .ts-day { grid-column: 1 / -1; }
  .ts-f span { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
  .ts-f:has(select) { grid-column: span 3; }
  .ts-row.ts-subtotal { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px; }
  .ts-row.ts-subtotal .ts-day { flex-basis: 100%; }
  .ts-row.ts-subtotal b { padding-left: 0; }
  .ts-read { overflow-x: auto; }
}
.ts-read table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ts-read th, .ts-read td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ts-read td:first-child { white-space: nowrap; text-transform: capitalize; width: 80px; }
.ts-read th.num, .ts-read td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-read th { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.ts-read tr.is-weekend td { color: var(--muted); }
.ts-read tr.ts-subtotal td { background: color-mix(in srgb, var(--brand) 6%, transparent); font-weight: 600; border-bottom: 2px solid var(--line); }
.ts-read tfoot td { font-weight: 800; border-top: 2px solid var(--text); }
.ts-read tr.ts-subtotal td:first-child, .ts-read tfoot td:first-child { text-transform: none; }
.ts-read tr.is-diff td { background: color-mix(in srgb, #f59e0b 14%, transparent); }
.ts-read small { color: var(--muted); display: block; }
.ts-sum { margin: 14px 0; }
.sig-pad { display: block; width: 100%; max-width: 520px; height: 180px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.sig-pad.is-required { border-color: var(--ko); }
.sig-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 520px; margin-top: 6px; }
.sig-clear { padding: 6px 12px; }

/* Espaces client et salarié */
.space-login { max-width: 560px; }
.space-status { border-left: 4px solid var(--brand); }
.space-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.space-head h1 { margin-top: 2px; }
.space-nav { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 20px; padding-bottom: 4px; }
.space-nav a { flex: none; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-size: .9rem; }
.space-nav a:hover { border-color: var(--brand); color: var(--brand); }
.card h2 { margin: 0 0 12px; font-size: 1.2rem; }
.card h3 { margin: 20px 0 6px; font-size: 1rem; }
.space-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.space-row:last-child { border-bottom: 0; }
.space-todo { border-left: 4px solid var(--brand); }
.space-todo .space-row .btn { flex: none; padding: 8px 14px; }
@media (max-width: 600px) { .space-row { flex-direction: column; align-items: flex-start; } }
.space-upload { margin-top: 16px; }
.space-upload summary { cursor: pointer; font-weight: 600; color: var(--brand); }
section[id] { scroll-margin-top: 16px; }

/* Widget (pages servies dans le cadre d'un autre site) : sans fond ni marges, toujours en clair. */
html.in-widget { color-scheme: light; --bg: #f6f7f5; --surface: #ffffff; --text: #1b1d1c; --muted: #646a67; --line: #e2e5e2; --ko: #b91c1c; }
html.in-widget body { background: transparent; }
html.in-widget .wrap { max-width: none; padding: 0 2px; }
html.in-widget .site-main { padding-top: 4px; padding-bottom: 8px; }
