/* Studio Creative — Posts. Identité reprise du site studio-creative.fr : encre, bleu, point cyan, polices Outfit et Figtree (hébergées ici).
   Pensé d'abord pour le téléphone (saisie en rendez-vous). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/outfit-latin.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/fonts/figtree-latin.woff2') format('woff2'); }
:root {
  --encre: #0B1220; --bleu: #0B63CE; --bleu-fonce: #084C9E; --cyan: #00D4FF; --cyan-doux: #E5F9FF;
  --fond: #F5F7FA; --surface: #FFFFFF; --ligne: #E3E9F0; --texte: #0B1220; --discret: #4B5567;
  --ok: #0f7a4d; --ok-fond: #e3f5ec; --err: #a4201d; --err-fond: #fde8e7; --attente: #8a5a00; --attente-fond: #fff3d6;
  --rayon: 14px; --titre: 'Outfit', 'Segoe UI', system-ui, sans-serif; --corps: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.5 var(--corps); }
h1 { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; line-height: 1.15; margin: 0; letter-spacing: -.015em; overflow-wrap: anywhere; }
h2 { font-family: var(--titre); font-weight: 700; font-size: 1.1rem; margin: 0 0 10px; }
h2.suite { margin-top: 28px; }
p { margin: 0 0 10px; }
a { color: var(--bleu); }
img { max-width: 100%; }
.cache { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }

/* ── En-tête : blanc, comme celui du site ── */
.tete { background: var(--surface); border-bottom: 1px solid var(--ligne); }
.tete__in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.tete__marque { display: flex; align-items: center; gap: 12px; color: var(--encre); text-decoration: none; }
.tete__marque img { height: 40px; width: auto; display: block; }
.tete__marque span { font-family: var(--titre); font-weight: 800; font-size: 1.15rem; padding-left: 12px; border-left: 1px solid var(--ligne); }
.tete__nav { display: flex; gap: 4px; flex: 1; }
.tete__nav a { color: var(--encre); font-weight: 500; text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.tete__nav a[aria-current] { color: var(--bleu); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.tete__moi { display: flex; align-items: center; gap: 12px; font-size: .9rem; margin: 0; color: var(--discret); }

.corps { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; }
.barre { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.fil { font-size: .9rem; margin-bottom: 8px; }
.fil a::before { content: '‹ '; }

/* ── Boutons et liens ── */
.btn { display: inline-block; max-width: 100%; font: inherit; font-weight: 600; font-family: var(--titre); font-weight: 700; padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--bleu); background: var(--bleu); color: #fff; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.btn--clair { background: var(--surface); color: var(--encre); border-color: var(--ligne); }
.btn--clair:hover { background: var(--surface); border-color: var(--bleu); color: var(--bleu); }
.btn--plein { width: 100%; }
.btn:focus-within, .btn:focus-visible, .lien:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.lien { font: inherit; background: none; border: 0; padding: 0; color: var(--bleu); text-decoration: underline; cursor: pointer; }
.lien--danger { color: var(--err); }
.lien[disabled] { color: var(--discret); cursor: default; text-decoration: none; }

/* ── Messages ── */
.message { border-radius: var(--rayon); padding: 12px 14px; margin-bottom: 16px; font-weight: 500; }
.message--ok { background: var(--ok-fond); color: var(--ok); }
.message--err { background: var(--err-fond); color: var(--err); }
.message ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.note { background: var(--attente-fond); color: var(--attente); border-radius: var(--rayon); padding: 10px 14px; }
.discret, .resume, .aide, .champ__aide { color: var(--discret); font-size: .92rem; }
.vide { background: var(--surface); border: 1px dashed var(--ligne); border-radius: var(--rayon); padding: 32px 20px; text-align: center; }

/* ── Connexion ── */
.page-login .corps { max-width: 420px; padding-top: 12vh; }
.porte { display: flex; flex-direction: column; }
.porte__logo { width: 210px; height: auto; margin: 0 auto 22px; display: block; }
.porte h1 { text-align: center; font-size: 1.8rem; }
.porte .sous { text-align: center; color: var(--discret); margin: 4px 0 24px; }
.porte label { font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.porte input[type=email], .porte input[type=password] { font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 10px; border: 1px solid #c5ccd6; background: #fff; margin-bottom: 14px; width: 100%; }

/* ── Liste des clients ── */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filtres a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ligne); color: var(--texte); text-decoration: none; font-size: .92rem; }
.filtres a[aria-current] { background: var(--encre); border-color: var(--encre); color: #fff; }
.cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.carte { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 14px; color: inherit; text-decoration: none; }
.carte:hover { border-color: var(--bleu); }
.carte__logo, .identite__logo { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--ligne); }
.carte__logo--lettre { display: flex; align-items: center; justify-content: center; background: var(--encre); color: #fff; font-family: var(--titre); font-weight: 800; font-size: 1.3rem; border: 0; }
.carte__texte { display: flex; flex-direction: column; min-width: 0; }
.carte__texte strong { font-family: var(--titre); font-weight: 700; font-size: 1.08rem; overflow-wrap: anywhere; }
.carte__texte span { color: var(--discret); font-size: .92rem; overflow-wrap: anywhere; }
.carte__texte .carte__formule { color: var(--texte); }
.carte__cote { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: .88rem; color: var(--discret); text-align: right; }
.carte__montant { color: var(--texte); font-weight: 600; }
.pastille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e9edf2; color: #3a4656; white-space: nowrap; }
.pastille--actif { background: var(--ok-fond); color: var(--ok); }
.pastille--prospect { background: var(--attente-fond); color: var(--attente); }
.pastille--arrete { background: var(--err-fond); color: var(--err); }

/* ── Saisie ── */
.saisie fieldset { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 16px 8px; margin: 0 0 16px; min-width: 0; }
.saisie legend { font-family: var(--titre); font-weight: 700; font-size: 1.1rem; padding: 0 8px; margin-left: -8px; }
.grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.champ { margin-bottom: 14px; min-width: 0; }
.champ label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 9px; border: 1px solid #c5ccd6; background: #fff; color: var(--texte); }
.champ textarea { resize: vertical; line-height: 1.45; }
.champ [aria-invalid=true] { border-color: var(--err); background: #fff8f8; }
.champ__aide { margin: 5px 0 0; }
.champ__err { margin: 5px 0 0; color: var(--err); font-size: .9rem; font-weight: 600; }
.requis { font-weight: 400; color: var(--discret); font-size: .8rem; }
.choix { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.choix__un { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #c5ccd6; border-radius: 10px; cursor: pointer; background: #fff; }
.choix__un:has(input:checked) { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); font-weight: 600; }
.choix__un input { width: 18px; height: 18px; accent-color: var(--bleu); }
.saisie__bas { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }

/* Proposition de l'IA sous un texte */
.propo { margin-top: 10px; border: 1px solid var(--cyan); border-radius: 10px; background: var(--cyan-doux); padding: 12px; }
.propo__titre { font-size: .85rem; font-weight: 700; color: var(--bleu-fonce); margin-bottom: 6px; }
.propo__texte { white-space: pre-wrap; margin-bottom: 10px; overflow-wrap: anywhere; }
.propo__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.propo--err { border-color: var(--err); background: var(--err-fond); color: var(--err); }

/* ── Fiche ── */
.identite { display: flex; align-items: center; gap: 14px; min-width: 0; }
.identite p { margin: 2px 0 0; color: var(--discret); }
.blocs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.bloc { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px; min-width: 0; }
.paires { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px 14px; margin: 0 0 10px; }
.paires dt { color: var(--discret); font-size: .92rem; }
.paires dd { margin: 0; overflow-wrap: anywhere; }
.textes { margin: 0; }
.textes dt { font-weight: 600; font-size: .92rem; margin-top: 12px; }
.textes dt:first-child { margin-top: 0; }
.textes dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.formule { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formule li { background: var(--cyan-doux); border-radius: 10px; padding: 6px 12px; }
.formule strong { font-family: var(--titre); font-size: 1.2rem; }
.fiche-ia { overflow-wrap: anywhere; }
.compte { font-weight: 400; color: var(--discret); font-size: .9rem; }
.photos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #e9edf2; }
.photos--logos .photo img { object-fit: contain; background: repeating-conic-gradient(#eef1f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--ligne); }
.photo__legende { width: 100%; font: inherit; font-size: 14px; padding: 7px 9px; border-radius: 8px; border: 1px solid #c5ccd6; }
.photo__legende.est-ok { border-color: var(--ok); }
.photo__legende.est-err { border-color: var(--err); }
.photo form { margin: 0; font-size: .88rem; }
.envoi { margin: 10px 0 0; font-weight: 600; white-space: pre-line; }
.envoi.est-err { color: var(--err); }
.retirer { margin-top: 24px; text-align: right; font-size: .92rem; }

@media (min-width: 720px) {
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille--nombres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .champ--large { grid-column: 1 / -1; }
  .blocs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bloc--large { grid-column: 1 / -1; }
  .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .photos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .carte { grid-template-columns: 44px minmax(0, 1fr); }
  .carte__logo { width: 44px; height: 44px; }
  .carte__cote { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 12px; text-align: left; }
}

/* ══════════ Étape 2 : contenus, revue du lundi, calendrier ══════════ */
.compteur { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: .78rem; font-weight: 700; text-align: center; line-height: 20px; }
.barre--bloc { margin-bottom: 8px; }
.barre--bloc h2 { margin: 0; }
.barre .resume { margin: 0; }

/* Types de contenu : une couleur par type, la même partout */
.type { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--t-fond); color: var(--t-texte); }
.type--image   { --t-fond: #E3EEFB; --t-texte: #084C9E; --t-trait: #0B63CE; }
.type--motion  { --t-fond: #EEEAFF; --t-texte: #4B2FC4; --t-trait: #7C5CFF; }
.type--video   { --t-fond: #DDF6FC; --t-texte: #00607A; --t-trait: #00A9CC; }
.type--article { --t-fond: #E3F5EC; --t-texte: #0F6B44; --t-trait: #1E9E68; }
.type--page    { --t-fond: #FFF0DC; --t-texte: #8A4B00; --t-trait: #E08A1E; }
.pastille--valide, .pastille--publie, .pastille--pret { background: var(--ok-fond); color: var(--ok); }
.pastille--propose, .pastille--a_revoir, .pastille--en_production { background: var(--attente-fond); color: var(--attente); }
.pastille--refuse, .pastille--echec { background: var(--err-fond); color: var(--err); }

/* Un contenu à lire et à décider */
.revue { margin-bottom: 28px; }
.revue__client { font-size: 1.25rem; margin: 0 0 10px; }
.revue__client a { color: var(--encre); text-decoration: none; }
.revue__client a:hover { color: var(--bleu); }
.piece { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 16px; margin-bottom: 12px; min-width: 0; }
.piece__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.piece__date { color: var(--discret); font-size: .92rem; }
.piece__date.est-retard { color: var(--err); font-weight: 600; }
.piece h3 { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; overflow-wrap: anywhere; }
.piece h3 a { color: var(--encre); text-decoration: none; }
.piece h3 a:hover { color: var(--bleu); text-decoration: underline; }
.piece h1 { margin-bottom: 12px; }
.piece h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); margin: 16px 0 6px; }
.piece__angle { color: var(--discret); }
.piece__texte { background: var(--fond); border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; padding: 12px 14px; overflow-wrap: anywhere; max-width: 72ch; }
.piece__pied { margin-top: 12px; }
.decisions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.decisions form { margin: 0; }
.decisions__plus { flex: 1 1 240px; min-width: 0; border: 1px solid var(--ligne); border-radius: 12px; padding: 9px 14px; }
.decisions__plus[open] { flex-basis: 100%; }
.decisions__plus summary { cursor: pointer; font-weight: 600; }
.decisions__plus label { display: block; font-size: .88rem; font-weight: 600; margin: 12px 0 5px; }
.decisions__plus textarea { width: 100%; font: inherit; padding: 9px 11px; border-radius: 9px; border: 1px solid #c5ccd6; margin-bottom: 10px; resize: vertical; }
.decisions__annuler { align-self: center; }

/* Liste des contenus d'un client */
.liste-titre { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); margin: 16px 0 4px; }
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes li + li { border-top: 1px solid var(--ligne); }
.lignes a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 2px; color: var(--encre); text-decoration: none; }
.lignes a:hover .lignes__titre { color: var(--bleu); text-decoration: underline; }
.lignes__date { color: var(--discret); font-size: .92rem; min-width: 11.5em; }
.lignes__titre { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }

/* Calendrier : une liste de jours sur téléphone, une grille de semaines sur grand écran */
.mois { display: flex; align-items: center; gap: 6px; }
.mois strong { font-family: var(--titre); font-size: 1.1rem; min-width: 9.5em; text-align: center; }
.mois strong::first-letter { text-transform: uppercase; }
.mois a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); text-decoration: none; font-size: 1.4rem; line-height: 1; }
.mois a:hover { border-color: var(--bleu); color: var(--bleu); }
.cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cal__jsem, .cal__jour.est-vide, .cal__jour.est-hors, .cal__chiffre { display: none; }
.cal__jour { background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 10px; min-width: 0; }
.cal__num { font-weight: 700; margin-bottom: 6px; }
.cal__num small { font-weight: 400; color: var(--discret); }
.cal__court::first-letter { text-transform: uppercase; }
.cal__jour.est-auj { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.cal__item { display: block; background: var(--t-fond); color: var(--t-texte); border-left: 4px solid var(--t-trait); border-radius: 8px; padding: 6px 9px; margin-top: 6px; text-decoration: none; font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; }
.cal__item strong, .cal__item span, .cal__item em { display: block; }
.cal__item em { font-size: .8rem; }
.cal__item.est-attente { background: var(--surface); border: 1.5px dashed var(--t-trait); border-left-width: 4px; }
.cal__item:hover { filter: brightness(.96); }

@media (min-width: 900px) {
  .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; background: var(--surface); }
  .cal__jsem { display: block; padding: 8px 10px; font-size: .8rem; font-weight: 700; color: var(--discret); background: var(--fond); border-bottom: 1px solid var(--ligne); }
  .cal__jour, .cal__jour.est-vide, .cal__jour.est-hors { display: block; border: 0; border-radius: 0; border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); min-height: 118px; padding: 6px; box-shadow: none; }
  .cal__jour:nth-child(7n) { border-right: 0; }
  .cal__court { display: none; }
  .cal__chiffre { display: inline; }
  .cal__num { font-weight: 600; font-size: .9rem; margin: 0 2px 2px; }
  .cal__num small { font-size: .72rem; }
  .cal__jour.est-hors { background: var(--fond); }
  .cal__jour.est-hors .cal__num { color: #a9b2bf; }
  .cal__jour.est-repos:not(.est-hors) { background: #FAFBFC; }
  .cal__jour.est-auj .cal__chiffre { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--bleu); color: #fff; }
  .cal__item { font-size: .8rem; padding: 4px 6px; margin-top: 4px; }
}

/* Étape 3 : trace du passage automatique */
.passage { background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 14px; font-size: .92rem; color: var(--discret); }
.passage strong { color: var(--texte); }
.passage__err { display: block; color: var(--err); font-weight: 600; margin-top: 4px; }
.piece .note { margin-bottom: 10px; }
