/* Hero « Vous écrivez. Votre site est à jour. » : le message à gauche, le site de la boulangerie (exemple imaginé)
   à droite, côte à côte sans se masquer. Le HTML porte l'état final (data-step="6") : il s'affiche sans JavaScript
   et avec mouvement réduit. mise-a-jour.js rejoue les étapes 0 à 6 une fois, puis sur demande. */
.maj {
  --b-night: #17120e;
  --b-flour: #f2ece3;
  --b-dust: #b8ab9d;
  --b-oven: #e6a572;
  --ease: cubic-bezier(.22, 1, .36, 1);
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 0;
  justify-self: end;
}

.bloc-hero .hero h1.signature-title { font-size: clamp(48px, 6vw, 100px); }

.maj-stage {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
  align-items: stretch;
}
.maj-message, .maj-browser {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 56px #0007;
  display: flex;
  flex-direction: column;
}

/* le message */
.maj-message { background: #ece6dc; color: #24231d; }
.maj-message-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; font-size: 12px; font-weight: 650;
  background: #f7f4ee; border-bottom: 1px solid #d8d2c5;
}
.maj-message-head .red-square { width: 6px; height: 6px; margin: 0; flex: 0 0 6px; }
.maj-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px; min-height: 0; }
.maj-bubble {
  margin: 0; max-width: 92%; padding: 9px 10px 6px; border-radius: 8px;
  font-size: clamp(12px, 1.05vw, 14px); line-height: 1.38;
  box-shadow: 0 1px 1px #0000001a;
}
.maj-bubble time { display: block; margin-top: 3px; text-align: right; font-size: 10px; color: #0008; }
.maj-me { align-self: flex-end; background: #d6e8d0; border-top-right-radius: 2px; }
.maj-them { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.maj-pic { padding: 4px 4px 5px; width: 62%; }
.maj-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.maj-pic time { padding-right: 5px; }

/* le site de la boulangerie */
.maj-browser { background: var(--b-night); color: var(--b-flour); border: 1px solid #ffffff23; }
.maj-chrome {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  background: #25231f; font-size: 11px; color: #ffffffa0; white-space: nowrap;
}
.maj-chrome i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff2e; flex: 0 0 7px; }
.maj-url { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.maj-live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--b-flour); font-weight: 600; }
.maj-live b { width: 6px; height: 6px; background: var(--red); }
.maj-site { position: relative; flex: 1; padding: 0 0 14px; overflow: hidden; }
.maj-notice {
  margin: 0; display: grid; place-items: center; text-align: center;
  background: var(--b-oven); color: var(--b-night);
  font-size: clamp(11px, 1vw, 13px); font-weight: 700; line-height: 1.25;
  max-height: 60px; padding: 8px 10px; overflow: hidden;
}
.maj-head { padding: 13px 15px 0; }
.maj-head b { display: block; font-size: clamp(15px, 1.5vw, 22px); line-height: 1.15; }
.maj-head small { display: block; margin-top: 3px; color: var(--b-dust); font-size: 11.5px; }
.maj-photo { display: block; width: calc(100% - 30px); height: clamp(84px, 9vw, 140px); margin: 12px 15px 0; object-fit: cover; object-position: 50% 55%; border-radius: 4px; }
.maj-kicker { margin: 12px 15px 5px; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--b-oven); }
.maj-hours { margin: 0 15px; font-size: clamp(11px, .95vw, 12.5px); }
.maj-hours div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #f2ece317; }
.maj-hours dt { font-weight: 500; }
.maj-hours dd { margin: 0; color: var(--b-dust); }
.maj-hours .maj-new { margin: 0 -7px; padding: 5px 7px; border: 0; border-radius: 4px; background: #e6a57233; max-height: 40px; overflow: hidden; }
.maj-hours .maj-new dt { font-weight: 700; }
.maj-hours .maj-new dd { color: var(--b-oven); font-weight: 700; }
.maj-week { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 11px; align-items: center; margin: 12px 15px 0; padding: 8px; border: 1px solid #f2ece324; border-radius: 6px; }
.maj-thumb { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #000; }
.maj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maj-swap { display: grid; }
.maj-swap p { grid-area: 1 / 1; margin: 0; font-size: clamp(13px, 1.1vw, 15px); font-weight: 650; line-height: 1.2; }
.maj-swap span { display: block; margin-bottom: 3px; font-size: 9.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--b-dust); }
.maj-swap .maj-after span { color: var(--b-oven); }

/* les étapes : 1 message, 2 photo, 3 réponse, 4 fermeture sur le site, 5 tresse, 6 « c'est en ligne » */
.maj-s1, .maj-s2, .maj-s3, .maj-s6 { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.maj-notice, .maj-hours .maj-new { transition: max-height .6s var(--ease), padding .6s var(--ease), opacity .4s, background 1.2s .2s; }
.maj-thumb img, .maj-swap p { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.maj-live { transition: opacity .4s; }

.maj:is([data-step="0"]) .maj-s1,
.maj:is([data-step="0"], [data-step="1"]) .maj-s2,
.maj:is([data-step="0"], [data-step="1"], [data-step="2"]) .maj-s3,
.maj:not([data-step="6"]) .maj-s6 { opacity: 0; transform: translateY(8px); }
.maj:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .maj-notice { max-height: 0; padding-block: 0; }
.maj:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .maj-hours .maj-new { max-height: 0; padding-block: 0; opacity: 0; background: #e6a57200; }
.maj:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) :is(.maj-thumb .maj-after, .maj-swap .maj-after) { opacity: 0; transform: translateY(5px); }
.maj:is([data-step="5"], [data-step="6"]) :is(.maj-thumb .maj-before, .maj-swap .maj-before) { opacity: 0; }
.maj:not([data-step="6"]) .maj-live { opacity: 0; }

.maj-caption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; margin-top: 15px; color: #a9aaa4; font-size: 12px; line-height: 1.5;
}
.maj-replay {
  min-height: 36px; padding: 0 2px; font: inherit; color: var(--b-flour);
  text-decoration: underline; text-underline-offset: 4px;
}
.maj-replay[aria-disabled="true"] { cursor: default; opacity: .5; }

/* La méthode compte quatre étapes et la formule Visibilité utilise une carte. */
@media (min-width: 901px) {
  .steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .plans.plans-one { grid-template-columns: 1fr 1fr; }
  .plans.plans-one .plans-head { grid-column: 1; align-self: start; }
}

@media (max-width: 900px) {
  .bloc-hero .hero { gap: 34px; }
  .bloc-hero .hero h1.signature-title { font-size: clamp(44px, 14vw, 84px); }
  .maj { max-width: 600px; justify-self: center; }
}

/* téléphone : le message au-dessus, le site en dessous, sans superposition */
@media (max-width: 600px) {
  .maj-stage { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .maj-chat { padding: 10px; }
  .maj-bubble { font-size: 13px; }
  .maj-pic { width: 46%; }
  .maj-photo { display: none; }
  .maj-hours div:nth-child(n+3) { display: none; }
  .maj-caption { margin-top: 10px; }
  .maj-replay { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .maj * { transition: none !important; }
  .maj-replay { display: none; }
}
