/* Parcours d’envoi : lisibilité, carte présente et progression explicite. */
.send-page { max-width: 1100px; margin: 0 auto; --send-border: #dce6e9; }
.send-heading { margin: .5rem 0 1.6rem; }
.send-page .send-eyebrow { color: #16738d; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; margin: 0 0 .55rem; }
.send-heading h1 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); }
.send-intro { color: var(--ink-soft); margin: .65rem 0 0; }
.send-steps { display: flex; list-style: none; padding: 0 0 1.4rem; margin: 0 0 1.6rem; border-bottom: 1px solid var(--send-border); gap: 1.5rem; }
.send-steps li { display: flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-size: .9rem; }
.send-step-number { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid #bfcdd3; border-radius: 50%; flex-shrink: 0; }
.send-steps .is-current { font-weight: 700; color: #116b84; }
.is-current .send-step-number { background: #147f9c; color: white; border-color: #147f9c; box-shadow: 0 0 0 4px #e2f0f4; }
.is-complete .send-step-number { background: #e5f3ed; color: #226c50; border-color: #c5dfd2; }
.send-compose { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.6fr); gap: 2rem; align-items: start; }
.send-selection { background: white; border: 1px solid var(--send-border); border-radius: 20px; overflow: hidden; position: sticky; top: 1.5rem; }
.send-selection__image { padding: 1rem; background: #eef5f6; }
.send-selection__image img { width: 100%; border-radius: 12px; }
.send-selection__body { padding: 1.25rem; }
.send-selection h2 { font-size: 1.6rem; }
.send-change { display: inline-block; margin-top: .6rem; font-size: .9rem; text-underline-offset: 4px; }
.send-note { display: flex; gap: .75rem; align-items: center; margin: 1.4rem 0 1rem; border-top: 1px solid var(--send-border); padding-top: 1.1rem; }
.send-note > span { color: var(--red); font-size: 2.1rem; }
.send-note p { margin: 0; font-size: .95rem; }
.send-form { min-width: 0; }
.send-block { min-width: 0; background: white; border: 1px solid var(--send-border); border-radius: 18px; padding: 1.4rem; margin: 0 0 1rem; }
.send-block legend { float: left; width: 100%; padding: 0; margin-bottom: 1.1rem; font-family: Dosis, sans-serif; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: .65rem; }
.send-block legend + * { clear: both; }
.send-section-number { font: 700 .8rem Lato, sans-serif; color: #16738d; background: #e9f5f8; border-radius: 9px; width: 1.8rem; height: 1.8rem; display: inline-grid; place-items: center; flex-shrink: 0; }
.send-block label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .8rem; }
.send-block label small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .82rem; margin-top: .35rem; }
.send-block input[type="text"], .send-block input[type="email"], .send-block input[type="tel"], .send-block input[type="date"], .send-block textarea { display: block; width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; padding: .7rem .8rem; border: 1px solid #aebfc5; border-radius: 9px; margin-top: .35rem; min-height: 50px; }
.send-block textarea { resize: vertical; line-height: 1.65; min-height: 108px; background: #fdfcf9; }
.send-block textarea::placeholder { color: #646c76; }
.send-block input:focus, .send-block textarea:focus { border-color: var(--turquoise-dark); outline: none; box-shadow: var(--focus); }
.send-page button:focus-visible { outline: 3px solid #167f9e; outline-offset: 3px; }
.send-block .has-error input, .send-block.has-error textarea, .send-block.has-error .send-recipient input { border-color: #b73934; }
.send-row, .send-recipient { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; }
.send-recipient { position: relative; }
.send-recipient + .send-recipient { border-top: 1px solid var(--send-border); padding-top: 1rem; margin-top: .6rem; }
.send-remove { grid-column: 1 / -1; justify-self: end; background: none; color: #8f3040; border: 0; font: inherit; font-size: .85rem; text-decoration: underline; padding: .5rem; cursor: pointer; margin-top: -.7rem; }
.send-civility { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.send-civility label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin: 0; min-height: 44px; }
.send-page input[type="radio"], .send-page input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: #147f9c; flex-shrink: 0; }
.send-block--options { background: transparent; border: 0; padding: .5rem .2rem; }
.send-block--options label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; margin: 0; }
.send-hint { margin: .6rem 0 0; color: var(--ink-soft); font-size: .85rem; }
.send-hint--account { clear: both; margin: 0 0 1rem; font-size: .92rem; }
.send-count { text-align: right; }
.send-honeypot { position: absolute; left: -9999px; }
.send-page .button { font-size: .95rem; border-radius: 10px; padding: .7rem 1rem; cursor: pointer; text-align: center; }
.send-page .button--big { font-size: 1.05rem; padding: .9rem 1.4rem; }
.send-page .button--primary { background: #137f9c; border-color: #137f9c; color: white; box-shadow: 0 4px 10px #137f9c18; }
.send-page .button--primary:hover { background: #0c6882; }
.send-page .button--ghost { background: white; border: 1px solid #b6cbd3; color: #176c82; }
.send-page button:disabled { opacity: .55; cursor: default; }
.send-actions-bar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 1.5rem 0; }
.send-actions-bar--form { justify-content: flex-end; border-top: 1px solid var(--send-border); padding-top: 1rem; }
.send-actions-bar--form p { width: 100%; margin: 0; text-align: right; color: var(--ink-soft); font-size: .9rem; }
.send-actions-bar--form > a { order: -1; }
.send-actions-bar--form > p { order: -2; }
.send-timing { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem; }
.send-timing[hidden], .send-page [hidden] { display: none; }
.send-timing label { display: flex; align-items: flex-start; gap: .5rem; border: 1px solid #b6cbd3; padding: .75rem; border-radius: 10px; margin: 0; cursor: pointer; }
.send-timing label:has(input:checked) { border-color: #137f9c; background: #edf8fa; box-shadow: inset 0 0 0 1px #137f9c; }
.send-errors { background: #fff1f0; border: 1px solid #be514b; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.send-errors ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.send-test-banner { border-left: 3px solid #c9a047; background: #fff9e9; padding: .55rem .8rem; margin: 0 0 1.2rem; color: #705521; font-size: .8rem; }
.send-preview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.send-preview__card { background: white; border-radius: 18px; border: 1px solid var(--send-border); padding: 1rem; box-shadow: 0 12px 30px #173b4910; overflow: hidden; }
.send-preview-label { padding: .25rem .35rem .5rem; }
.send-preview__card img, .send-preview__card video { width: 100%; border-radius: 10px; }
.send-preview__message { padding: 1.4rem .8rem .8rem; overflow-wrap: anywhere; }
.send-preview__message blockquote { margin: .8rem 0; font-size: 1.15rem; white-space: pre-wrap; line-height: 1.75; }
.send-preview__from { color: var(--ink-soft); margin: 0; font-size: .9rem; }
.send-preview__summary { background: white; border: 1px solid var(--send-border); border-radius: 18px; padding: 1.5rem; position: sticky; top: 1.5rem; overflow-wrap: anywhere; }
.send-preview__summary h2 { font-size: 1.6rem; }
.send-preview__summary dt, .send-payment dt { font-weight: 700; margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }
.send-preview__summary dd, .send-payment dd { margin: .3rem 0 0; }
.send-preview__summary ul { margin: 0; padding: 0; list-style: none; }
.send-preview__summary li + li { margin-top: .5rem; }
.send-preview__summary form { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--send-border); }
.send-preview__summary .button { width: 100%; }
.send-heading--center { text-align: center; }
.send-success { display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; width: 3.5rem; height: 3.5rem; background: #e2f3e9; color: #26764f; font-size: 1.8rem; }
.send-done { max-width: 760px; margin: 0 auto; padding: 2rem; text-align: center; overflow-wrap: anywhere; }
.send-done__image { width: 180px; border-radius: 12px; margin: 0 auto 1.5rem; }
.send-done__lead { font-size: 1.15rem; }
.send-done__recipients { list-style: none; padding: 1rem; background: #eff7f8; border-radius: 10px; }
.send-done .send-actions-bar, .view-actions { justify-content: center; }
.send-payment { max-width: 720px; margin: 0 auto; padding: 2rem; }
.send-payment form + form { margin-top: .8rem; }
.view-page { text-align: center; max-width: 800px; }
.view-title { margin-bottom: 1.5rem; }
.view-card { max-width: 680px; margin: 0 auto; text-align: left; }
@media (max-width: 800px) {
  .send-compose, .send-preview { grid-template-columns: 1fr; gap: 1.25rem; }
  .send-selection { position: static; display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; }
  .send-selection__image { padding: .6rem; background: transparent; }
  .send-selection__body { padding: .85rem .85rem .85rem .25rem; }
  .send-selection h2 { font-size: 1.25rem; }
  .send-selection .send-note, .send-selection .send-hint { display: none; }
  .send-preview__summary { position: static; }
  .send-steps { gap: 1rem; justify-content: space-between; }
}
@media (max-width: 480px) {
  .send-heading { margin-top: .1rem; }
  .send-steps { gap: .35rem; }
  .send-steps li { flex-direction: column; gap: .4rem; font-size: .72rem; text-align: center; }
  .send-block { padding: 1rem; }
  .send-row, .send-recipient, .send-timing { grid-template-columns: 1fr; gap: .25rem; }
  .send-timing { gap: .6rem; }
  .send-block legend { font-size: 1.25rem; }
  .send-actions-bar--form > .button { width: 100%; }
  .send-actions-bar--form > a { order: 1; }
  .send-actions-bar--form p { text-align: center; }
  .send-preview__summary, .send-done, .send-payment { padding: 1.1rem; }
  .send-selection { grid-template-columns: 100px minmax(0, 1fr); }
}
/* En cours de composition, garder un en-tête discret sur téléphone. */
@media (max-width: 600px) {
  .send-layout .site-header__inner { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: .5rem; min-height: 64px; }
  .send-layout .site-nav, .send-layout .search-form--header { display: none; }
  .send-layout .site-nav__all { margin: 0; }
  .send-layout .site-nav__all summary { font-size: .8rem; padding: .55rem .65rem; }
  .send-layout .site-logo img { width: 125px; }
}

/* Confirmation : un seul panneau compact, sans répéter les étapes terminées. */
.send-confirmation { max-width: 940px; padding-top: .6rem; }
.send-confirmation__panel { background: white; border: 1px solid var(--send-border); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 28px #173b4908; }
.send-confirmation__heading { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 2rem; background: #eef8f3; border-bottom: 1px solid #dbece2; }
.send-confirmation__heading .send-success { margin: 0; width: 2.8rem; height: 2.8rem; font-size: 1.5rem; flex-shrink: 0; background: #d7eee1; }
.send-confirmation__heading h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.send-confirmation__heading p { margin: .35rem 0 0; color: #405c50; }
.send-confirmation__body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 2rem; padding: 2rem; align-items: start; }
.send-confirmation__card { margin: 0; padding: .65rem; background: #f7f8fa; border: 1px solid #e8edef; border-radius: 14px; }
.send-confirmation__card img { width: 100%; border-radius: 9px; }
.send-confirmation__card figcaption { text-align: center; padding: .85rem .25rem .3rem; font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.send-confirmation__details { min-width: 0; overflow-wrap: anywhere; }
.send-confirmation__details h2 { font-size: 1.5rem; }
.send-confirmation__channel { color: var(--ink-soft); margin: .35rem 0 1.1rem; font-size: .9rem; }
.send-confirmation__label { font-weight: 700; font-size: .85rem; margin: 0 0 .4rem; }
.send-confirmation .send-done__recipients { margin: 0 0 1.2rem; padding: 0; background: none; }
.send-confirmation .send-done__recipients li + li { margin-top: .4rem; }
.send-confirmation__notice { border-top: 1px solid var(--send-border); padding-top: 1rem; font-size: .9rem; }
.send-confirmation__notice p { color: var(--ink-soft); margin: .45rem 0 0; }
.send-confirmation__footer { border-top: 1px solid var(--send-border); padding: 1.2rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.send-confirmation__footer p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 600px) {
  .send-confirmation { padding-top: 0; }
  .send-confirmation__heading { padding: 1.2rem; align-items: flex-start; gap: .75rem; }
  .send-confirmation__heading p { font-size: .9rem; }
  .send-confirmation__body { grid-template-columns: 1fr; padding: 1.2rem; gap: 1.2rem; }
  .send-confirmation__card { display: flex; align-items: center; gap: .8rem; }
  .send-confirmation__card img { width: 100px; flex-shrink: 0; }
  .send-confirmation__card figcaption { text-align: left; padding: 0; }
  .send-confirmation__footer { flex-direction: column; padding: 1.2rem; text-align: center; }
  .send-confirmation__footer .button { width: 100%; }
}

.send-animation { margin-top: .7rem; }
.send-animation summary { color: #176c82; font-weight: 700; cursor: pointer; padding: .4rem 0; font-size: .9rem; }
.send-animation__hide, .send-animation[open] .send-animation__show { display: none; }
.send-animation[open] .send-animation__hide { display: inline; }
.send-animation video, .send-animation img { width: 100%; border-radius: 8px; margin-top: .6rem; }
.send-playback-hint { font-size: .85rem; color: var(--ink-soft); padding: .6rem .35rem 0; margin: 0; }
.send-selection:has([data-animation][open]) .send-selection__image { display: none; }
@media (max-width: 800px) {
  .send-selection:has([data-animation][open]) { grid-template-columns: 1fr; }
  .send-selection:has([data-animation][open]) .send-selection__body { padding: 1rem; }
}

/* Paiement du SMS (lot 1 bis) */
.pay-card { display: flex; gap: .9rem; align-items: center; margin: 0 0 1rem; }
.pay-card img { width: 120px; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.12); flex: none; }
.pay-total strong { font-size: 1.35rem; }
.pay-title { font-family: Dosis, sans-serif; font-size: 1.4rem; margin: 0 0 .5rem; }
.pay-help { margin: 0 0 1.2rem; font-size: .92rem; }
#payment-element { margin-bottom: 1.2rem; }
#payment-submit { width: 100%; }

/* L’aperçu est facultatif : les coordonnées restent visibles avant l’action finale. */
.send-final-recap { background: #edf6f9; border: 1px solid #d6e7ed; border-radius: 14px; padding: 1rem 1.2rem; overflow-wrap: anywhere; }
.send-final-recap h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.send-final-recap dl { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; margin: 0; }
.send-final-recap dt { font-size: .8rem; color: var(--ink-soft); margin-bottom: .3rem; }
.send-final-recap dd { margin: 0; font-size: .95rem; }
.send-final-recap ul { margin: 0; padding: 0; list-style: none; }
.send-final-recap li + li { margin-top: .4rem; }
.send-optional-preview { border: 0; background: none; padding: .8rem .5rem; font: inherit; font-size: .9rem; color: #176c82; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 480px) {
  .send-final-recap dl { grid-template-columns: 1fr; gap: .75rem; }
  .send-optional-preview { width: 100%; }
}

/* Répondre avec une carte : choix dans la rubrique Merci */
.reply-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.reply-grid .browse-card-action { display: flex; justify-content: space-between; padding: .3rem .85rem .8rem; color: var(--turquoise-dark); font-size: .85rem; font-weight: 700; }
@media (max-width: 900px) { .reply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reply-more { color: var(--ink-soft); }

/* Carnet d'adresses dans le formulaire d'envoi, et enregistrement des destinataires après l'envoi. */
.send-contacts { margin-top: .9rem; border: 1px solid var(--send-border); border-radius: 12px; background: #fafcfd; }
.send-contacts summary { cursor: pointer; padding: .7rem 1rem; font-weight: 700; font-size: 1.05rem; color: #176c82; list-style: none; display: flex; align-items: center; gap: .7rem; min-height: 52px; border-radius: 12px; }
.send-contacts summary:hover { background: #eef7fa; }
.send-contacts summary::-webkit-details-marker { display: none; }
.send-contacts summary::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); margin: 0 .2rem 0 .1rem; transition: transform .15s; }
.send-contacts[open] summary::before { transform: rotate(45deg); margin-top: -.3rem; }
.send-contacts__count { font-weight: 400; color: var(--ink-soft); }
.send-contacts__panel { padding: 0 1rem 1rem; }
.send-contacts__search input { display: block; width: 100%; font: inherit; font-size: 1rem; padding: .6rem .8rem; border: 1px solid #aebfc5; border-radius: 9px; min-height: 44px; margin-bottom: .6rem; }
.send-contacts__list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; border: 1px solid var(--send-border); border-radius: 9px; background: white; }
.send-contacts__list li { border-bottom: 1px solid #eef3f5; }
.send-contacts__list li:last-child { border-bottom: 0; }
.send-contacts__list label { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; margin: 0; font-weight: 400; min-height: 44px; cursor: pointer; }
.send-contacts__list label:hover { background: #eef7fa; }
.send-contacts__list input { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.send-contacts__address { color: var(--ink-soft); font-size: .9rem; overflow-wrap: anywhere; }
.send-save-contacts { margin: 0 2rem 1.5rem; padding: 1.1rem 1.3rem; background: #edf6f9; border: 1px solid #d6e7ed; border-radius: 14px; }
.send-save-contacts__title { margin: 0 0 .6rem; }
.send-save-contacts__list { list-style: none; padding: 0; margin: 0 0 .9rem; }
.send-save-contacts__list label { display: flex; align-items: center; gap: .5rem; min-height: 40px; overflow-wrap: anywhere; }
.send-save-contacts .button { display: inline-block; }

