/*
 * Message d’amour du jour
 * Styles spécifiques à cette page. Les styles du site sont chargés séparément.
 */

/* 01 — Page, fond et mise en page principale */
.message-jour {
  background:#0b1630;
  color:#f9f4f5;
}

.message-jour main {
  overflow:hidden;
}

.mj-shell {
  width:min(1530px,calc(100% - 7vw));
  margin-inline:auto;
}

.mj-hero {
  position:relative;
  padding:105px 0 95px;
  background:radial-gradient(circle at 70% 24%,#28335a 0,#111d3b 32%,#0b1630 70%);
  isolation:isolate;
}

.mj-glow {
  position:absolute;
  z-index:-1;
  border-radius:50%;
  filter:blur(8px);
  pointer-events:none;
}

.mj-glow-a {
  width:340px;
  height:340px;
  background:#e5449b17;
  left:-140px;
  top:70px;
}

.mj-glow-b {
  width:490px;
  height:490px;
  background:#d7ae6912;
  right:-130px;
  bottom:-210px;
}

.mj-hero-inner {
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  align-items:center;
  gap:clamp(55px,8vw,150px);
}

.mj-eyebrow {
  margin:0 0 22px;
  color:#fa78b1;
  font:700 12px/1.4 'DM Sans',sans-serif;
  letter-spacing:.22em;
}

.mj-intro h1 {
  margin:0;
  font:600 clamp(48px,5vw,86px)/1.13 'Playfair Display',Georgia,serif;
  letter-spacing:-.045em;
  color:#fff;
}

.mj-intro h1 em,.mj-below h2 em {
  color:#ff6da8;
  font-weight:500;
}

.mj-lead {
  font:400 clamp(18px,1.3vw,21px)/1.75 'DM Sans',sans-serif;
  color:#d3d9e7;
  margin:28px 0;
  max-width:560px;
}

.mj-share {
  background:linear-gradient(110deg,#db408c,#b24bec);
  border:1px solid #fb91ca;
  border-radius:100px;
  color:white!important;
  text-decoration:none;
  font:700 15px 'DM Sans',sans-serif;
  padding:16px 23px;
  cursor:pointer;
  box-shadow:0 12px 35px #cf408c25;
  transition:transform .2s,box-shadow .2s;
}

.mj-share:hover {
  transform:translateY(-3px);
  box-shadow:0 16px 40px #db408c40;
}

.mj-feature {
  background:linear-gradient(150deg,#1b2a50,#14213f);
  border:1px solid #c39c65;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 38px 90px #03081778,0 0 60px #cf768017;
}

.mj-feature-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 26px;
  font:700 12px 'DM Sans',sans-serif;
  letter-spacing:.18em;
  color:#f5dcba;
}

.mj-feature-top #mj-count {
  color:#b9c7de;
  letter-spacing:.1em;
}

.mj-live {
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#f681ad;
  box-shadow:0 0 0 5px #f681ad22;
  margin-right:12px;
}

.mj-image-button {
  display:block;
  width:100%;
  border:0;
  padding:0;
  background:#131d38;
  cursor:zoom-in;
  position:relative;
}

.mj-image-button img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1800/945;
  object-fit:cover;
}

.mj-feature-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:24px 26px;
}

.mj-feature-bottom strong,.mj-feature-bottom span {
  display:block;
}

.mj-feature-bottom strong {
  font:600 20px 'Playfair Display',Georgia,serif;
  color:#fff;
}

.mj-feature-bottom div span {
  font:400 13px 'DM Sans',sans-serif;
  color:#b5c3d8;
  margin-top:4px;
}

.mj-share {
  font-size:14px;
  padding:13px 19px;
  white-space:nowrap;
}

.mj-below {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  padding-block:25px 100px;
}

.mj-archive,.mj-explore {
  min-height:380px;
  border-radius:26px;
  padding:clamp(32px,4vw,65px);
}

