/* Mon espace — pages client (charte du site public, skill design-pure-nettoyage, kit fermé du 13/11/2026).
   Mobile d'abord (390 px), rupture 767 px, conteneur 1100 px. Couleurs : uniquement celles du kit. */
:root {
  --navy: #111d28;
  --gold: #ce9d33;
  --gold-fonce: #8a6c2a;
  --gris: #5a6470;
  --doux: #6e747b;
  --mention: #8a93a0;
  --bord-pilule: #e0e0e6;
  --bord-carte: #ece6d8;
  --fond: #f5f5f7;
  --blanc: #ffffff;
  --alerte: #c0392b;
  --alerte-fond: #fdecec;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ombre-carte: 0 8px 26px rgba(17,29,40,.07);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.me { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--fond); color: var(--navy);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 400; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── En-tête blanc, sans logo (23/11/2026) : seulement le compte et « Se déconnecter », à droite ── */
.me-hdr { background: var(--blanc); border-bottom: 1px solid var(--bord-carte); }
.me-hdr-in { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 68px; }
.me-logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.me-logo-pure { font-weight: 800; font-size: 24px; letter-spacing: .02em; color: var(--navy); }
.me-logo-net { font-family: 'Great Vibes', cursive; font-size: 19px; color: var(--gold); margin: -4px 0 0 2px; }
.me-hdr-droite { display: flex; align-items: center; gap: 14px; min-width: 0; }
.me-qui { font-size: 12px; font-weight: 600; color: var(--mention); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.me-deco { margin: 0; flex: none; }
.me-deco button { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--gris); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--bord-pilule); text-underline-offset: 4px; transition: color .25s var(--ease); }
.me-deco button:hover { color: var(--navy); text-decoration-color: var(--gold); }

/* ── Pied ── */
.me-pied { margin-top: auto; padding: 28px 16px 32px; text-align: center; }
.me-pied p { margin: 0; font-size: 12px; font-weight: 600; color: var(--mention); }
.me-pied a { color: var(--gris); text-decoration: none; white-space: nowrap; }
.me-pied a:hover { color: var(--navy); }

/* ── Titres et ornement ── */
.me-surtitre { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-fonce); }
.me-titre { margin: 0; font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: .01em; color: var(--navy); text-wrap: balance; }
.me-orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 4px; }
.me-orn span { width: 48px; height: 1px; background: linear-gradient(90deg, rgba(206,157,51,0), var(--gold)); }
.me-orn span:last-child { background: linear-gradient(90deg, var(--gold), rgba(206,157,51,0)); }
.me-orn i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.me-texte { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--gris); }
.me-mention { margin: 12px 0 0; font-size: 12px; font-weight: 600; color: var(--mention); }

/* ── Cartes ── */
.me-carte { background: var(--blanc); border: 1px solid var(--bord-carte); border-radius: 16px; box-shadow: var(--ombre-carte); padding: 28px 20px; }

/* ── Pages d'accès : une carte centrée ── */
.me-acces { flex: 1 0 auto; width: 100%; max-width: 480px; margin: 0 auto; padding: 32px 16px 8px; display: flex; flex-direction: column; justify-content: center; }
.me-acces .me-carte { text-align: center; padding: 32px 22px 28px; }
.me-form { margin: 22px 0 0; text-align: left; }
.me-label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--navy); }
.me-champ { display: block; width: 100%; padding: 14px 20px; border: 2px solid var(--bord-pilule); border-radius: 999px; background: var(--blanc);
  font: inherit; font-size: 16px; color: var(--navy); transition: border-color .25s var(--ease); }
