/* Les grands moments de bébé : collections, modèles, atelier et impression. */
.moments-page main { padding-bottom: 55px; background: #fff; }
.moments-page .eyebrow { font-size: 11px; }
.moments-hero { position: relative; background: #faf8f4; }
.moments-hero > img { display: block; width: 100%; height: auto; }
.moments-hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.moments-hero h1 { width: 50%; margin: 14px 0 20px; font-size: clamp(38px, 3.9vw, 68px); line-height: 1.04; }
.moments-hero p { max-width: 43%; margin-bottom: 24px; font-size: 17px; }
.moments-hero .button { padding: 12px 23px; font-size: 15px; }
.moments-section { padding-block: 60px; }
.moment-section-heading { max-width: 850px; margin-bottom: 32px; }
.moment-section-heading h2 { margin: 14px 0 18px; }
.moment-section-heading p { margin: 0; }
.moment-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.moment-category { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce8f1; border-radius: 18px; background: white; transition: box-shadow .2s, border-color .2s; }
.moment-category:hover { border-color: #e7b4ac; box-shadow: var(--shadow); }
.moment-category-art { display: flex; align-items: center; justify-content: center; height: 245px; padding: 23px; background: linear-gradient(130deg, #eaf5fd, #fff6ee); }
.moment-category-art img { display: block; width: auto; height: 100%; max-width: 100%; box-shadow: 0 8px 20px #0734531c; transform: rotate(-4deg); }
.moment-category:nth-child(2n) .moment-category-art img { transform: rotate(4deg); }
.moment-category-copy { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.moment-category-copy .eyebrow { letter-spacing: .6px; font-size: 10px; }
.moment-category h2 { margin: 12px 0; font-size: 28px; }
.moment-category p { font-size: 14px; line-height: 1.75; }
.moment-category .moment-link { margin-top: auto; padding-top: 12px; }
.moment-link { display: inline-flex; align-items: center; gap: 12px; color: var(--coral-dark); font-size: 14px; font-weight: 600; }
.moment-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.moment-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; padding: 40px; border: 1px solid #d8e8f5; border-radius: 18px; background: #f2f8fd; }
.moment-how span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: #fbe4e0; color: var(--coral-dark); font-family: Georgia, serif; }
.moment-how h3 { margin: 20px 0 12px; font-size: 24px; }
.moment-how p { margin: 0; font-size: 14px; }
.moment-soft-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 35px 40px; margin-top: 45px; border: 1px solid #f0d8d1; border-radius: 18px; background: #fff7f3; }
.moment-soft-banner h2 { margin: 12px 0; font-size: 32px; }
.moment-soft-banner p { max-width: 750px; margin: 0; font-size: 14px; }
.moment-soft-banner > a { flex-shrink: 0; }
.moment-breadcrumb { margin-bottom: 30px; font-size: 12px; color: #62798c; }
.moment-breadcrumb a:hover { text-decoration: underline; }
.moment-collection-head { padding-block: 28px 35px; }
.moment-collection-head h1 { max-width: 1000px; margin: 17px 0 22px; font-size: clamp(36px, 4vw, 58px); }
.moment-collection-head > p { max-width: 850px; font-size: 17px; }
.moment-supports { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.moment-supports a:hover, .moment-supports a:focus-visible { background: #e4f1fa; border-color: #6998bd; outline-offset: 3px; }
.moment-supports a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 19px; border: 1px solid #b9d3e5; border-radius: 25px; background: #eaf4fc; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; transition: background .2s, border-color .2s; }
.moment-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.moment-model { overflow: hidden; border: 1px solid #dce8f1; border-radius: 17px; background: white; }
.moment-model-art { display: flex; align-items: center; justify-content: center; height: 390px; padding: 28px; background: #f4f8fb; }
.moment-model-art img { display: block; width: auto; height: 100%; max-width: 100%; box-shadow: 0 10px 25px #07345320; }
.moment-model-copy { padding: 22px; }
.moment-model-copy h2 { margin: 12px 0; font-size: 25px; }
.moment-model-copy p { font-size: 12px; }
.moment-model-copy .button { width: 100%; padding: 12px 16px; gap: 8px; font-size: 13px; }
/* Atelier : les options restent dans un seul formulaire pour tous les modèles. */
.moment-editor-head { padding-block: 28px 30px; }
.moment-editor-head > .eyebrow { margin-top: 30px; }
.moment-editor-head h1 { margin: 15px 0 20px; font-size: clamp(34px, 3.7vw, 54px); }
.moment-editor-head p { max-width: 900px; margin-bottom: 0; }
.moment-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 35px; }
.moment-preview-panel { position: sticky; top: 115px; min-width: 0; padding: 25px; border: 1px solid #d5e5f0; border-radius: 17px; background: #edf5fb; }
#moment-preview { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.moment-preview-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; font-size: 11px; color: #5e7588; }
.moment-preview-caption button { padding: 8px 16px; border: 1px solid #c6dbe9; border-radius: 25px; background: white; font-size: 12px; }
.moment-form { min-width: 0; padding: 30px; border: 1px solid #dce6ed; border-radius: 17px; background: white; }
.moment-form h2 { margin-bottom: 24px; font-size: 28px; }
.moment-form label { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 600; }
.moment-form input,
.moment-form select,
.moment-form textarea { width: 100%; font-size: 14px; }
.moment-form textarea { min-height: 140px; resize: vertical; }
.moment-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.moment-form-pair > div { min-width: 0; }
.moment-form-divider { padding-top: 25px; margin-top: 25px; border-top: 1px solid #e1ebf2; }
.moment-form-divider h3 { margin-bottom: 10px; font-size: 23px; }
.moment-form-divider p { margin-bottom: 0; font-size: 12px; }
.moment-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.moment-inline-actions button:not(.button) { padding: 9px 14px; border: 1px solid #d5e2ed; border-radius: 25px; background: #f3f8fc; color: var(--navy); font-size: 12px; }
.moment-inline-actions button:hover { border-color: #edb8af; }
.moment-field-note { margin: 14px 0; font-size: 12px; line-height: 1.7; }
.moment-export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.moment-export-actions button { padding: 12px 16px; border: 1px solid #cadde9; border-radius: 25px; background: #eff6fc; font-size: 13px; }
.moment-export-actions .button { grid-column: 1 / -1; color: white; background: var(--coral); border-color: var(--coral); }
.moment-export-actions button:hover { filter: brightness(.97); }
#moment-status { min-height: 26px; margin: 18px 0 0; font-size: 12px; line-height: 1.7; }
/* Jeux : des feuilles lisibles à l'écran et une page par jeu à l'impression. */
.baby-game-sheets { display: grid; gap: 35px; max-width: 1000px; }
.baby-game-sheet { padding: 45px; border: 1px solid #d8e5ef; border-radius: 17px; background: #fffcf8; }
.baby-game-sheet h2 { margin: 15px 0 25px; font-size: 35px; }
.baby-game-sheet p { font-size: 15px; }
.baby-game-lines { margin: 30px 0; }
.baby-game-lines p { padding: 9px 0; overflow-wrap: anywhere; }
.baby-game-sheet small { display: block; margin-top: 30px; color: #a46862; font-size: 10px; letter-spacing: 1px; }
.baby-game-sheet button { display: block; margin-top: 25px; padding: 12px 20px; border: 0; border-radius: 30px; color: white; background: var(--coral); }
.baby-game-sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.baby-game-sheet td,
.baby-game-sheet th { padding: 13px 10px; border-bottom: 1px solid #d9e5ef; text-align: left; }
.baby-game-sheet td:not(:first-child),
.baby-game-sheet th:not(:first-child) { width: 80px; text-align: center; }
.baby-bingo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0; border-top: 1px solid #c9dce9; border-left: 1px solid #c9dce9; }
.baby-bingo > div { min-height: 140px; padding: 20px 8px; border-right: 1px solid #c9dce9; border-bottom: 1px solid #c9dce9; text-align: center; font-size: 13px; overflow: hidden; }
.baby-bingo span { display: block; margin-top: 20px; font-size: 24px; }
@media (max-width: 1100px) {
  .moments-hero h1 { font-size: 4vw; }
  .moments-hero p { font-size: 14px; margin-bottom: 15px; }
  .moment-category-grid,
  .moment-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moment-workspace { gap: 22px; }
  .moment-form { padding: 22px; }
}
@media (max-width: 800px) {
  .moments-hero-copy { position: relative; padding-block: 30px; }
  .moments-hero h1 { width: 100%; font-size: 42px; }
  .moments-hero p { max-width: 100%; font-size: 16px; }
  .moments-hero > img { height: auto; }
  .moment-workspace { grid-template-columns: 1fr; }
  .moment-preview-panel { position: static; }
  #moment-preview { max-height: 70vh; }
  .moment-how { grid-template-columns: 1fr; gap: 30px; padding: 28px; }
  .moment-soft-banner { align-items: flex-start; flex-direction: column; padding: 28px; }
}
@media (max-width: 550px) {
  .moment-category-grid,
  .moment-model-grid { grid-template-columns: 1fr; }
  .moments-section { padding-block: 38px; }
  .moment-category-art { height: 230px; }
  .moment-model-art { height: 365px; }
  .moment-form-pair { grid-template-columns: 1fr; }
  .moment-export-actions { grid-template-columns: 1fr; }
  .baby-game-sheet { padding: 22px 15px; }
  .baby-game-sheet h2 { font-size: 28px; }
  .baby-game-sheet table { font-size: 11px; }
  .baby-game-sheet td,
  .baby-game-sheet th { padding: 10px 4px; }
  .baby-game-sheet td:not(:first-child),
  .baby-game-sheet th:not(:first-child) { width: 45px; }
  .baby-bingo > div { min-height: 110px; font-size: 9px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  .site-header,
  .site-footer,
  .topline,
  .skip,
  #toast,
  .moment-editor-head,
  .moment-form,
  .moment-preview-caption,
  .baby-games .moment-collection-head,
  .baby-game-sheet button { display: none !important; }
  .moments-page main { padding: 0; }
  .moment-workspace,
  .moment-preview-panel,
  .baby-game-sheets { display: block; position: static; width: 100%; max-width: none; padding: 0; margin: 0; border: 0; background: white; }
  #moment-preview { display: block; width: 100%; max-height: 260mm; object-fit: contain; }
  .baby-game-sheet { min-height: 0; padding: 12mm 8mm; border: 1px solid #d8e5ef; border-radius: 0; break-inside: avoid; break-after: page; }
  .baby-game-sheet:last-child { break-after: auto; }
  .baby-game-sheet h2 { font-size: 28px; }
  .baby-game-sheet p { font-size: 12px; }
  .baby-game-lines { margin-block: 20px; }
  .baby-game-lines p { padding: 6px 0; }
  .baby-game-sheet td,
  .baby-game-sheet th { padding: 10px 7px; font-size: 11px; }
  .baby-bingo > div { min-height: 110px; }
  body[data-print-game] .baby-game-sheet { display: none; }
  body[data-print-game="pronostics"] #pronostics,
  body[data-print-game="qui-des-deux"] #qui-des-deux,
  body[data-print-game="bingo"] #bingo { display: block; }
}
