﻿/* V3 - Mobile-first CSS (keeps current look & tokens) */

:root {
  --color_dore: #FFD700;
  --text: #111;
  --muted: #555;
  --bg: #fff;

  --shadow: 6px 6px 12px #555;
  --shadow-sm: 4px 4px 8px #555;

  --container: 1200px;

  /* Mobile-first sizes */
  --header-h: 76px;
  --hamburger-size: 52px;
  --hamburger-bar: 4px;
  --hamburger-gap: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Playfair Display", serif;
}

a { color: inherit; }

/* Layout */
.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 6px solid var(--color_dore);
  box-shadow: 4px 4px 10px #555;
  z-index: 1000;
  display: grid;
  align-items: center;
}

.site-main {
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: 12px;
  min-height: calc(100vh - var(--header-h) - 160px);
}

.site-footer {
  border-top: 2px solid var(--color_dore);
  padding: 14px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: center;
  font-family: "Playfair Display", serif;
}

/* Brand (logo + title) */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand__title {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  margin: 0;
  line-height: 1;
}

.brand__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Section title like current */
.h-section {
  font-size: 1.8em;
  margin: 0 0 20px 0;
  border-bottom: 2px solid gold;
  padding-bottom: 8px;
}

/* Forms */
.form {
  max-width: 520px;
}

.form label {
  display: block;
  font-weight: 600;
}

.form input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
}

.form button {
  padding: 10px 12px;
  font-weight: 700;
}

/* Hamburger menu (class-based, still uses input id for label) */
.menu__toggle {
  opacity: 0;
  position: absolute;
}

.menu__toggle:checked + .menu__btn > span {
  transform: rotate(45deg);
}
.menu__toggle:checked + .menu__btn > span::before {
  top: 0;
  transform: rotate(0deg);
}
.menu__toggle:checked + .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
.menu__toggle:checked ~ .menu__box {
  left: 0;
}

.menu__btn {
  position: fixed;
  top: calc((var(--header-h) - var(--hamburger-size)) / 2);
  left: 16px;
  width: var(--hamburger-size);
  height: var(--hamburger-size);
  cursor: pointer;
  z-index: 1100;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: var(--hamburger-bar);
  background-color: #616161;
  transition-duration: .25s;
  top: 50%;
  transform: translateY(-50%);
}

.menu__btn > span::before {
  content: '';
  top: calc(50% - var(--hamburger-gap));
  transform: translateY(-50%);
}

.menu__btn > span::after {
  content: '';
  top: calc(50% + var(--hamburger-gap));
  transform: translateY(-50%);
}

.menu__box {
  display: block;
  position: fixed;
  top: 0;
  left: -110%;
  width: min(20em, 86vw);
  height: 100%;
  margin: 0;
  padding: calc(var(--header-h) + 32px) 0 16px;
  list-style: none;
  background-color: #ECEFF1;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
  transition-duration: .25s;
  z-index: 1050;
}

.menu__item {
  display: block;
  padding: 12px 24px;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition-duration: .25s;
}

.menu__item:hover {
  background-color: #CFD8DC;
}

.menu__separator {
  height: 12px;
}

.menu__li--admin {
  margin-top: 1rem;
  border-top: 1px solid #CFD8DC;
}

/* Fullscreen layout */
.layout-fullscreen,
.layout-fullscreen body {
  height: 100%;
}