.me-champ::placeholder { color: var(--mention); }
.me-champ:focus { outline: none; border-color: var(--gold); }
.me-piege { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.me-btn { display: flex; align-items: center; justify-content: center; width: 100%; margin: 14px 0 0; padding: 16px 34px; border: 2px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: var(--blanc); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: all .25s var(--ease); }
.me-btn:hover { background: var(--blanc); color: var(--navy); }
.me-btn[disabled] { opacity: .7; cursor: default; }
.me-acces a.me-btn { margin-top: 24px; }
.me-alerte { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--alerte-fond); color: var(--alerte); font-size: 14px; font-weight: 700; }
.me-lien-bas { margin: 22px 0 0; }
.me-lien-bas a { font-size: 13px; font-weight: 800; color: var(--gold-fonce); text-decoration: none; }
.me-lien-bas a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Espace ── */
.me-main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 28px 16px 8px; }
.me-intro { text-align: center; margin: 0 0 22px; }
.me-haut { display: grid; gap: 16px; }
.me-bloc { margin: 16px 0 0; background: var(--blanc); border: 1px solid var(--bord-carte); border-radius: 16px; box-shadow: var(--ombre-carte); padding: 20px 18px; }
.me-haut .me-bloc { margin: 0; }
.me-h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--navy); }
.me-h3 { margin: 18px 0 2px; font-size: 13px; font-weight: 800; color: var(--gold-fonce); letter-spacing: .02em; }
.me-h2 + .me-h3 { margin-top: 8px; }
.me-rien { margin: 8px 0 0; font-size: 14px; color: var(--doux); }

/* Prochaine prestation : la seule carte mise en avant */
.me-prochaine { background: var(--blanc); border: 2px solid var(--gold); border-radius: 16px; box-shadow: 0 16px 40px rgba(17,29,40,.13);
  padding: 26px 20px 24px; text-align: center; }
.me-prochaine-sur { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-fonce); }
.me-prochaine-date { margin: 0; font-size: 32px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.me-prochaine-creneau { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: var(--navy); }
.me-sep { width: 56px; height: 1px; margin: 16px auto; background: var(--bord-carte); }
.me-prochaine-service { margin: 0; font-size: 15px; font-weight: 700; color: var(--gris); }
.me-prochaine-lieu { margin: 4px 0 0; font-size: 13.5px; color: var(--doux); }
.me-prochaine-statut { margin: 14px 0 0; }

/* Lignes de liste */
.me-liste { list-style: none; margin: 0; padding: 0; }
.me-ligne, .me-real { border-top: 1px solid var(--bord-carte); }
.me-liste > li:first-child, .me-h3 + .me-liste > li:first-child { border-top: 0; }
.me-ligne, .me-real-haut { display: flex; align-items: center; gap: 14px; padding: 12px 0; min-width: 0; }
.me-jour { flex: none; width: 48px; text-align: center; line-height: 1.1; }
.me-jour small { display: block; font-size: 11px; font-weight: 600; color: var(--mention); }
.me-jour b { display: block; font-size: 20px; font-weight: 900; color: var(--navy); }
.me-ligne-txt { flex: 1; min-width: 0; }
.me-ligne-txt b { display: block; font-size: 15px; font-weight: 700; color: var(--navy); }
.me-ligne-txt b::first-letter { text-transform: uppercase; }
.me-ligne-txt span { display: block; font-size: 13.5px; color: var(--doux); overflow-wrap: anywhere; }
.me-ligne-txt .me-lieu-mini { font-size: 12px; color: var(--mention); }
.me-statut { flex: none; display: inline-block; padding: 4px 11px; border: 1px solid var(--bord-pilule); border-radius: 999px; background: var(--blanc);
  font-size: 12px; font-weight: 700; color: var(--gris); white-space: nowrap; }

/* « Voir tout » */
.me-js .me-plus:not(.ouvert) { display: none; }
.me-voir { display: inline-block; margin: 6px 0 0; padding: 6px 0; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 800; color: var(--gold-fonce); cursor: pointer; }
.me-voir:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Réalisées et photos avant / après */
.me-real { padding-bottom: 4px; }
.me-real.a-photos { padding-bottom: 16px; }
.me-photos { margin: 2px 0 0 62px; }
.me-photos-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.me-photo-tag { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-fonce); }
.me-photos-seul .me-photo-tag { margin-bottom: 8px; }
.me-photos-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.me-vign { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--fond); cursor: zoom-in; }
.me-vign img { display: block; width: 100%; height: auto; transition: transform .25s var(--ease); }
.me-vign:hover img { transform: scale(1.03); }
.me-vign-vide { display: block; }

