/* ───────── CARNET DE BORD — bloc reprise/trace partagé entre modules ───────── */

.carnet {
  max-width: 720px;
  margin: 4rem auto 2.5rem;
  padding: 2.2rem 2rem 1.8rem;
  background: #DFF2FD;
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: 6px;
  font-family: 'Work Sans', -apple-system, sans-serif;
  scroll-margin-top: 4rem;
}

.carnet-head {
  text-align: center;
  margin-bottom: 1.8rem;
}
.carnet-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #5A6B4A;
  margin-bottom: 0.8rem;
}
.carnet h3 {
  font-family: 'Cormorant Garamond', 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.65rem;
  color: #2D2D2D;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.carnet-head p {
  font-size: 0.95rem;
  color: #4A5568;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.6;
}

.carnet-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.carnet-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.carnet-num {
  width: 32px;
  height: 32px;
  background: #5A6B4A;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', 'DM Serif Display', serif;
  font-size: 1.05rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.carnet-field { display: block; }
.carnet-label {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2D2D2D;
  margin-right: 0.4rem;
}
.carnet-hint {
  display: inline-block;
  font-size: 0.83rem;
  color: #6B7280;
  font-style: italic;
}
.carnet textarea {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(45, 45, 45, 0.18);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #2D2D2D;
  border-radius: 3px;
  resize: vertical;
  min-height: 3em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.carnet textarea:focus {
  outline: none;
  border-color: #5A6B4A;
  box-shadow: 0 0 0 3px rgba(90, 107, 74, 0.15);
}

.carnet-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  text-align: center;
}
.carnet-print {
  background: #5A6B4A;
  color: #fff;
  border: none;
  padding: 0.85rem 1.7rem;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.carnet-print:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.carnet-meta {
  font-size: 0.78rem;
  color: #6B7280;
}
.carnet-meta .saved-status {
  display: inline-block;
  margin-left: 0.4rem;
  font-style: italic;
  color: #5A6B4A;
  opacity: 0;
  transition: opacity 0.2s;
}
.carnet-meta .saved-status.is-visible { opacity: 1; }

/* Responsive */
@media (max-width: 600px) {
  .carnet { margin: 2.5rem 1rem; padding: 1.6rem 1.4rem 1.4rem; }
  .carnet h3 { font-size: 1.4rem; }
  .carnet-steps li { grid-template-columns: 28px 1fr; gap: 0.7rem; }
  .carnet-num { width: 26px; height: 26px; font-size: 0.92rem; }
}

/* Impression : on ne montre que le carnet */
@media print {
  body * { visibility: hidden; }
  .carnet, .carnet * { visibility: visible; }
  .carnet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    background: #fff;
    margin: 0;
    padding: 1cm;
  }
  .carnet-actions { display: none; }
  .carnet textarea {
    border: none;
    border-bottom: 1px solid #999;
    background: transparent;
    border-radius: 0;
    padding: 0.2rem 0;
    min-height: 2.5em;
  }
}
