/* Pages intérieures — même univers que la page d'accueil, sans surcharge. */
.inner-header { min-height: 76px; justify-content: space-between; }
.inner-layout { min-height: 100svh; }
.back-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; font-weight: 730; text-decoration: none; color: var(--green); }
.back-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dfebdb; background: #fff; border-radius: 50%; font-size: 20px; }
.back-link:hover .back-icon { background: #e8f0e3; }
.inner-main { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 0 35px; }
.inner-brand { width: 275px; max-width: 70%; margin: 0 auto 16px; }
.inner-brand img { display: block; width: 100%; height: auto; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.detail-story, .request-box { border: 1px solid rgba(24,63,47,.07); border-radius: 24px; }
.detail-story { display: flex; flex-direction: column; padding: 28px 30px; background: #e5eee1; min-width: 0; }
.detail-story.detail-livraison { background: #f7e8d8; }
.story-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.section-kicker { color: #537964; font-size: 11px; font-weight: 850; letter-spacing: 1.7px; }
.gold-spark { color: #ce9d44; margin-right: 5px; font-size: 15px; }
.season-label { border: 1px solid rgba(28,73,49,.15); border-radius: 100px; padding: 6px 11px; font-size: 11px; font-weight: 650; color: #5f7967; }
.scene-svg { display: block; max-width: 100%; width: 350px; height: auto; margin: 30px auto 22px; }
.detail-story h1 { margin: 0 0 13px; font-size: clamp(30px, 3vw, 42px); white-space: normal; line-height: 1.1; letter-spacing: -1.7px; }
.story-lead { margin: 0; color: #557064; font-size: 16px; line-height: 1.7; }
.detail-livraison .story-lead { color: #866a5d; }
.story-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; background: rgba(255,255,255,.55); padding: 15px; border-radius: 14px; color: #476453; font-size: 13px; line-height: 1.6; }
.story-note-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: #21644d; color: #fff; font-weight: 800; }
.legacy-link { margin-top: auto; padding-top: 25px; font-size: 12px; line-height: 1.6; color: #648070; }
.legacy-link a { color: var(--green); font-weight: 750; text-underline-offset: 3px; }
.request-box { background: #fff; padding: 27px 30px; box-shadow: 0 18px 55px rgba(33,62,41,.04); }
.request-header { margin-bottom: 20px; }
.form-step { display: block; color: #b78d53; font-size: 11px; font-weight: 850; letter-spacing: 2px; }
.request-header h2 { margin: 7px 0 6px; font-size: clamp(24px, 2.2vw, 32px); color: var(--green); letter-spacing: -1px; line-height: 1.2; }
.request-header p { margin: 0; color: #7a8a7f; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 750; color: #36564a; font-size: 12px; }
.form-field label > span:not(.optional) { color: #b85e48; }
.optional { font-weight: 450; color: #89988c; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; font: inherit; font-size: 14px; color: #254438; padding: 11px 12px; border: 1px solid #dfe5db; border-radius: 10px; background: #fbfcf8; outline: none; transition: border-color .15s,box-shadow .15s; }
.form-field input:focus, .form-field textarea:focus { border-color: #549273; box-shadow: 0 0 0 3px rgba(48,125,86,.12); }
.form-field textarea { resize: vertical; min-height: 62px; }
.form-field input[aria-invalid="true"] { border-color: #be5c4d; }
.form-field small { color: #af4c40; min-height: 0; font-size: 11px; }
.form-field small:empty { display: none; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #597468; font-size: 12px; line-height: 1.45; cursor: pointer; }
.form-consent input { width: 16px; height: 16px; accent-color: #1c654d; flex: 0 0 auto; margin-top: 1px; }
.form-consent .muted { color: #8c9a8d; }
.consent-error { color: #ae443a; font-size: 12px; }
.submit-request { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; margin-top: 16px; border: 0; border-radius: 12px; background: #153e32; color: white; font: inherit; font-weight: 750; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none; }
.submit-request span { font-size: 19px; font-weight: 450; }
.submit-request:hover { background: #24624d; }
.form-fine { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: #819186; }
.form-error { border: 1px solid #efc8bf; background: #fff3ef; border-radius: 10px; padding: 11px 12px; color: #9f4134; margin-bottom: 14px; font-size: 13px; }
.quiet-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.inner-footer { margin-top: auto; }
/* CONTACT */
.contact-main { justify-content: flex-start; }
.contact-hero { max-width: 790px; width: 100%; margin: 0 auto 20px; text-align: center; }
.contact-hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.12; margin: 14px 0; letter-spacing: -2.5px; white-space: normal; }
.contact-hero h1 em { color: #5d9475; font-family: Georgia,serif; font-weight: 500; }
.contact-hero > p { max-width: 530px; color: #708477; margin: 0 auto 36px; line-height: 1.7; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 19px; text-align: left; }
.contact-card { background: #e5eee1; border: 1px solid #d5e2d1; border-radius: 21px; padding: 27px 21px; display: flex; align-items: center; gap: 15px; min-width: 0; text-decoration: none; }
.contact-card:nth-child(2) { background: #f7e8d8; border-color: #ecdbcb; }
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(25,62,46,.09); }
.contact-icon { display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; width: 48px; height: 48px; background: white; color: #236049; font-size: 26px; }
.contact-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.contact-card small { color: #799482; letter-spacing: 1.6px; font-weight: 800; font-size: 10px; }
.contact-card strong { overflow-wrap: anywhere; font-size: 16px; color: #153e32; }
.contact-card em { font-style: normal; font-size: 12px; color: #6d8373; }
.contact-arrow { align-self: flex-start; margin-left: auto; font-size: 20px; }
.contact-bottom { margin: 35px auto; font-size: 13px; color: #6d8276; }
.contact-bottom div { display: flex; justify-content: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.contact-bottom a { color: #215d49; font-weight: 750; text-underline-offset: 3px; }
/* CONFIRMATION */
.success-main { justify-content: center; }
.success-card { width: min(520px,100%); margin: 10px auto 35px; text-align: center; background: white; border: 1px solid #e4e9dd; padding: clamp(28px, 5vw, 58px); border-radius: 28px; }
.success-symbol { margin: 0 auto 20px; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e2eee0; color: #1f684c; font-size: 28px; }
.success-card h1 { font-size: clamp(30px, 4vw, 42px); white-space: normal; margin: 13px 0; }
.success-card > p { line-height: 1.65; font-size: 15px; color: #6b8075; }
.success-back { margin-top: 23px; }
@media (max-width: 850px) {
  .inner-layout { width: calc(100% - 36px); }
  .inner-main { padding-bottom: 20px; }
  .detail-grid { gap: 15px; }
  .detail-story { padding: 25px 22px; }
  .request-box { padding: 25px 22px; }
}
@media (max-width: 700px) {
  .inner-header { min-height: 62px; }
  .inner-brand { width: 220px; margin-bottom: 14px; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-story { padding: 24px; }
  .scene-svg { width: 220px; margin: 16px auto 12px; }
  .detail-story h1 { font-size: 33px; }
  .story-lead { font-size: 14px; }
  .story-note { margin-top: 15px; }
  .legacy-link { padding-top: 16px; }
  .request-box { padding: 23px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-hero > p { margin-bottom: 25px; }
  .contact-hero h1 { font-size: 38px; }
}
@media (max-width: 380px) {
  .inner-layout { width: calc(100% - 24px); }
  .form-grid { column-gap: 8px; }
  .form-field input { padding: 10px 8px; }
  .detail-story, .request-box { padding: 18px; }
  .contact-card { padding: 21px 15px; }
}
@media (max-width: 340px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }
}

/* Garder la réservation visible dès l'arrivée sur un téléphone. */
.closed-requests { display:flex; flex-direction:column; justify-content:center; min-height:340px; }
.closed-requests h2 { margin:16px 0 8px; font-size:30px; line-height:1.2; color:var(--green); }
.closed-requests p { line-height:1.7; color:#738779; }
@media (max-width:700px) {
 .request-box { order:0; }
 .detail-story { order:1; }
}

.fallback-action { margin-top:7px; }
.fallback-action a { color:#23624c; font-weight:750; text-decoration:underline; text-underline-offset:2px; }
/* Sur les écrans PC, formulaire plus dense pour que toute la page
   puisse tenir sans défilement sur une hauteur de bureau classique. */
@media (min-width: 851px) {
  .inner-header { min-height: 64px; }
  .inner-brand { width: 235px; margin-bottom: 10px; }
  .inner-main { padding-bottom: 6px; }
  .request-box { padding: 22px 27px; }
  .request-header { margin-bottom: 14px; }
  .form-grid { row-gap: 9px; }
  .form-field input { padding-block: 9px; }
  .form-field textarea { min-height: 50px; padding-block: 8px; }
  .form-consent { margin-top: 12px; }
  .submit-request { margin-top: 12px; }
}

/* Bandeau discret présent sur toutes les pages internes en mode démonstration. */
.demo-ribbon { align-self:center; max-width:100%; margin:0 auto 8px; padding:7px 14px; background:#e8f1e4; border:1px solid #d2dfce; border-radius:100px; text-align:center; color:#315f47; font-size:12px; line-height:1.5; }
.demo-ribbon strong { font-weight:850; letter-spacing:.6px; }
.demo-legal { font-size:13px; color:#658173; }
@media(max-width:700px){ .demo-ribbon { border-radius:13px; font-size:11px; } }


/* Mise en page retravaillée des 2 cartouches de présentation */
.detail-story {
  justify-content: flex-start;
}
.scene-svg {
  width: 290px;
  margin: 18px auto 18px;
}
.detail-story h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 2.3vw, 34px);
  line-height: 1.08;
  letter-spacing: -1.3px;
  text-wrap: balance;
  max-width: 12.5ch;
}
.story-lead {
  font-size: 15px;
  line-height: 1.55;
  max-width: 32ch;
}
.story-note {
  margin-top: 18px;
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: 16px;
}
.story-note > span:last-child {
  display: block;
  text-wrap: balance;
}
@media (min-width: 851px) {
  .detail-grid { gap: 22px; }
  .detail-story { padding: 24px 26px; }
  .scene-svg { width: 250px; margin: 14px auto 14px; }
  .detail-story h1 { font-size: clamp(26px, 2vw, 32px); max-width: 13ch; }
  .story-lead { font-size: 14px; max-width: 34ch; }
  .story-note { margin-top: 16px; }
}
@media (max-width: 700px) {
  .detail-story { padding: 22px 20px; }
  .scene-svg { width: 205px; margin: 12px auto 12px; }
  .detail-story h1 { font-size: 29px; max-width: 11.8ch; }
  .story-lead { font-size: 14px; max-width: none; }
  .story-note { margin-top: 14px; font-size: 12px; }
}


/* CARTOUCHES V2 — alignement bas réel et texte sur deux paragraphes.
   Le cache du CSS est renouvelé via page-start.php (v=cartouches-v2). */
.detail-grid { align-items: stretch; }
.detail-story {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.detail-story .scene-svg { flex-shrink: 0; }
.detail-story h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(26px, 2.15vw, 33px);
  letter-spacing: -1.1px;
  text-wrap: wrap;
}
.detail-story .story-lead {
  flex: 0 0 auto;
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
}
.detail-story .story-lead-opening {
  display: block;
  font-weight: 780;
  margin: 0;
}
.detail-story .story-lead-rest {
  display: block;
  margin-top: 23px; /* deux sauts de ligne visuels après « Après/Avant les fêtes, » */
}
.detail-story .story-note-bottom {
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
}
.detail-story .legacy-link {
  margin-top: 12px;
  padding-top: 0;
}
@media (min-width: 851px) {
  .detail-story { padding: 24px 25px; }
  .detail-story .scene-svg { width: min(248px, 90%); margin: 12px auto 13px; }
  .detail-story h1 { white-space: nowrap; font-size: clamp(25px, 2.1vw, 32px); }
  .detail-story .story-lead-rest { margin-top: 24px; }
  .detail-story .story-note-bottom { margin-top: auto; }
}
@media (min-width: 701px) and (max-width: 850px) {
  .detail-story h1 { font-size: 25px; }
  .detail-story .story-lead-rest { margin-top: 19px; }
}
@media (max-width: 700px) {
  .detail-story { min-height: 410px; padding: 20px; }
  .detail-story .scene-svg { width: 200px; margin: 9px auto 10px; }
  .detail-story h1 { font-size: clamp(25px, 7vw, 30px); }
  .detail-story .story-lead { font-size: 13px; }
  .detail-story .story-lead-rest { margin-top: 17px; }
  .detail-story .story-note-bottom { margin-top: auto; }
}

/* Écrans de bureau moins hauts : formulaire compact, sans masquer les champs. */
@media (min-width: 851px) and (max-height: 800px) {
  .inner-header { min-height: 54px; }
  .inner-main { padding-bottom: 0; }
  .request-box { padding: 15px 22px; }
  .request-header { margin-bottom: 9px; }
  .request-header h2 { margin: 4px 0; font-size: 27px; }
  .form-grid { row-gap: 6px; }
  .form-field { gap: 4px; }
  .form-field input { padding-block: 7px; }
  .form-field textarea { min-height: 43px; padding-block: 7px; }
  .form-consent { margin-top: 8px; }
  .submit-request { margin-top: 8px; padding-block: 11px; }
  .form-fine { margin-top: 5px; }
}
@media (min-width: 851px) and (max-height: 650px) {
  .inner-header { min-height: 46px; }
  .footer { min-height: 42px; padding-block: 6px; }
  .request-box { padding: 10px 18px; }
  .request-header { margin-bottom: 5px; }
  .request-header h2 { margin: 2px 0; font-size: 24px; }
  .request-header p { font-size: 12px; }
  .form-grid { row-gap: 3px; }
  .form-field { gap: 3px; }
  .form-field input { padding-block: 5px; }
  .form-field textarea { min-height: 38px; padding-block: 5px; }
  .form-consent { margin-top: 5px; font-size: 11px; }
  .submit-request { margin-top: 6px; padding-block: 9px; }
  .form-fine { margin-top: 3px; }
  .detail-story { padding: 16px 22px; }
  .detail-story .scene-svg { width: 206px; margin: 6px auto 8px; }
  .detail-story h1 { font-size: clamp(23px,2vw,27px); margin-bottom: 7px; }
  .detail-story .story-lead { font-size: 12.5px; }
  .detail-story .story-lead-rest { margin-top: 20px; }
  .detail-story .story-note-bottom { padding: 9px 12px; font-size: 11px; }
}
@media (min-width: 851px) and (max-height: 580px) {
  .inner-header { min-height: 42px; }
  .footer { min-height: 38px; padding-block: 4px; }
  .request-box { padding-block: 8px; }
}
@media (min-width: 851px) and (max-height: 580px) {
  .back-link { padding-block: 4px; }
}

/* 2026-11-07 — remplacer l'encart blanc par le logo de Noël, sur les deux pages. */
.detail-story .story-logo-bottom {
  margin-top: auto;           /* garde le logo en bas de la carte */
  padding: 14px 0 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
}
.detail-story .story-logo-bottom img {
  display: block;
  width: min(265px, 80%);     /* discret, à la même taille sur les deux services */
  max-height: 85px;
  height: auto;
  object-fit: contain;
}
@media (min-width: 851px) and (max-height: 650px) {
  .detail-story .story-logo-bottom { padding-top: 8px; }
  .detail-story .story-logo-bottom img { width: min(208px, 72%); max-height: 69px; }
}
@media (max-width: 700px) {
  .detail-story .story-logo-bottom { padding-top: 22px; }
  .detail-story .story-logo-bottom img { width: min(240px, 76%); max-height: 78px; }
}

/* Calendrier compact : uniquement les dimanches, créneaux horaires */
.form-field select {width:100%; min-width:0; font:inherit; font-size:14px; color:#254438; padding:9px 12px; border:1px solid #dfe5db; border-radius:10px; background:#fbfcf8; outline:none; height:38px;}
.form-field select:focus,.sunday-trigger:focus-visible {border-color:#549273;box-shadow:0 0 0 3px rgba(48,125,86,.12)}
.sunday-field {position:relative;}
.sunday-trigger {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;width:100%;padding:8px 12px;border:1px solid #dfe5db;border-radius:10px;background:#fbfcf8;color:#254438;text-align:left;font:inherit;font-size:13px;cursor:pointer;}
.sunday-trigger span:last-child {font-size:18px;color:#46755c;}
.sunday-calendar {position:absolute;z-index:50;top:calc(100% + 4px);left:0;width:min(320px,calc(100vw - 48px));padding:13px;background:white;border:1px solid #dce6db;border-radius:15px;box-shadow:0 18px 44px rgba(14,54,35,.17);}
.sunday-calendar[hidden] {display:none!important;}
.sunday-month {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;}
.sunday-month strong {font-size:13px;color:#153e32;text-transform:capitalize;}
.sunday-month button {border:0;background:#e8f0e6;color:#174d3b;border-radius:8px;width:30px;height:30px;cursor:pointer;font-size:22px;}
.sunday-month button:disabled {opacity:.3;cursor:not-allowed;}
.sunday-weekdays,.sunday-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;}
.sunday-weekdays span {font-size:10px;color:#8a9c8f;font-weight:700;padding:5px 0;}
.sunday-days button,.sunday-days span {display:grid;place-items:center;min-width:0;height:32px;border:0;border-radius:8px;background:transparent;font:inherit;font-size:12px;color:#adb7af;}
.sunday-days button {cursor:pointer;background:#e6f0e3;color:#15543d;font-weight:800;}
.sunday-days button:hover,.sunday-days button[aria-pressed="true"] {background:#18513d;color:white;}
.sunday-calendar p {margin:9px 0 0;font-size:11px;color:#6e8475;}
@media (max-width:700px) {.sunday-calendar {left:0;}}

/* Page collecte / livraison : retour latéral et mise en page sans bandeau supérieur.
   Les autres pages (contact, confirmation) ne sont pas modifiées. */
@media (min-width: 851px) {
  .service-detail-page .inner-header { display: none; }
  .service-detail-page .inner-main {
    position: relative;
    justify-content: center;
    padding: 14px 0 20px;
    flex: 1 1 auto;
    min-height: 0;
  }
  .service-detail-page .detail-grid { width: 100%; }
  .service-detail-page .inner-footer { margin-top: 0; }
  .service-detail-page .side-back {
    position: absolute;
    top: 50%;
    left: -66px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #dce7db;
    background: #fff;
    color: #153e32;
    font-size: 25px;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(21,62,50,.06);
    transition: transform .2s,background .2s,box-shadow .2s;
  }
  .service-detail-page .side-back:hover { transform: translate(-4px,-50%); background:#e6efe2; box-shadow:0 9px 22px rgba(21,62,50,.12); }
  .service-detail-page .side-back:focus-visible { outline:3px solid #5b9b77; outline-offset:3px; }
}
@media (min-width: 851px) and (max-width: 1250px) {
  .service-detail-page .side-back { left: -52px; width: 38px; height: 38px; }
}
@media (max-width: 850px) {
  .service-detail-page .side-back { display:none; }
}
@media (min-width: 851px) and (max-height: 740px) {
  .service-detail-page .inner-main { padding-top: 8px; padding-bottom: 14px; }
  .service-detail-page .inner-footer { min-height: 46px; }
}
@media (min-width: 851px) and (max-height: 620px) {
  .service-detail-page .inner-main { padding-top: 3px; padding-bottom: 7px; }
}
