/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 2000;
  border-radius: 0 0 var(--border-radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* Header & Navigation */
app-header {
  display: block;
  min-height: var(--header-height);
}

app-footer {
  display: block;
}

header {
  /* Pas de backdrop-filter ici : sur un ancêtre, cette propriété devient le
     bloc de référence de tout descendant position:fixed (dont le panneau du
     menu mobile), ce qui casse son positionnement sur mobile (Safari iOS
     notamment) avec le calc(100vh - ...) utilisé plus bas. */
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(103, 60, 157, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  flex-shrink: 0;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: 0.65rem;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Bulle flottante du panier (injectée par js/cart.js), visible dès qu'un
   article est ajouté, sur toutes les pages sauf panier.html elle-même. */
.cart-bubble {
  display: none;
  position: fixed;
  right: var(--spacing-md);
  bottom: var(--spacing-md);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  font-size: 1.6rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cart-bubble.visible {
  display: flex;
}

.cart-bubble:hover,
.cart-bubble:focus-visible {
  background-color: var(--primary-dark);
  transform: scale(1.08);
}

.cart-bubble-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}

@media (max-width: 576px) {
  .cart-bubble {
    right: var(--spacing-sm);
    bottom: var(--spacing-sm);
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-speed);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Burger Menu Mobile */
.burger {
  display: none;
  cursor: pointer;
  background: var(--primary-soft);
  border: none;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  margin: 6px;
  transition: all 0.3s ease;
}

/* Animation du burger transformé en croix */
/* translate d'abord (hors parenthèses de rotation), rotate ensuite : le
   décalage vertical reste ainsi un déplacement écran pur de 14px (= distance
   réelle entre le centre de line1/line3 et le centre de la pile, vu les
   margin:6px / height:2px ci-dessus), au lieu d'être lui-même pivoté par la
   rotation si l'ordre était inversé — sinon les deux barres ne se
   rejoignent pas au centre et forment un chevron au lieu d'une croix. */
.toggle .line1 {
  transform: translateY(14px) rotate(-45deg);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: translateY(-14px) rotate(45deg);
}

/* Repli de navigation affiché uniquement si JavaScript est désactivé */
.nav-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--secondary);
  border-bottom: 1px solid var(--border-color);
}

.nav-fallback a {
  font-weight: 600;
}

.nav-fallback-note {
  background-color: var(--primary-soft);
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
  padding: var(--spacing-xs) var(--spacing-md);
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

footer a {
  /* Plus clair que --primary-light : celui-ci n'atteint que ~3,3:1 sur le fond
     sombre du footer, insuffisant pour du texte normal (WCAG AA = 4,5:1). */
  color: #c3aee0;
  font-weight: 500;
}

footer a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 1150px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.4rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-light);
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Hero Section */
.hero {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  /* TODO (T4.5) : réintroduire une photo réelle ici quand elle sera disponible : url('../images/hero/hero-bg.jpg') */
  background-image: linear-gradient(135deg, rgba(103, 60, 157, 0.95) 0%, rgba(74, 42, 113, 0.95) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -10%;
  width: 120%;
  height: 100px;
  background: var(--white);
  transform: rotate(-2deg);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: var(--spacing-sm);
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
}

.hero p {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 1px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: var(--spacing-lg);
  transition: all var(--transition-speed);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-link::after {
  content: '→';
  transition: transform 0.3s;
}

.card-link:hover::after {
  transform: translateX(5px);
}

/* Modal Styles */
.modal {
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow-y: auto; /* Enable scroll if content is too long */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    margin: auto; /* Auto margin for centering */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 700px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-button {
    background: none;
    border: none;
    font-family: inherit;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    cursor: pointer;
    transition: color 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-dark);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
    line-height: 1.2;
}

.modal-content p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-content p strong {
    color: var(--text-dark);
}

.modal-content a.btn {
    margin-top: var(--spacing-md);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 20px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: var(--spacing-md);
    }
    .close-button {
        font-size: 1.8rem;
        top: var(--spacing-xs);
        right: var(--spacing-xs);
    }
}

.responsive-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl);
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

/* --- Utilitaires supplémentaires --- */
.measure {
    max-width: 800px;
    margin: 0 auto;
}

.ml-1 {
    margin-left: var(--spacing-sm);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
}

.calendar-iframe {
    border: 1px solid #777;
}

/* --- Formulaires (contact, livre d'or) --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
}

.contact-form {
    display: grid;
    gap: var(--spacing-sm);
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    background: var(--primary-soft);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.committee-list {
    list-style: none;
    padding: 0;
}

.committee-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.committee-item:last-child {
    border-bottom: none;
}

.role {
    font-weight: bold;
    color: var(--primary);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.guestbook-form {
    background: var(--secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
}

.message-card {
    background: var(--white);
    border-left: 5px solid var(--primary);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.message-author {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* --- Catalogue --- */
.filters {
    background: var(--secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: bold;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.catalogue-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
}

th, td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary);
    color: var(--white);
    white-space: nowrap;
    padding: 0;
}

th:hover {
    background-color: var(--primary-dark);
}

.th-sort-btn {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    width: 100%;
    text-align: inherit;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.th-plain {
    padding: 1rem;
}

.th-sort-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

th[aria-sort="ascending"] .th-sort-btn::after { content: '▲'; font-size: 0.7em; }
th[aria-sort="descending"] .th-sort-btn::after { content: '▼'; font-size: 0.7em; }

.row-open-btn {
    background: none;
    border: none;
    font: inherit;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.row-open-btn:hover,
.row-open-btn:focus-visible {
    text-decoration-color: currentColor;
}

tbody tr:nth-child(even) {
    background-color: var(--primary-soft);
}

tbody tr:hover {
    background-color: rgba(103, 60, 157, 0.1);
    transition: background-color 0.2s ease;
}

th:nth-last-child(2) .th-sort-btn, td:nth-last-child(2) {
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    justify-content: flex-end;
}

th:last-child, td:last-child {
    text-align: center;
}

.diff-dots {
    letter-spacing: 1px;
}

/* Contraste ≥ 4,5:1 sur fond blanc (WCAG AA) ; les pastilles ci-dessus
   apportent en plus un repère non chromatique. */
.difficulty-facile { color: #1e7a34; font-weight: bold; }
.difficulty-moyen { color: #8a6d00; font-weight: bold; }
.difficulty-assez-difficile { color: #b35400; font-weight: bold; }
.difficulty-difficile { color: #b02a37; font-weight: bold; }
.difficulty-cycle-1-2 { color: #2f7a17; font-weight: bold; }

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    font-style: italic;
    color: var(--text-light);
}

/* --- Pagination (catalogue, livre d'or) --- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-lg);
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    border-radius: var(--border-radius);
    min-height: 44px;
    min-width: 44px;
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
}

.page-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--text-light);
    padding: 0 0.25rem;
}

/* --- Partenaires --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    align-items: center;
    justify-items: center;
    margin-top: var(--spacing-xl);
}

.partner-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.partner-logo {
    width: 150px;
    height: 100px;
    background-color: var(--secondary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-style: italic;
    border: 1px dashed var(--border-color);
}

.partner-name {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.partner-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

.partner-highlight {
    font-weight: bold;
    font-size: 1.2rem;
}

.support-section {
    background-color: var(--primary-soft);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    border-radius: var(--border-radius);
    text-align: center;
}

/* --- Page en préparation (404.html) --- */
.page-placeholder {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--primary-soft);
    border-radius: var(--border-radius);
    border: 2px dashed var(--primary-light);
    margin-top: var(--spacing-lg);
}

.page-placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.page-placeholder h2 {
    margin-bottom: var(--spacing-sm);
}

.page-placeholder h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.page-placeholder p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto var(--spacing-sm);
}

.page-placeholder .btn {
    margin-top: var(--spacing-sm);
}

/* --- Présentation --- */
.presentation-section {
    margin-bottom: var(--spacing-xl);
}

.repertoire-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.repertoire-item {
    background: var(--white);
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Discographie (cd.html) --- */
.order-note {
    background-color: var(--primary-soft);
    border-left: 5px solid var(--primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.cd-entry {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-lg);
    align-items: start;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.cd-entry:last-child {
    border-bottom: none;
}

.cd-covers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.cd-cover-figure {
    margin: 0;
    text-align: center;
}

.cd-cover-figure a {
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-speed);
}

.cd-cover-figure a:hover,
.cd-cover-figure a:focus-visible {
    transform: scale(1.04);
}

.cd-covers img {
    display: block;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cd-cover-figure--front img {
    width: 230px;
}

.cd-cover-figure--back img {
    width: 160px;
}

.cd-cover-figure figcaption {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.cd-info h2 {
    font-size: 1.7rem;
    margin-bottom: 0.25rem;
}

.cd-year {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.cd-tracks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-sm) var(--spacing-md);
    margin-top: var(--spacing-sm);
    list-style: none;
    padding: 0;
}

.cd-tracks li span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.cd-tracks audio {
    width: 100%;
    height: 36px;
}

.cd-order-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs, 6px);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cd-entry {
        grid-template-columns: 1fr;
    }
    .cd-order-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* --- Documents (documents.html) --- */
.document-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.document-card img {
    width: 55px;
    height: 66px;
    object-fit: contain;
    flex-shrink: 0;
}

.document-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.document-card-body p {
    margin-bottom: 0.4rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.document-meta {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.season-highlight {
    background-color: var(--primary-soft);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary);
}

/* --- Panier (catalogue.html, panier.html) --- */
.add-to-cart-btn {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius-sm);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover,
.add-to-cart-btn:focus-visible {
    background: var(--primary);
    color: var(--white);
}

.add-to-cart-btn.added {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

th:last-child .add-to-cart-btn { text-transform: none; letter-spacing: normal; }

.modal-cart-form {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.modal-cart-form label {
    font-weight: 600;
}

.modal-qty-input {
    width: 4.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
}

.cart-empty {
    text-align: center;
    padding: var(--spacing-xl);
    font-style: italic;
    color: var(--text-light);
}

.cart-table-container {
    overflow-x: auto;
}

.cart-table td {
    vertical-align: middle;
}

.cart-qty-input {
    width: 4rem;
    padding: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
}

.cart-remove-btn {
    background: none;
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: var(--border-radius-sm);
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 0.85rem;
    min-height: 36px;
}

.cart-remove-btn:hover,
.cart-remove-btn:focus-visible {
    background: var(--error);
    color: var(--white);
}

.cart-total-row td {
    font-weight: 800;
    font-size: 1.1rem;
    border-top: 2px solid var(--primary);
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.cart-order-form {
    background: var(--secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column;
    }
    .cart-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Impression du bon de commande (panier.html) : ne garder que le contenu utile */
@media print {
    app-header, app-footer, .no-print, .skip-link, #cart-bubble {
        display: none !important;
    }
}