.mj-archive {
  display:flex;
  gap:26px;
  background:linear-gradient(135deg,#f5e7dd,#f9eff0);
  color:#251c31;
}

.mj-archive-mark {
  font:700 115px/1 'Playfair Display',Georgia,serif;
  color:#db5598;
}

.mj-below h2 {
  font:600 clamp(30px,2.6vw,43px)/1.24 'Playfair Display',Georgia,serif;
  margin:0 0 24px;
}

.mj-archive blockquote {
  border-left:2px solid #d9488b;
  margin:0 0 16px;
  padding-left:20px;
  font:italic 500 21px/1.55 'Playfair Display',Georgia,serif;
}

.mj-archive-caption {
  font:400 13px/1.5 'DM Sans',sans-serif;
  color:#776a74;
}

.mj-explore {
  background:#172548;
  border:1px solid #344466;
}

.mj-explore>p:not(.mj-eyebrow) {
  color:#c0cbdd;
  line-height:1.6;
}

.mj-explore nav {
  margin-top:26px;
}

.mj-explore nav a {
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 0;
  border-top:1px solid #ffffff30;
  text-decoration:none;
  color:#fff;
  font:600 15px 'DM Sans',sans-serif;
}

.mj-explore nav a span {
  color:#e889b5;
  font-size:12px;
}

.mj-explore nav a b {
  margin-left:auto;
  color:#f081ae;
}

.mj-dialog {
  border:1px solid #e7b987;
  border-radius:20px;
  padding:12px;
  background:#101a34;
  color:white;
  max-width:min(92vw,1250px);
  box-shadow:0 30px 100px #000a;
}

.mj-dialog::backdrop {
  background:#020615d9;
}

.mj-dialog img {
  display:block;
  max-width:100%;
  max-height:85vh;
  border-radius:10px;
}

.mj-dialog button {
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  background:#131e38;
  color:white;
  border:1px solid #fff8;
  border-radius:50%;
  font-size:29px;
  cursor:pointer;
}

.mj-toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:100;
  color:#fff;
  background:#24365b;
  border-radius:30px;
  padding:12px 20px;
  box-shadow:0 8px 25px #0005;
  font:600 14px 'DM Sans',sans-serif;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}

.mj-toast.is-visible {
  opacity:1;
}

.message-jour :is(a,button):focus-visible {
  outline:3px solid #f9b6d5;
  outline-offset:4px;
}

@media(max-width:980px) {
  .mj-hero {
    padding:65px 0;
  }
  .mj-hero-inner {
    grid-template-columns:1fr;
    gap:40px;
  }
  .mj-intro {
    max-width:760px;
  }
  .mj-below {
    grid-template-columns:1fr;
  }
  .mj-feature {
    max-width:820px;
  }
}