.fs-root {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.fs-btn {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 2000;
}

/* Reusable fullscreen screen helpers */
.screen-center {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.screen-title {
  font-size: 48px;
  font-weight: 700;
}

.screen-subtitle {
  font-size: 22px;
  margin-top: 12px;
}

.screen-hint {
  font-size: 18px;
  margin-top: 24px;
  opacity: 0.8;
}

/* Responsive: scale up like current site */
@media (min-width: 900px) {
  :root {
    --header-h: 100px;
    --hamburger-size: 80px;
    --hamburger-bar: 6px;
    --hamburger-gap: 16px;
  }

  .brand__title { font-size: 3rem; }
  .brand__logo { width: 80px; height: 80px; }

  .menu__btn { left: 3em; }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
  }
}


/* ═══════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════ */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.admin-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.admin-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  transform: translateY(-2px);
}
.admin-card__icon  { font-size: 2.2rem; }
.admin-card__title { font-weight: 700; font-size: 1rem; }
.admin-card__desc  { font-size: .82rem; color: #666; }

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-top: .75rem;
}
.admin-table thead tr {
  background: #2c2c2c;
  color: #fff;
}
.admin-table th,
.admin-table td {
  padding: .55rem .75rem;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
}
.admin-table tbody tr:nth-child(even) { background: #f8f8f8; }
.admin-table tbody tr:hover           { background: #f0f4ff; }
.admin-table__row--active             { background: #eafff0 !important; }

/* Buttons */
.admin-btn {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 6px;
  border: none;
  background: #2c2c2c;
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
}
.admin-btn:hover          { background: #444; }
.admin-btn--sm            { padding: .25rem .6rem; font-size: .8rem; }
.admin-btn--danger        { background: #c0392b; }
.admin-btn--danger:hover  { background: #a93226; }
.admin-btn--success       { background: #27ae60; }
.admin-btn--success:hover { background: #219150; }

/* Forms */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 600px;
  margin-top: 1rem;
}

/* Login card */
.login-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
  min-height: 60vh;
}
.login-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 400px;
}
.login-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.login-card__icon {
  font-size: 2.2rem;
  line-height: 1;
}
.login-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
}
.login-card__msg {
  font-size: .88rem;
  color: #555;
  text-align: center;
  margin: 0 0 .75rem;
}
.login-card .admin-form {
  max-width: none;
  margin-top: 0;
}
.login-card .admin-btn {
  width: 100%;
  justify-content: center;
  padding: .6rem;
  font-size: 1rem;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .9rem;
  font-weight: 600;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  resize: vertical;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus { outline: 2px solid #2c2c2c; }

/* Two-column layout (contacts) */
.admin-two-col {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 720px) {
  .admin-two-col { grid-template-columns: 1fr; }
}
.admin-two-col__list {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
}
.admin-two-col__list ul { list-style: none; margin: 0; padding: 0; }
.admin-two-col__list li a {
  display: block;
  padding: .65rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
  font-size: .88rem;
  transition: background .15s;
}
.admin-two-col__list li a:hover,
.admin-two-col__list li a.active { background: #f0f4ff; }
.admin-two-col__list li.unread a { font-weight: 700; }
.admin-two-col__detail {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 1.5rem;
  min-height: 300px;
}
.admin-two-col__detail h4 { margin-top: 0; font-size: 1.05rem; }

/* Messages / notices */
.admin-msg {
  padding: .7rem 1rem;
  margin: .75rem 0;
  border-radius: 6px;
  font-weight: 600;
  background: #eafff0;
  border: 1px solid #27ae60;
  color: #1a5c36;
}
.admin-msg.error {
  background: #fff0f0;
  border-color: #c0392b;
  color: #7b1c13;
}

/* Actions cell */
.admin-actions { white-space: nowrap; display: flex; gap: .35rem; align-items: center; }

/* Planning table */
.planning-table { width: 100%; }
.planning-table .weekend-row { background: #f5efe0; }
.planning-table .event-row   { background: #e8f0fe; }
.planning-table .past-row    { opacity: .55; }


/* ═══════════════════════════════════════════
   CONTRATS (co-*)
═══════════════════════════════════════════ */
.co-detail { display: flex; flex-direction: column; gap: 1.5rem; }

.co-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,0,0,.13), 0 1px 4px rgba(0,0,0,.07);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,.06);
}
.co-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-bottom: 2px solid #c8c8c8;
  padding-bottom: .5rem;
  margin-bottom: .75rem;
}
.co-box__header .co-box__title {
  margin: 0;
  border: none;
  padding: 0;
}
.co-box__title {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid #c8c8c8;
  padding-bottom: .5rem;
}

/* Status badges */
.co-badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: #888;
}
.co-badge--draft  { background: #f39c12; }
.co-badge--signed { background: #3498db; }
.co-badge--ok     { background: #27ae60; }
.co-badge--done   { background: #2c3e50; }
.co-badge--cancel { background: #c0392b; }
.co-badge--sent      { background: #e67e22; }
.co-badge--paid      { background: #27ae60; }
.co-badge--cancelled { background: #c0392b; }

.co-status-row { margin-bottom: 1rem; }
.co-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* Detail table overrides */
.co-table th { width: 160px; background: #fafafa; }
.co-table__sep {
  text-align: center;
  background: #2c2c2c !important;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}

/* Personnel */
.co-personnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.co-personnel-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #f8f9fa;
  border-radius: 8px;
  padding: .65rem .9rem;
}
.co-personnel-card small { display: block; color: #666; font-size: .8rem; }
.co-personnel-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #2c2c2c;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}

/* Planning timeline */
.co-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 3px solid #ddd;
  padding-left: 1.25rem;
}
.co-timeline li {
  padding: .5rem 0;
  position: relative;
}
.co-timeline li::before {
  content: '';
  width: 10px; height: 10px;
  background: #2c2c2c;
  border-radius: 50%;
  position: absolute;
  left: -1.55rem;
  top: .75rem;
}

/* Styles musicaux */
.co-style-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.co-style-list li { padding: .3rem 0; border-bottom: 1px solid #f0f0f0; }
.co-style-del {
  color: #c0392b; text-decoration: none; font-weight: 700;
  margin-left: .5rem; background: none; border: none; cursor: pointer; padding: 0; font-size: inherit;
}
.co-style-del:hover { text-decoration: underline; }
.co-inline-del {
  background: none; border: none; cursor: pointer; padding: 0; font-size: inherit;
}

/* Payment info */
.co-payment-info {
  background: #f0faf5;
  border: 1px solid #27ae60;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.co-payment-info h5 { margin: 0 0 .5rem; }
.co-payment-info p { margin: .2rem 0; font-size: .9rem; }

/* ── Signature client ─────────────────────────────────────────────────── */
.co-sign-box {
  background: #fffbea;
  border: 2px solid var(--color_dore, #c8a84b);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}
.co-sign-box__intro { margin: 0 0 .9rem; font-size: .92rem; color: #555; }
.co-sign-box__cgv-label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .91rem;
  line-height: 1.5;
  cursor: pointer;
}
.co-sign-box__cgv-label input[type="checkbox"] { margin-top: .2rem; flex-shrink: 0; }
.co-sign-box__cgv-label a { color: var(--color_dore, #c8a84b); font-weight: 700; }

/* ── Messagerie contrat ────────────────────────────────────────────────── */
.co-msg-form {
  display: flex;
  gap: .6rem;
  align-items: flex-end;
  margin-bottom: 1.2rem;
}
.co-msg-input {
  flex: 1;
  resize: vertical;
  padding: .6rem .8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  min-height: 60px;
}
.co-msg-input:focus { border-color: var(--color_dore); outline: none; }
.co-msg-empty { color: #999; font-style: italic; font-size: .9rem; }

.co-msg-thread {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-height: 500px;
  overflow-y: auto;
  padding: .4rem 0;
}
.co-msg-bubble {
  max-width: 80%;
  padding: .7rem .9rem;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.5;
}
.co-msg-bubble--mine {
  align-self: flex-end;
  background: #e8f4e8;
  border-bottom-right-radius: 2px;
}
.co-msg-bubble--other {
  align-self: flex-start;
  background: #f0f0f0;
  border-bottom-left-radius: 2px;
}
.co-msg-bubble__header {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .3rem;
  font-size: .78rem;
  color: #777;
}
.co-msg-bubble__header strong { color: #333; }
.co-msg-bubble__text { word-break: break-word; }

.co-msg-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-top: 1rem;
  font-size: .88rem;
}
.co-msg-pager__info { color: #888; }

@media (max-width: 600px) {
  .co-msg-form { flex-direction: column; }
  .co-msg-bubble { max-width: 92%; }
}

/* Collapsible details */
.co-details {
  margin-top: .75rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: .75rem 1rem;
}
.co-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
}
.co-details[open] summary { margin-bottom: .75rem; }

.co-fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin: .5rem 0;
}
.co-fieldset legend { font-weight: 600; font-size: .88rem; padding: 0 .4rem; }

.co-avenant-ligne {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: .5rem;
}
.co-avenant-ligne select,
.co-avenant-ligne input { font-size: .82rem; padding: .3rem .5rem; }

.co-inline-form {
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: flex-end;
  margin-top: .5rem;
}
.co-inline-form select,
.co-inline-form input {
  padding: .4rem .6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: .88rem;
}

/* Form specific to contrat creation */
.co-form fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin: .75rem 0;
}
.co-form fieldset legend { font-weight: 700; font-size: .95rem; padding: 0 .4rem; }
.co-form__checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .25rem .75rem;
}
.co-form__check { display: flex; align-items: center; gap: .4rem; font-weight: 400; font-size: .88rem; }
.co-form__check input[type="checkbox"] { width: auto; }

@media (max-width: 600px) {
  .co-personnel-grid { grid-template-columns: 1fr; }
  .co-avenant-ligne { flex-direction: column; }

  /* ── Key-value tables (co-table) → stacked cards ─── */
  .co-table:not(.co-table--keep),
  .co-table:not(.co-table--keep) tbody,
  .co-table:not(.co-table--keep) tr,
  .co-table:not(.co-table--keep) th,
  .co-table:not(.co-table--keep) td { display: block; width: 100%; box-sizing: border-box; }
  .co-table:not(.co-table--keep) tr { padding: .4rem 0; border-bottom: 1px solid #eee; }
  .co-table:not(.co-table--keep) th {
    width: 100% !important;
    background: transparent;
    border: none;
    padding: .25rem 0 0;
    color: #888;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .3px;
  }
  .co-table:not(.co-table--keep) td { border: none; padding: .1rem 0 .35rem; }
  .co-table:not(.co-table--keep) .co-table__sep td {
    background: #2c2c2c !important;
    border-radius: 4px;
    margin-top: .5rem;
    padding: .45rem .6rem !important;
  }
  /* ── co-table--keep : reste un tableau, th plus étroit ─── */
  .co-table--keep th { width: 110px !important; }

  /* ── Data tables (co-responsive) → card rows ─── */
  .co-responsive,
  .co-responsive thead,
  .co-responsive tbody,
  .co-responsive tr,
  .co-responsive th,
  .co-responsive td { display: block; width: 100%; box-sizing: border-box; }
  .co-responsive thead { display: none; }
  .co-responsive tbody tr {
    background: #f8f9fa;
    border-radius: 8px;
    padding: .65rem .75rem;
    margin-bottom: .65rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border: 1px solid #e8e8e8;
  }
  .co-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
    border: none;
    border-bottom: 1px solid #e8e8e8;
  }
  .co-responsive td:last-child { border-bottom: none; }
  .co-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    font-size: .82rem;
    flex-shrink: 0;
    margin-right: .75rem;
  }
  .co-responsive td[data-label=""]::before { display: none; }
  .co-responsive td[data-label=""] { justify-content: flex-end; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   IMPRESSION / PRINT — contrat & facture
   ═══════════════════════════════════════════════════════════════════════════ */

/* Bouton impression contrat */
.co-print-btn { text-align: right; margin-bottom: .5rem; }

/* Facture + Contrat imprimables — base commune */
.print-invoice,
.print-contract { max-width: 800px; margin: 1.5rem auto; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 2rem; border-radius: 6px; }
.print-invoice__actions,
.print-contract__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.print-invoice__header,
.print-contract__header { text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 3px solid #333; }
.print-invoice__title,
.print-contract__title { margin: 0; font-size: 2rem; color: #333; letter-spacing: .1em; }
.print-invoice__uid,
.print-contract__uid { font-size: 1.05rem; color: #666; margin: .4rem 0 0; }
.print-invoice__parties,
.print-contract__parties { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.print-invoice__party,
.print-contract__party { flex: 1; min-width: 180px; }
.print-invoice__party h3,
.print-contract__party h3 { margin: 0 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid #333; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #333; }
.print-invoice__party p,
.print-contract__party p { line-height: 1.75; margin: 0; font-size: .88rem; }
.print-invoice__footer,
.print-contract__footer { text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ddd; font-size: .76rem; color: #666; line-height: 1.6; }

/* ── Facture imprimable — spécifique ── */
.print-invoice__meta { background: #f5f5f5; padding: .85rem 1rem; border-radius: 4px; margin-bottom: 1.5rem; }
.print-invoice__meta table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.print-invoice__meta td { padding: .25rem .4rem; }
.print-invoice__meta td:last-child { text-align: right; }
.print-invoice__lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .88rem; }
.print-invoice__lines thead tr { background: #333; color: #fff; }
.print-invoice__lines th, .print-invoice__lines td { padding: .65rem .85rem; border: 1px solid #ddd; }
.print-invoice__lines .pi-num { text-align: right; width: 100px; }
.print-invoice__lines tbody tr:nth-child(even) { background: #fafafa; }
.print-invoice__total-bloc { text-align: right; margin-bottom: 1.5rem; padding-top: 1rem; border-top: 2px solid #333; }
.print-invoice__tva { font-size: .8rem; color: #555; font-style: italic; margin: 0 0 .4rem; }
.print-invoice__total { font-size: 1.3rem; margin: 0; color: #333; }
.print-invoice__payment { background: #e8f4f8; padding: 1.25rem 1.5rem; border-radius: 4px; border-left: 4px solid #0066cc; margin-bottom: 1.5rem; }
.print-invoice__payment h3 { margin: 0 0 .6rem; color: #0066cc; font-size: .95rem; }
.print-invoice__payment p { line-height: 1.9; margin: 0; font-size: .88rem; }
.print-invoice__payment code { background: #fff; padding: 2px 7px; border-radius: 3px; font-size: .83rem; }
.print-invoice__ref { font-weight: 700; color: #c00; }

/* ── Contrat imprimable — spécifique ── */
.print-contract__section { margin-bottom: 1.5rem; }
.print-contract__section h3 { margin: 0 0 .6rem; padding-bottom: .3rem; border-bottom: 2px solid #333; font-size: .95rem; color: #333; }
.print-contract__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.print-contract__table th, .print-contract__table td { padding: .5rem .75rem; border: 1px solid #ddd; text-align: left; }
.print-contract__table thead tr { background: #333; color: #fff; }
.print-contract__table tbody tr:nth-child(even) { background: #fafafa; }
.print-contract__table td:first-child { width: 35%; font-weight: 500; background: #f9f9f9; }
.print-contract__total-row { background: #f0f0f0 !important; }
.print-contract__total-row td { font-size: 1.05rem; }
.print-contract__tva { font-size: .8rem; color: #555; font-style: italic; margin: .5rem 0 0; }
.print-contract__cgv { margin-top: 1.5rem; padding-top: 1rem; }
.print-contract__cgv h3 { margin: 0 0 .6rem; padding-bottom: .3rem; border-bottom: 2px solid #333; font-size: .95rem; color: #333; }
.print-contract__cgv-content { font-size: .82rem; line-height: 1.7; color: #333; column-count: 2; column-gap: 2rem; }

/* @media print — masquer le chrome, garder le contenu */
@media print {
    .hamburger-menu,
    .site-header,
    .site-footer,
    .co-actions,
    .co-details,
    .no-print,
    .print-invoice__actions,
    .print-contract__actions { display: none !important; }

    body { background: #fff !important; color: #000; }
    .container { max-width: 100%; padding: 0; }
    .co-box { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
    .print-invoice { box-shadow: none; border: none; padding: 0; margin: 0; }
    .print-contract { box-shadow: none; border: none; padding: 0; margin: 0; }
    .print-contract__cgv { page-break-before: always; }
    .print-contract__cgv-content { column-count: 2; }
    a { color: inherit !important; text-decoration: none !important; }
    code { background: none !important; border: 1px solid #aaa; }
}