/* cofipos.com — site vitrine. Olive Cofipos, papier de ticket de caisse, police mono pour les montants (imprimante thermique). */
:root {
  --ink: #1f2219;        /* texte */
  --olive: #72715b;      /* couleur Cofipos */
  --olive-deep: #45452f; /* boutons, bandeau contact */
  --ground: #e9eae3;     /* fond général, gris sauge */
  --paper: #ffffff;      /* ticket, écrans */
  --rule: #cfd1c4;
  --muted: #5b5e50;
  --mark: #f2c14e;       /* surligneur du total */
  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-deep); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.25; }
p { margin: 0; }
.in { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }
section { padding: 72px 0; }
.sub { color: var(--muted); max-width: 62ch; margin-top: 12px; }

/* En-tête */
.bar { background: var(--ground); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.bar .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 21px; }
.mark img { border-radius: 8px; }
.bar nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.bar nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.bar nav a:hover { background: #dfe0d6; }
.bar nav a.go { background: var(--olive-deep); color: #fff; font-weight: 600; margin-left: 6px; }
.bar nav a.go:hover { background: #38382a; }
.bar .go-m, .burger { display: none; }

/* En-tête sur téléphone et petite tablette : logo + « Créer mon espace » + bouton menu ; le menu s'ouvre en dessous */
@media (max-width: 820px) {
  .bar .in { flex-wrap: nowrap; min-height: 60px; gap: 8px; position: relative; }
  .mark { font-size: 19px; margin-right: auto; min-width: 0; }
  .mark img { width: 30px; height: 30px; }
  .bar .go-m { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--olive-deep);
    color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px;
    border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); cursor: pointer; flex: none; }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .bar.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bar.open .burger span:nth-child(2) { opacity: 0; }
  .bar.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bar nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap;
    background: var(--ground); border-bottom: 1px solid var(--rule); padding: 6px 16px 14px; box-shadow: 0 12px 20px -12px rgba(52, 54, 38, .3); }
  .bar:not(.js) .in { flex-wrap: wrap; }
  .bar:not(.js) nav { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px; }
  .bar:not(.js) .burger { display: none; }
  .bar.js nav { display: none; }
  .bar.js.open nav { display: flex; }
  .bar nav a { padding: 13px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--rule); }
  .bar nav a.go { display: none; }
  .bar nav a.quiet { border-bottom: 0; }
}
@media (max-width: 360px) {
  .mark span { display: none; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px;
  background: var(--olive-deep); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--olive-deep); }