/* Documents */
.me-doc-act { flex: none; display: flex; gap: 6px; }
.me-pill { display: inline-flex; align-items: center; padding: 7px 14px; border: 2px solid var(--bord-pilule); border-radius: 999px; background: var(--blanc);
  font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; transition: all .25s var(--ease); }
.me-pill:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(17,29,40,.20); }
.me-pill-pdf { color: var(--gris); }

/* Cas vide */
.me-vide { max-width: 560px; margin: 0 auto; text-align: center; }

/* Agrandissement plein écran */
.me-zoom { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; background: rgba(17,29,40,.94); cursor: zoom-out; }
.me-zoom[hidden] { display: none; }
.me-zoom img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 10px; }
.me-zoom-leg { margin: 0; font-size: 13px; font-weight: 700; color: var(--blanc); }
.me-zoom-fermer { position: absolute; top: 14px; right: 14px; padding: 9px 18px; border: 2px solid rgba(255,255,255,.35); border-radius: 999px; background: none;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--blanc); cursor: pointer; }
.me-zoom-fermer:hover { border-color: var(--gold); }
body.me-zoom-ouvert { overflow: hidden; }

/* Très petits écrans */
@media (max-width: 380px) {
  .me-photos { margin-left: 0; }
  .me-qui { display: none; }
}
@media (max-width: 520px) {
  .me-qui { display: none; }
  .me-photos { margin-left: 0; margin-top: 4px; }
}

/* ── Tablette et PC ── */
@media (min-width: 768px) {
  .me-hdr-in { padding: 16px 24px; min-height: 76px; }
  .me-logo-pure { font-size: 26px; }
  .me-logo-net { font-size: 21px; }
  .me-titre { font-size: 40px; }
  .me-acces { padding-top: 48px; }
  .me-acces .me-carte { padding: 40px 40px 34px; }
  .me-main { padding: 40px 24px 8px; }
  .me-intro { margin-bottom: 30px; }
  .me-haut { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; }
  .sans-prochaine .me-haut { grid-template-columns: minmax(0, 1fr); }
  .me-prochaine { display: flex; flex-direction: column; justify-content: center; padding: 34px 28px; }
  .me-prochaine-date { font-size: 38px; }
  .me-bloc { margin-top: 24px; padding: 26px 28px; }
  /* Réalisées : une seule colonne (Enzo, 24/11), photos avant / après sous chaque passage */
  .me-photos { margin-left: 62px; max-width: 640px; }
  .me-photos-duo, .me-photos-grille { gap: 12px; }
}
@media (min-width: 1200px) {
  .me-titre { font-size: 46px; }
}

/* PC peu haut (1280 × 590) : la carte d'accès tient dans l'écran */
@media (min-width: 768px) and (max-height: 760px) {
  .me-hdr-in { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .me-acces { padding-top: 18px; }
  .me-acces .me-carte { padding: 24px 40px 22px; }
  .me-acces .me-titre { font-size: 32px; }
  .me-acces .me-orn { margin-top: 12px; }
  .me-acces .me-texte { margin-top: 8px; }
  .me-acces .me-form { margin-top: 14px; }
  .me-acces .me-champ { padding: 11px 20px; }
  .me-acces .me-btn { padding: 13px 34px; margin-top: 10px; }
  .me-acces .me-mention { margin-top: 8px; }
  .me-pied { padding: 14px 16px 16px; }
}

/* ── Entrée sobre, jouée une fois ── */
@keyframes me-monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.me-entree { animation: me-monte .5s var(--ease) both; }
.me-haut > .me-entree:nth-child(1) { animation-delay: .08s; }
.me-haut > .me-entree:nth-child(2) { animation-delay: .16s; }
.me-bloc-real { animation-delay: .24s; }
.me-bloc-docs { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .me-entree { animation: none; }
  .me-vign img, .me-pill, .me-btn, .me-champ { transition: none; }
  .me-vign:hover img, .me-pill:hover { transform: none; }
}