@media(max-width:600px) {
  .mj-shell {
    width:calc(100% - 32px);
  }
  .mj-hero {
    padding:48px 0 55px;
  }
  .mj-intro h1 {
    font-size:clamp(43px,12vw,65px);
  }
  .mj-lead {
    font-size:17px;
  }
  .mj-feature {
    border-radius:18px;
  }
  .mj-feature-top {
    padding:17px;
    font-size:10px;
  }
  .mj-feature-bottom {
    padding:18px;
    align-items:flex-start;
    flex-direction:column;
  }
  .mj-share {
    width:100%;
  }
  .mj-below {
    padding-bottom:60px;
  }
  .mj-archive,.mj-explore {
    padding:27px;
    min-height:0;
  }
  .mj-archive {
    gap:10px;
  }
  .mj-archive-mark {
    font-size:60px;
  }
  .mj-archive blockquote {
    font-size:18px;
  }
  .mj-below h2 {
    font-size:29px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .mj-share,.mj-toast {
    transition:none;
  }
}

/* 02 — Carte en premier, mise en page et actions */
.message-jour .mj-hero-inner {
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
}

.message-jour .mj-card-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.message-jour .mj-save {
  background:transparent;
  border:1px solid #d7a9c4;
  border-radius:100px;
  color:#fff;
  font:700 14px 'DM Sans',sans-serif;
  padding:13px 19px;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s,transform .2s;
}

.message-jour .mj-save:hover {
  background:#ffffff19;
  transform:translateY(-3px);
}

.message-jour .mj-save:disabled,.message-jour .mj-share:disabled {
  opacity:.5;
  cursor:not-allowed;
}

@media(max-width:980px) {
  .message-jour .mj-hero-inner {
    grid-template-columns:1fr;
  }
  .message-jour .mj-feature {
    width:100%;
    max-width:820px;
  }
  .message-jour .mj-intro {
    width:100%;
  }
}

@media(max-width:600px) {
  .message-jour .mj-card-actions {
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .message-jour .mj-save,.message-jour .mj-share {
    width:100%;
    padding:12px 9px;
    font-size:13px;
  }
}

/* 03 — Présentation éditoriale et partage */
.message-jour .mj-editorial {
  padding-block:74px 34px;
}

.message-jour .mj-editorial-heading {
  max-width:880px;
}

.message-jour .mj-editorial h2,.message-jour .mj-social h2 {
  font:600 clamp(33px,3.3vw,52px)/1.17 'Playfair Display',Georgia,serif;
  margin:0 0 20px;
  color:#fff;
}

.message-jour .mj-editorial h2 em,.message-jour .mj-social h2 em {
  color:#ff75aa;
  font-weight:500;
}

.message-jour .mj-editorial-heading>p:last-child,.message-jour .mj-social-copy>p:last-child {
  font:400 18px/1.7 'DM Sans',sans-serif;
  color:#d4ddec;
  margin:0;
}

.message-jour .mj-editorial-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:38px;
}

.message-jour .mj-editorial-grid article {
  padding:32px;
  border:1px solid #425374;
  border-radius:21px;
  background:linear-gradient(155deg,#1b2a4c,#14213d);
}

.message-jour .mj-step {
  display:inline-grid;
  place-items:center;
  width:39px;
  height:39px;
  border-radius:50%;
  background:#f07fb01f;
  color:#f69abf;
  font:700 12px 'DM Sans',sans-serif;
}

.message-jour .mj-editorial-grid h3 {
  font:600 23px/1.25 'Playfair Display',Georgia,serif;
  margin:18px 0 10px;
  color:#fff;
}

.message-jour .mj-editorial-grid p {
  font:400 15px/1.7 'DM Sans',sans-serif;
  margin:0;
  color:#c8d1e1;
}

.message-jour .mj-social {
  padding:36px clamp(26px,4vw,58px);
  border:1px solid #c39c65;
  border-radius:26px;
  background:radial-gradient(circle at 95% 5%,#8f366543,transparent 45%),linear-gradient(120deg,#1a294b,#111e3b);
  box-shadow:0 28px 65px #03081750;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:46px;
  align-items:center;
}

.message-jour .mj-social-copy>p:last-child {
  font-size:16px;
}

.message-jour .mj-social-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.message-jour .mj-social-button {
  display:flex;
  align-items:center;
  gap:11px;
  min-height:57px;
  padding:10px 15px;
  color:#fff;
  background:#ffffff0c;
  border:1px solid #91a0bd80;
  border-radius:15px;
  text-decoration:none;
  font:700 14px 'DM Sans',sans-serif;
  cursor:pointer;
  text-align:left;
  transition:background .2s,border-color .2s,transform .2s;
}

.message-jour .mj-social-button:hover {
  background:#e765aa30;
  border-color:#f6a4cb;
  transform:translateY(-2px);
}

.message-jour .mj-social-button>span:last-child {
  margin-left:auto;
  color:#f7a1c7;
}

.message-jour .mj-social-icon {
  display:inline-grid;
  place-items:center;
  flex:none;
  width:32px;
  height:32px;
  border-radius:10px;
  background:#f07aaa27;
  color:#ffaccd;
  font:700 19px 'DM Sans',sans-serif;
}

.message-jour .mj-social-button:last-child {
  grid-column:1/-1;
}

.message-jour .mj-below {
  padding-top:30px;
}

@media(max-width:950px) {
  .message-jour .mj-social {
    grid-template-columns:1fr;
    gap:25px;
  }
  .message-jour .mj-editorial-grid {
    grid-template-columns:1fr;
  }
}

@media(max-width:600px) {
  .message-jour .mj-editorial {
    padding-block:42px 25px;
  }
  .message-jour .mj-editorial-heading>p:last-child {
    font-size:16px;
  }
  .message-jour .mj-editorial-grid {
    gap:12px;
    margin-top:25px;
  }
  .message-jour .mj-editorial-grid article {
    padding:24px;
  }
  .message-jour .mj-social {
    padding:26px 18px;
    border-radius:20px;
    gap:23px;
  }
  .message-jour .mj-social-actions {
    gap:9px;
  }
  .message-jour .mj-social-button {
    padding:10px;
    font-size:12px;
    min-height:56px;
    gap:6px;
  }
  .message-jour .mj-social-icon {
    width:26px;
    height:26px;
    font-size:16px;
  }
}

@media(max-width:600px) {
  .message-jour .mj-social-actions {
    grid-template-columns:1fr;
  }
  .message-jour .mj-social-button:last-child {
    grid-column:auto;
  }
  .message-jour .mj-social-button {
    font-size:14px;
    padding:12px 14px;
  }
}

.message-jour .mj-card-actions :is(.mj-share,.mj-save) span {
  display:inline;
  margin-left:5px;
}

/* 04 — Photographies des trois étapes */
.message-jour .mj-editorial-grid article {
  overflow:hidden;
  padding:0 0 28px;
}

.message-jour .mj-editorial-photo {
  display:block;
  width:100%;
  height:clamp(155px,12vw,215px);
  object-fit:cover;
  object-position:left center;
  border-bottom:1px solid #a7808640;
}

.message-jour .mj-editorial-grid .mj-step {
  margin:24px 28px 0;
}

.message-jour .mj-editorial-grid h3 {
  margin:17px 28px 10px;
}

.message-jour .mj-editorial-grid article p {
  margin:0 28px;
}

.message-jour .mj-editorial-grid article:nth-child(1) .mj-editorial-photo {
  object-position:left 54%;
}

.message-jour .mj-editorial-grid article:nth-child(2) .mj-editorial-photo {
  object-position:left 53%;
}

.message-jour .mj-editorial-grid article:nth-child(3) .mj-editorial-photo {
  object-position:left 52%;
}

@media(max-width:950px) {
  .message-jour .mj-editorial-photo {
    height:240px;
  }
}

@media(max-width:600px) {
  .message-jour .mj-editorial-photo {
    height:185px;
  }
  .message-jour .mj-editorial-grid .mj-step {
    margin:20px 22px 0;
  }
  .message-jour .mj-editorial-grid h3 {
    margin:16px 22px 10px;
  }
  .message-jour .mj-editorial-grid article p {
    margin:0 22px;
  }
  .message-jour .mj-editorial-grid article {
    padding-bottom:24px;
  }
}

/* 05 — Citation écrite dans la colonne de droite */
.message-jour .mj-intro .mj-today-quote[hidden] {
  display:none;
}

.message-jour .mj-intro .mj-today-quote {
  margin:29px 0 23px;
  padding:19px 22px 19px 25px;
  border-left:3px solid #f188b5;
  border-radius:0 15px 15px 0;
  background:linear-gradient(110deg,#f392bd16,#ffffff08);
  box-shadow:none;
}

.message-jour .mj-intro .mj-today-label {
  margin:0 0 10px;
  color:#f4a6c7;
  font:700 10px/1.4 'DM Sans',sans-serif;
  letter-spacing:.16em;
}

.message-jour .mj-intro .mj-today-quote blockquote {
  margin:0;
  color:#fff;
  font:italic 500 clamp(20px,1.65vw,27px)/1.45 'Playfair Display',Georgia,serif;
}

.message-jour .mj-intro .mj-copy-quote {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:14px;
  padding:8px 13px;
  background:transparent;
  border:1px solid #c698b1;
  border-radius:100px;
  color:#fbe7f0;
  box-shadow:none;
  font:600 12px 'DM Sans',sans-serif;
  cursor:pointer;
}

.message-jour .mj-intro .mj-copy-quote:hover {
  background:#f392bd24;
}

.message-jour .mj-intro .mj-copy-quote span {
  display:inline;
  margin:0;
}

@media(max-width:600px) {
  .message-jour .mj-intro .mj-today-quote {
    margin:25px 0 22px;
    padding:16px 18px;
  }
  .message-jour .mj-intro .mj-today-quote blockquote {
    font-size:21px;
  }
  .message-jour .mj-intro .mj-copy-quote {
    width:auto;
  }
}

/* 06 — Boutons de la carte */
.message-jour .mj-card-actions {
  align-items:center;
}

.message-jour .mj-expand {
  padding:13px 17px;
  border:1px solid #c89ab5;
  border-radius:100px;
  color:#fff;
  background:transparent;
  font:700 14px 'DM Sans',sans-serif;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s,transform .2s;
}

.message-jour .mj-expand:hover {
  background:#ffffff19;
  transform:translateY(-3px);
}

.message-jour .mj-expand:disabled {
  opacity:.5;
  cursor:not-allowed;
}

.message-jour .mj-card-actions .mj-expand span {
  display:inline;
  margin-left:5px;
}

@media(max-width:600px) {
  .message-jour .mj-card-actions {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .message-jour .mj-card-actions :is(.mj-expand,.mj-share,.mj-save) {
    width:100%;
    padding:11px 4px;
    font-size:11px;
  }
  .message-jour .mj-card-actions :is(.mj-expand,.mj-share,.mj-save) span {
    margin-left:1px;
  }
}

/* 07 — Date, alignement et espacements du premier écran */
.message-jour .mj-hero {
  padding:52px 0 40px;
}

/* Centre tout le contenu de droite par rapport à la carte sur ordinateur. */
.message-jour .mj-hero-inner {
  align-items:center;
  gap:clamp(35px,5vw,90px);
}

.message-jour .mj-intro {
  padding-top:0;
}

.message-jour .mj-feature-top {
  justify-content:flex-start;
  min-height:60px;
}

.message-jour .mj-feature-date {
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#f4dcca;
  font:italic 500 clamp(15px,1.05vw,19px) 'Playfair Display',Georgia,serif;
  letter-spacing:0;
  text-transform:none;
}

.message-jour .mj-feature-date .mj-live {
  margin-right:0;
}

.message-jour .mj-editorial {
  padding-top:35px;
}

.message-jour .mj-intro .mj-lead {
  margin-top:24px;
}

@media(max-width:980px) {
  .message-jour .mj-hero {
    padding:38px 0 32px;
  }
  .message-jour .mj-hero-inner {
    align-items:start;
    gap:30px;
  }
  .message-jour .mj-editorial {
    padding-top:30px;
  }
}

@media(max-width:600px) {
  .message-jour .mj-hero {
    padding:24px 0 28px;
  }
  .message-jour .mj-feature-top {
    min-height:52px;
  }
  .message-jour .mj-feature-date {
    font-size:15px;
  }
  .message-jour .mj-editorial {
    padding-top:28px;
  }
}

/* Garde le premier contenu visible sous l’en-tête fixe, sans rallonger le bas. */
@media(min-width:981px) {
  .message-jour .mj-hero {
    padding-top:105px;
    padding-bottom:36px;
  }
}

@media(min-width:601px) and (max-width:980px) {
  .message-jour .mj-hero {
    padding-top:72px;
    padding-bottom:32px;
  }
}

/* 08 — Pages « du jour » sans image de fond : espace sous le menu mobile.
 * Le menu commun est fixe et mesure 76 px ; 14 px laissent respirer la carte.
 * Cette règle appartient uniquement à cette page. Elle peut être reprise
 * dans la feuille propre aux futures pages du jour construites de même. */
@media (max-width: 760px) {
  .message-jour .mj-hero {
    padding-top: 90px;
  }
}

/* 09 — Sur mobile, le titre de l’archive doit contraster avec la carte claire.
 * Ces couleurs sont propres à Message d’amour du jour ; l’ordinateur ne change pas. */
@media (max-width: 760px) {
  .message-jour main .mj-archive h2 {
    color: #251c31 !important;
  }

  .message-jour main .mj-archive h2 em {
    color: #db5598 !important;
  }
}