.btn:hover { background: #38382a; }
.btn.ghost { background: transparent; color: var(--olive-deep); }
.btn.ghost:hover { background: #dfe0d6; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 16px; }

/* Ouverture : le ticket */
.hero { padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; }
.lead { font-size: 20px; color: var(--muted); max-width: 52ch; margin-top: 20px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }

.ticket { margin: 0; justify-self: center; width: min(340px, 100%); filter: drop-shadow(0 18px 24px rgba(52, 54, 38, .18)); }
.paper { background: var(--paper); font: 14px/1.5 var(--mono); padding: 26px 22px 30px; position: relative;
  --z: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  padding-bottom: 40px; }
.t-head { text-align: center; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px dashed #9a9c8c; color: #3a3c31; }
.t-head strong { font-size: 16px; letter-spacing: .04em; color: var(--ink); }
.t-line, .t-total { display: flex; justify-content: space-between; gap: 12px; }
.t-line.muted { color: #6f7262; }
.t-total { font-weight: 600; font-size: 18px; margin: 10px 0 6px; padding: 8px 0; border-top: 1px dashed #9a9c8c; border-bottom: 1px dashed #9a9c8c; }
.t-total span:last-child { background: linear-gradient(transparent 55%, var(--mark) 55%); padding: 0 2px; }
.t-qr { width: 84px; height: 84px; margin: 18px auto 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.t-qr i { background: var(--ink); border-radius: 1px; }
.t-qr i:nth-child(2), .t-qr i:nth-child(4), .t-qr i:nth-child(8) { background: transparent; border: 4px solid var(--ink); }
.t-qr i:nth-child(5) { background: var(--olive); }
.t-foot { text-align: center; font-size: 12px; color: #4b4d40; }
@media (prefers-reduced-motion: no-preference) {
  .paper { animation: print 1.6s cubic-bezier(.3, .7, .3, 1) .2s both; }
  @keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-16px); } to { clip-path: inset(0 0 0 0); transform: none; } }
}

/* Métiers */
.metiers { background: var(--paper); }
.m-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.m-list li { padding: 20px 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.m-list p { color: var(--muted); max-width: 58ch; }
.m-list a { font-weight: 600; justify-self: start; }

/* Écrans */
.e-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.e-text dl { margin: 28px 0 0; }
.e-text dt { font-weight: 700; font-size: 19px; margin-top: 20px; }
.e-text dd { margin: 4px 0 0; color: var(--muted); max-width: 54ch; }
.shots { position: relative; padding-bottom: 40px; }
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--rule); background: var(--paper); }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.shot.wide { width: 92%; }
.shot.phone { position: absolute; right: 0; top: 36%; width: 34%; min-width: 150px; }
.shot.phone img { border: 6px solid var(--ink); border-radius: 26px; height: 420px; object-fit: cover; object-position: top; }

/* Démarrage */
.start { background: var(--olive); color: #fff; }
.start h2 { color: #fff; }
.steps { list-style: none; counter-reset: s; margin: 36px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: s; border-top: 2px solid rgba(255, 255, 255, .5); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font: 600 34px/1 var(--mono); margin-bottom: 12px; }
.steps p { color: #eceee4; margin-top: 6px; }
.start .btn { background: #fff; color: var(--olive-deep); border-color: #fff; }
.start .btn:hover { background: var(--ground); }

/* Tarifs */
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.plan { background: var(--paper); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--rule); }
.p-desc { color: var(--muted); }
.amount { font: 600 40px/1.1 var(--mono); letter-spacing: -0.02em; margin-top: 10px; }
.amount small { font: 500 16px var(--sans); color: var(--muted); letter-spacing: 0; }
.fcfa, .p-year { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.p-meta { margin: 6px 0 12px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.hl { border: 2px solid var(--ink, #111); }
.p-badge { display: inline-block; vertical-align: middle; font: 700 12px var(--sans); padding: 3px 8px; border-radius: 99px; background: #FDE68A; color: #3B2F05; }
.p-items { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.more { margin-top: 24px; color: var(--muted); }

/* Contact */
.contact { background: var(--olive-deep); color: #fff; }
.contact h2 { color: #fff; }
.contact p { color: #e3e4d9; margin-top: 12px; max-width: 40ch; }
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.c-list { list-style: none; margin: 0; padding: 0; }
.c-list li { border-top: 1px solid rgba(255, 255, 255, .25); }
.c-list a, .c-list .row { display: flex; justify-content: space-between; gap: 6px 16px; padding: 16px 0; color: #fff; text-decoration: none; flex-wrap: wrap; }
.c-list span { color: #d3d5c6; }
.c-list strong { font-weight: 600; }
.c-list a:hover strong { text-decoration: underline; }

/* Pied de page */
.foot { padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.f-grid { display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot strong { color: var(--ink); }

@media (max-width: 880px) {
  .hero-grid, .e-grid, .c-grid { grid-template-columns: 1fr; gap: 36px; }
  .m-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .in { padding: 0 16px; }
  .hero { padding: 32px 0 56px; }
  .lead { font-size: 18px; }
  .shot.wide { width: 100%; }
  .shot.phone { position: static; width: 62%; margin: 20px auto 0; }
  .shots { padding-bottom: 0; }
}

/* Accueil : liens des métiers */
.m-list h3 a.m-name { color: var(--ink); text-decoration: none; }
.m-list h3 a.m-name:hover { text-decoration: underline; }
.m-links { color: var(--muted); }
.m-links a { font-weight: 600; }

/* Pages par métier */
.eyebrow { font: 500 14px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; }
.eyebrow a { color: var(--muted); }
.m-hero h1 { max-width: 18ch; }
.day { background: var(--paper); }
.timeline { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when { font: 600 17px/1.3 var(--mono); color: var(--olive-deep); padding-top: 1px; }
.timeline p { color: var(--muted); margin-top: 4px; max-width: 58ch; }
.words { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.words li { font: 500 15px/1 var(--mono); background: var(--paper); border: 1px dashed #9a9c8c; border-radius: 6px; padding: 9px 12px; }
.f-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.f-list li { padding: 20px 0; border-top: 1px solid var(--rule); }
.f-list p { color: var(--muted); margin-top: 6px; }
.m-shots { background: var(--paper); }
.s-row { display: flex; gap: 28px; align-items: flex-start; margin-top: 32px; }
.s-row .shot { flex: 1 1 0; min-width: 0; }
.s-row .shot.tall { flex: 0 0 auto; width: min(280px, 34%); }
.s-row .shot.tall img { border: 6px solid var(--ink); border-radius: 26px; max-height: 560px; object-fit: cover; object-position: top; width: 100%; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 14px 0; list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
.faq details p { color: var(--muted); padding: 0 0 16px; max-width: 62ch; }
.others { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.others span { color: var(--muted); }
@media (max-width: 880px) {
  .f-list { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .f-list { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .s-row { flex-direction: column; }
  .s-row .shot.tall { width: 70%; margin: 0 auto; }
}

/* Image de présentation (vrais écrans) : en tête des pages métier, vignette sur l'accueil */
.m-hero .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; }
.m-visual { margin: 0; }
.m-visual img { width: 100%; border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(52, 54, 38, .35); }
.m-thumb { display: block; border-radius: 12px; overflow: hidden; margin-bottom: 6px; border: 1px solid var(--rule); }
.m-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.m-thumb:hover img { transform: scale(1.02); }
@media (max-width: 880px) { .m-hero .hero-grid { grid-template-columns: 1fr; } }
.m-list li:has(.m-thumb) { grid-template-columns: 170px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.m-list li .m-thumb { grid-row: 1 / span 3; margin: 0; }
@media (max-width: 560px) {
  .m-list li:has(.m-thumb) { grid-template-columns: 1fr; }
  .m-list li .m-thumb { grid-row: auto; }
}

/* Accueil : vignette d'un métier sans capture (ticket dessiné) */
.m-thumb-t { background: linear-gradient(160deg, #dfe0d6, #cfd1c4); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.mt-paper { background: var(--paper); width: 72%; padding: 10px 10px 12px; font: 10px/1.45 var(--mono); color: var(--ink); display: grid; gap: 2px;
  box-shadow: 0 8px 14px -8px rgba(52, 54, 38, .4); transition: transform .25s ease; }
.mt-paper strong { text-align: center; font-size: 10.5px; margin-bottom: 4px; }
.mt-l { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; overflow: hidden; }
.mt-l span:first-child { overflow: hidden; text-overflow: ellipsis; }
.mt-t { border-top: 1px dashed var(--rule); margin-top: 4px; padding-top: 4px; font-weight: 600; }
.m-thumb-t:hover .mt-paper { transform: scale(1.03); }
