/* Cartes de bébés : galerie, personnalisation et créateur de cartes. */
@font-face {
  font-family: CarteElegante;
  src: url('../fonts/C059-Roman.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: CarteManuscrite;
  src: url('../fonts/Z003-MediumItalic.otf') format('opentype');
  font-display: swap;
}
.postcards-page { background: #f3f9fe; }
.postcards-page main { color: #073453; background: #f3f9fe; padding-bottom: 45px; }
.postcards-page main h1,
.postcards-page main h2 { color: #073453; }
.postcards-page main p { color: #405d70; }
.postcards-page main em { color: #c94f58; font-weight: 400; }
.pc-shell { width: min(1480px, calc(100% - 64px)); margin: auto; }
.pc-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; border-bottom: 1px solid #d0e1ec; background: #eaf5fd; }
.entete-visuel { display: block; min-width: 0; }
.entete-photo { display: block; width: 100%; height: auto; }
.pc-hero-copy { padding: 45px 10%; }
.pc-kicker { color: #c94f58 !important; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.pc-hero h1 { margin: 18px 0 25px; font-size: clamp(38px, 4.5vw, 72px); line-height: 1.06; }
.entete-introduction { font-size: 17px; line-height: 1.7; color: #405d70; }
.pc-heading { padding: 48px 0 30px; }
.pc-heading h1,
.pc-heading h2 { margin: 0 0 15px; font-size: clamp(32px, 3.6vw, 52px); }
.pc-heading p { max-width: 850px; margin: 0; }
.pc-create { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 25px; margin-bottom: 35px; padding: 25px; border: 1px solid #d0e1ec; border-radius: 18px; background: linear-gradient(120deg, #e8f4fd, #fff0ed); }
.pc-create-image { display: block; width: 100%; height: auto; border-radius: 12px; }
.pc-create span { color: #ad454d; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.pc-create h2 { margin: 8px 0; font-size: 30px; }
.pc-create p { margin: 0; font-size: 14px; }
.pc-create a,
.pc-today button,
.pc-card button,
.pc-load,
.pc-modal-actions button { padding: 13px 21px; border: 0; border-radius: 30px; background: linear-gradient(110deg, #f27b72, #e96066); color: white; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.pc-create a:focus-visible,
.pc-today button:focus-visible,
.pc-card button:focus-visible,
.pc-load:focus-visible,
.pc-modal-actions button:focus-visible { outline: 3px solid #073453; outline-offset: 4px; }
.pc-create a:hover,
.pc-today button:hover,
.pc-card button:hover,
.pc-load:hover,
.pc-modal-actions button:hover { filter: brightness(.95); }
.pc-today { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin: 0 0 35px; border: 1px solid #d0e1ec; border-radius: 20px; background: linear-gradient(145deg, #ffffff, #fff3ee); }
.pc-today-media { display: flex; align-items: center; justify-content: center; padding: 25px; min-width: 0; background: #eaf4fb; }
.pc-today-media img { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; object-fit: contain; border-radius: 10px; }
.pc-today-copy { padding: 40px; align-self: center; }
.pc-today-copy > span { color: #ad454d; font-size: 11px; letter-spacing: 1.5px; }
.pc-today h2 { margin: 14px 0; font-size: clamp(30px, 3.2vw, 45px); }
.pc-today p { font-size: 15px; }
.pc-controls { margin: 0 0 22px; padding: 25px; border: 1px solid #ccdeea; border-radius: 16px; background: #ffffff; }
.pc-control-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 15px; }
.pc-control-row input,
.pc-control-row select { width: 100%; }
.pc-universes { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.pc-universes button,
.pc-suggestions button { padding: 9px 15px; border: 1px solid #bed5e5; border-radius: 25px; color: #073453; background: #f0f7fc; font-size: 12px; }
.pc-universes button.active { color: #ffffff; background: #c94f58; border-color: #c94f58; }
.pc-results { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; color: #405d70; font-size: 13px; }
.pc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; align-items: stretch; }
.pc-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ccdeea; border-radius: 16px; background: #ffffff; }
.pc-card-number { padding: 13px; color: #ad454d; font: 700 19px/1.3 Georgia, serif; text-align: center; }
.pc-card-media { height: 255px; padding: 12px; background: #eef6fc; }
.pc-card-media picture { display: block; width: 100%; height: 100%; }
.pc-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pc-card-body { display: flex; flex: 1; flex-direction: column; gap: 15px; padding: 20px; text-align: center; }
.pc-card-caption { margin: 0; font-size: 14px; }
.pc-card button { width: 100%; margin-top: auto; }
.pc-load-wrap { margin: 30px 0 10px; text-align: center; }
.pc-empty { grid-column: 1 / -1; padding: 35px; border-radius: 14px; background: #eaf4fb; text-align: center; }
.pc-customizer { margin: 0 0 35px; scroll-margin-top: 115px; }
.pc-customizer-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; padding: 35px; border: 1px solid #d0e1ec; border-radius: 20px; background: #ffffff; }
.pc-modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; border: 1px solid #bfd4e3; border-radius: 50%; background: #073453; color: white; font-size: 28px; line-height: 1; }
.pc-preview { min-width: 0; }
.pc-preview img { display: block; width: 100%; height: auto; max-height: 570px; object-fit: contain; border-radius: 12px; }
.pc-editor { padding-top: 15px; min-width: 0; }
.pc-editor > span { color: #ad454d; font-size: 12px; letter-spacing: 1px; }
.pc-editor h2 { margin: 10px 0 22px; font-size: 30px; }
.pc-field { margin-bottom: 17px; }
.pc-field label,
.baby-builder-form label { display: block; margin: 15px 0 7px; font-size: 14px; font-weight: 600; }
.pc-field input,
.pc-field textarea { width: 100%; }
.pc-field textarea { min-height: 120px; resize: vertical; }
.pc-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.pc-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 23px; }
.pc-modal-actions button:last-child { grid-column: 1 / -1; background: #073453; }
.pc-status { min-height: 28px; margin: 15px 0 0; font-size: 13px; text-align: center; }
/* Créateur : un aperçu identique au fichier exporté, sans dépendance externe. */
.builder-back { display: inline-block; margin-bottom: 20px; color: #ad454d; font-size: 14px; }
.baby-builder-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 35px; align-items: start; }
.baby-builder-preview { position: sticky; top: 115px; min-width: 0; padding: 22px; border: 1px solid #d0e1ec; border-radius: 18px; background: #ffffff; }
#baby-card-canvas { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.baby-builder-preview p,
.builder-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; }
.baby-builder-form { padding: 28px; border: 1px solid #ccdeea; border-radius: 18px; background: #ffffff; }
.baby-builder-form h2 { font-size: 30px; }
.baby-builder-form input,
.baby-builder-form select,
.baby-builder-form textarea { width: 100%; }
.baby-builder-form textarea { resize: vertical; }
.baby-builder-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
#baby-status { min-height: 24px; margin: 15px 0 0; font-size: 13px; }
@media (max-width: 1100px) {
  .pc-create { grid-template-columns: 150px 1fr; }
  .pc-create a { grid-column: 2; justify-self: start; }
  .pc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baby-builder-layout { grid-template-columns: 1fr; }
  .baby-builder-preview { position: static; }
}
@media (max-width: 760px) {
  .pc-shell { width: calc(100% - 30px); }
  .pc-hero,
  .pc-today,
  .pc-customizer-inner { grid-template-columns: 1fr; }
  .pc-hero-copy { padding: 28px 22px 35px; }
  .pc-hero h1 { font-size: 43px; }
  .pc-heading { padding-top: 30px; }
  .pc-create { grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 20px; }
  .pc-create h2 { font-size: 25px; }
  .pc-create a { grid-column: 1 / -1; }
  .pc-today-copy { padding: 26px; }
  .pc-control-row,
  .pc-gallery { grid-template-columns: 1fr; }
  .pc-results { flex-direction: column; gap: 6px; }
  .pc-controls { padding: 18px; }
  .pc-card-media { height: 280px; }
  .pc-customizer-inner { gap: 20px; padding: 55px 20px 25px; }
  .pc-customizer { scroll-margin-top: 95px; }
  .baby-builder-form { padding: 20px; }
  .baby-builder-options { gap: 0 12px; }
}
@media (max-width: 390px) {
  .baby-builder-options,
  .pc-modal-actions { grid-template-columns: 1fr; }
}
