/* Polices libres (SIL OFL 1.1), servies par le bureau lui-même : Cormorant Garamond (titres) et Inter (textes). */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); }
:root {
  /* Jetons du thème : remplacés au chargement par la palette effective du magasin (Nacre & Lumière par défaut). */
  --fond: #FAF5EF;
  --surface: #F1DDD4;
  --principale: #754B63;
  --texte: #452235;
  --accent: #B99A76;
  /* Couleurs d'état : communes à tous les thèmes. */
  --etat-erreur: #A12A2A;
  --etat-avertissement: #7A4F00;
  --etat-confirmation: #2B6A3C;
  --carte: #FFFFFFB3;
  --ligne: color-mix(in srgb, var(--texte) 16%, transparent);
  --serif: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--sans); line-height: 1.5; }
.skip { position: absolute; left: -999px; top: 0; background: var(--principale); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--principale); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: 1.5rem; }
.app { display: grid; grid-template-columns: 17rem 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--surface), var(--fond)); padding: 1.5rem 1rem; border-right: 1px solid var(--ligne); }
.brandmark { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.brandmark__name { font-family: var(--serif); font-size: 1.6rem; color: var(--principale); }
.brandmark__sub { letter-spacing: .25em; font-size: .7rem; text-transform: uppercase; opacity: .8; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav a { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--texte); text-decoration: none; }
nav a small { display: block; font-size: .78rem; opacity: .8; }
nav a[aria-current="page"] { background: var(--principale); color: #fff; }
nav a:hover:not([aria-current="page"]) { background: color-mix(in srgb, var(--principale) 12%, transparent); }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; gap: 1rem; align-items: center; padding: .8rem 1.5rem; border-bottom: 1px solid var(--ligne); }
.brandpick { display: flex; flex-direction: column; font-size: .8rem; margin-right: auto; }
.brandpick select { font-size: 1rem; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--ligne); background: var(--fond); color: var(--texte); }
.menu-toggle, .menu-fermer { display: none; }
main { padding: 1.5rem; flex: 1; }
main:focus { outline: none; }
.foot { padding: 1rem 1.5rem; font-size: .8rem; opacity: .8; border-top: 1px solid var(--ligne); }
.lede { max-width: 60ch; margin: 0 0 1.5rem; }
.card { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.btn { font: inherit; padding: .55rem 1.1rem; border-radius: 10px; border: 1px solid var(--principale); background: transparent; color: var(--principale); cursor: pointer; }
.btn--primary { background: var(--principale); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { font: inherit; background: none; border: none; color: var(--principale); text-decoration: underline; cursor: pointer; }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .82rem; border: 1px solid currentColor; white-space: nowrap; }
.pill--A_TRAITER { color: var(--etat-erreur); }
.pill--A_RELIRE { color: var(--etat-avertissement); }
.pill--PROGRAMME { color: var(--principale); }
.pill--APPROUVE, .pill--PUBLIE, .pill--PUBLIE_ET_VERIFIE, .pill--CONNECTEE, .pill--ACTIVE { color: var(--etat-confirmation); }
.pill--FAIT { color: var(--etat-confirmation); }
.pill--A_FAIRE { color: var(--etat-avertissement); }
.pill--A_VERIFIER_PAR_LE_CLIENT { color: var(--etat-avertissement); }
.apercu-email { width: 100%; min-height: 28rem; border: 1px solid var(--ligne); border-radius: 12px; background: #fff; }
.pill--PROPOSE { color: var(--etat-avertissement); }
.pill--VALIDE { color: var(--etat-confirmation); }
.pill--IGNORE { color: var(--texte); opacity: .75; }
.pill--A_RECONNECTER { color: var(--etat-erreur); }
.pill--A_VENIR, .pill--DISPONIBLE_BIENTOT, .pill--AUCUN_COMPTE { color: var(--texte); opacity: .75; }
.msg { margin: .5rem 0; padding: .6rem .9rem; border-radius: 10px; }
.msg--erreur { background: color-mix(in srgb, var(--etat-erreur) 10%, var(--fond)); color: var(--etat-erreur); }
.msg--info { background: color-mix(in srgb, var(--principale) 10%, var(--fond)); }
.msg--ok { background: color-mix(in srgb, var(--etat-confirmation) 10%, var(--fond)); color: var(--etat-confirmation); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters [aria-pressed="true"] { background: var(--principale); color: #fff; }
.filters [aria-disabled="true"] { opacity: .55; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--ligne); }
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.palette { position: relative; display: flex; flex-direction: column; border: 2px solid var(--ligne); border-radius: 14px; overflow: hidden; cursor: pointer; }
.palette[data-selected="true"] { border-color: var(--principale); }
.palette input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.palette:focus-within { outline: 3px solid var(--texte); outline-offset: 4px; }
/* La texture est décorative (arrière-plan) ; l'aperçu opaque se pose dessus, sans transparence ni mélange. */
.palette__visual { display: grid; place-items: center; padding: 1rem 0; background-size: cover; background-position: center; }
.palette__visual img { width: 78%; height: auto; display: block; border-radius: 8px; }
.palette__foot { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .7rem .5rem .8rem; }
.palette__dots { display: flex; justify-content: center; gap: .35rem; }
.palette__dots i { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid var(--ligne); display: inline-block; }
.palette__name { font-family: var(--serif); font-size: 1.15rem; }
.palette__check { position: absolute; top: .6rem; right: .6rem; background: var(--principale); color: #fff; border-radius: 50%; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; }
.choix-reseaux { border: 1px solid var(--ligne); border-radius: 14px; padding: .75rem 1.25rem; margin: 0 0 1rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.choix-reseaux legend { padding: 0 .4rem; font-family: var(--serif); font-size: 1.1rem; }
.case { display: inline-flex; align-items: center; gap: .35rem; }
code { background: color-mix(in srgb, var(--principale) 10%, transparent); padding: .1rem .4rem; border-radius: 6px; word-break: break-all; }
/* Conseiller : deux couleurs FIXES dans les dix palettes (jamais recolorées par un thème), distinctes des états métier. */
:root { --conseil-attention: #8A5A19; --conseil-info: #754B63; }
.conseil-declencheur { display: inline-flex; align-items: center; gap: .4rem; font: inherit; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--ligne); background: transparent; color: var(--texte); cursor: pointer; min-height: 44px; }
.conseil-declencheur:hover { background: color-mix(in srgb, var(--principale) 10%, transparent); }
.studio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.studio__lateral { min-width: 0; }
.conseil-carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 1rem 1.25rem; }
.conseil-carte h2 { margin-bottom: .1rem; }
.conseil-sous-titre { margin: 0 0 .5rem; opacity: .85; font-size: .95rem; }
.conseil-item { padding: .8rem 0; border-top: 1px solid var(--ligne); }
.conseil-item:first-of-type { border-top: 0; }
.conseil-niveau { display: flex; align-items: center; gap: .45rem; font-size: .95rem; margin-bottom: .2rem; }
.conseil--attention .conseil-niveau { color: var(--conseil-attention); }
.conseil--info .conseil-niveau { color: var(--conseil-info); }
.conseil-niveau svg { flex: none; }
.conseil-titre { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; margin: 0 0 .3rem; font-weight: 600; }
.conseil-details { margin: 0 0 .3rem; font-size: .92rem; opacity: .9; }
.conseil-pourquoi { display: inline-flex; align-items: center; gap: .35rem; font: inherit; background: none; border: 0; padding: .3rem 0; color: var(--texte); cursor: pointer; min-height: 44px; }
.conseil-pourquoi svg { transition: transform .15s; }
.conseil-pourquoi[aria-expanded="true"] svg { transform: rotate(180deg); }
.conseil-raison { margin: 0 0 .4rem; font-size: 1rem; }
.conseil-lien { display: inline-block; color: var(--texte); text-decoration: underline; text-underline-offset: 3px; padding: .3rem 0; min-height: 44px; }
.conseil-note { font-size: .9rem; opacity: .85; margin: .6rem 0 0; }
.conseil-etat { text-align: center; padding: 1.5rem .5rem; }
.conseil-etat h3 { font-family: var(--serif); font-size: 1.5rem; margin: .5rem 0 .3rem; }
.conseil-silhouette { height: 1rem; border-radius: 6px; background: color-mix(in srgb, var(--texte) 12%, transparent); margin: .6rem 0; }
.conseil-lien-bouton { font: inherit; background: none; border: 0; color: var(--texte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .3rem 0; min-height: 44px; }
.conseil-fond { position: fixed; inset: 0; background: color-mix(in srgb, var(--texte) 25%, transparent); z-index: 20; }
.conseil-panneau { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--fond); border-left: 1px solid var(--ligne); z-index: 21; display: flex; flex-direction: column; box-shadow: -8px 0 30px color-mix(in srgb, var(--texte) 15%, transparent); }
.conseil-panneau__entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.25rem .75rem; border-bottom: 1px solid var(--ligne); background: linear-gradient(180deg, var(--surface), var(--fond)); }
.conseil-panneau__entete h2 { font-size: 2rem; margin: 0; }
.conseil-panneau__entete h2:focus { outline: none; }
.conseil-panneau__corps { flex: 1; overflow-y: auto; padding: .5rem 1.25rem 1rem; }
.conseil-panneau__pied { padding: .8rem 1.25rem; border-top: 1px solid var(--ligne); font-size: .95rem; }
.conseil-fermer { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--texte); cursor: pointer; }
.conseil-fermer:hover { background: color-mix(in srgb, var(--principale) 12%, transparent); }
@media (max-width: 760px) {
  .studio { grid-template-columns: 1fr; }
  .conseil-panneau { width: 100%; border-left: 0; }
  body { font-size: 16px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs [aria-selected="true"] { background: var(--principale); color: #fff; }
.tabs [aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.login { max-width: 28rem; margin: 6rem auto; padding: 0 1.5rem; }
.login form { display: grid; gap: .75rem; }
.login input { font: inherit; padding: .6rem; border-radius: 8px; border: 1px solid var(--ligne); }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; border-right: none; border-bottom: 1px solid var(--ligne); }
  .sidebar.open { display: block; position: fixed; inset: 0; z-index: 40; overflow-y: auto; }
  .menu-fermer { display: block; margin: 0 0 .5rem auto; min-height: 44px; font: inherit; padding: .4rem 1rem; border-radius: 8px; border: 1px solid var(--principale); background: transparent; color: var(--principale); }
  .menu-toggle { display: inline-block; font: inherit; padding: .4rem .8rem; border-radius: 8px; border: 1px solid var(--principale); background: transparent; color: var(--principale); }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -999px; }
  td::before { content: attr(data-label) " : "; font-weight: 600; }
}

/* Direction artistique : matière nacrée décorative (jamais derrière un texte d'information sans surface unie), bordures fines, ombres discrètes. */
:root { --texture: none; --ombre: 0 6px 22px color-mix(in srgb, var(--texte) 9%, transparent); --serif: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif; --sans: Inter, system-ui, "Segoe UI", sans-serif; }
.sidebar { background: linear-gradient(180deg, color-mix(in srgb, var(--fond) 78%, transparent), color-mix(in srgb, var(--fond) 92%, transparent)), var(--texture) center/cover no-repeat; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brandmark { padding: .25rem .5rem 1rem; }
.brandmark__name { font-size: 1.9rem; line-height: 1.05; font-weight: 500; }
nav a { display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem; }
nav a svg { flex: none; color: var(--principale); }
nav a[aria-current="page"] { background: linear-gradient(135deg, var(--principale), color-mix(in srgb, var(--principale) 82%, #000)); box-shadow: var(--ombre); }
nav a[aria-current="page"] svg { color: #fff; }
.hero { position: relative; border-radius: 24px; padding: 2.25rem 2.5rem 2rem; margin-bottom: 1.5rem; border: 1px solid var(--ligne); box-shadow: var(--ombre); background: linear-gradient(100deg, color-mix(in srgb, var(--fond) 94%, transparent) 0%, color-mix(in srgb, var(--fond) 70%, transparent) 55%, transparent 100%), var(--texture) center/cover no-repeat, var(--surface); overflow: hidden; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 500; margin: 0 0 .4rem; }
.hero__lede { margin: 0 0 1rem; font-size: 1.15rem; max-width: 46ch; }
.hero__marque { display: flex; flex-direction: column; gap: .15rem; margin: 0; padding-top: .9rem; border-top: 2px solid var(--accent); width: max-content; }
.hero__nom { font-family: var(--serif); font-style: italic; letter-spacing: .22em; text-transform: uppercase; color: var(--principale); }
.hero__etiquette { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; opacity: .8; }
.studio__principal { min-width: 0; }
.panneau-carte { background: #FFFFFFD9; border: 1px solid var(--ligne); border-radius: 20px; padding: 1.5rem; box-shadow: var(--ombre); margin-bottom: 1rem; }
.panneau-carte h2 { font-size: 2rem; font-weight: 500; }
.panneau-carte__sous { margin: 0 0 1rem; opacity: .85; }
.tuiles { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; }
.tuile { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem; border-radius: 16px; background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--surface) 40%, #fff)); border: 1px solid var(--ligne); }
.tuile__nombre { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.bandeau-local { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .9rem 1.25rem; border-radius: 16px; border: 1px solid var(--ligne); background: #FFFFFFB3; }
.bandeau-local svg { color: var(--principale); }
.conseil-carte { background: #FFFFFFD9; border-radius: 20px; padding: 1.5rem; box-shadow: var(--ombre); }
.conseil-carte h2 { font-size: 2rem; font-weight: 500; }
.conseil-niveau { font-family: var(--serif); font-size: 1.1rem; }
.conseil-titre { font-weight: 500; font-size: 1.45rem; }
@media (max-width: 760px) { .sidebar { position: static; height: auto; } .hero { padding: 1.5rem 1.25rem; } }

/* Passe de fidélité : matière visible (voile limité à la zone du texte), surfaces pleines, lecture en Inter, cartes compactes. */
.hero { background: linear-gradient(100deg, color-mix(in srgb, var(--fond) 90%, transparent) 0%, color-mix(in srgb, var(--fond) 55%, transparent) 38%, transparent 62%), var(--texture) center/cover no-repeat, var(--surface); }
.panneau-carte, .conseil-carte, .bandeau-local { background: #FFFDFB; }
.conseil-carte { padding: 1.25rem 1.25rem 1rem; }
.conseil-carte h2 { margin-bottom: 0; }
.conseil-item { padding: .6rem 0; }
.conseil-niveau { font-family: var(--sans); font-size: .85rem; letter-spacing: .02em; }
.conseil-titre { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin: 0 0 .15rem; }
.conseil-details, .conseil-raison, .conseil-pourquoi, .conseil-lien, .conseil-lien-bouton { font-family: var(--sans); font-size: .95rem; }
.conseil-pourquoi, .conseil-lien, .conseil-lien-bouton { min-height: 44px; display: inline-flex; align-items: center; }
.conseil-raison { margin: 0 0 .25rem; opacity: .9; }
.lot-resume { margin: 0 0 .9rem; border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; background: #fff; }
.lot-resume__titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem; margin: 0; padding: .7rem 1rem; font-size: 1.35rem; font-weight: 500; background: linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--surface) 35%, #fff)); }
.lot-resume__titre a { color: var(--texte); text-decoration: none; }
.lot-resume__titre span { font-family: var(--sans); font-size: .9rem; opacity: .8; }
.lot-resume__lignes { list-style: none; margin: 0; padding: 0; }
.lot-resume__lignes li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem 1rem; border-top: 1px solid var(--ligne); }
.lot-resume__reseau { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.lot-resume__etats { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.lot-resume__etat { display: inline-flex; align-items: center; gap: .3rem; }
.tuile { padding: .75rem .9rem; }
.tuile__nombre { font-size: 2.2rem; }

.topbar .link { white-space: nowrap; }
@media (max-width: 760px) { .topbar { flex-wrap: wrap; } }

/* ===== Passe de fidélité n°2 : voiles nacrés sur toute la page, verre clair, titres calligraphiques, photo de la publication ===== */
@font-face { font-family: "Great Vibes"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/great-vibes-latin-400-normal.woff2) format("woff2"); }
:root { --script: "Great Vibes", "Cormorant Garamond", cursive; --verre: rgba(255, 252, 249, .66); --verre-bord: rgba(255, 255, 255, .85); --or: var(--accent); }
body { background: var(--fond); position: relative; min-height: 100vh; }
/* Matière fixe sous toute l'interface : texture du thème, puis voiles de lumière (haut gauche, bas droit) et reflet champagne. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 18% 4%, rgba(255,255,255,.78), transparent 70%),
    radial-gradient(ellipse 50% 40% at 96% 96%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.35) 46%, transparent 54%),
    linear-gradient(180deg, color-mix(in srgb, var(--fond) 55%, transparent), color-mix(in srgb, var(--fond) 25%, transparent)),
    var(--texture) center/cover no-repeat, var(--fond); }
.app { background: transparent; }
.main { background: transparent; }
.topbar { background: color-mix(in srgb, var(--fond) 35%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--verre-bord); }
.foot { background: transparent; border-top: 1px solid var(--ligne); }
.sidebar { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,250,246,.35)), var(--texture) left bottom/auto 160% no-repeat; backdrop-filter: blur(6px); border-right: 1px solid var(--verre-bord); box-shadow: 4px 0 30px color-mix(in srgb, var(--texte) 6%, transparent); }
.brandmark { align-items: center; text-align: center; padding: .5rem 0 1.25rem; }
.brandmark__name { font-family: var(--script); font-size: 2.3rem; font-weight: 400; line-height: 1.1; color: var(--principale); }
.brandmark__sub { font-family: var(--sans); letter-spacing: .3em; font-size: .68rem; }
nav a { font-size: 1.02rem; border-radius: 14px; }
nav a[aria-current="page"] { background: linear-gradient(135deg, color-mix(in srgb, var(--principale) 88%, #fff), color-mix(in srgb, var(--principale) 78%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--principale) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
nav a:hover:not([aria-current="page"]) { background: rgba(255,255,255,.55); }

/* Titres : calligraphiques (Cormorant Garamond en grand corps, trait fin), filet doré court dessous. */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.05; margin: 0; padding-bottom: .55rem; position: relative; color: color-mix(in srgb, var(--principale) 70%, var(--texte)); }
h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.6rem; height: 2px; background: var(--or); }
h2 { font-size: 2.1rem; line-height: 1.1; }
.sous-titre-serif, .note-italique { font-family: var(--serif); font-size: 1.3rem; color: color-mix(in srgb, var(--principale) 75%, var(--texte)); margin: 0 0 1rem; }
.note-italique { font-style: italic; text-align: center; font-size: 1.15rem; margin: .75rem 0 0; }
body { font-size: 1.02rem; }

/* Boutons : prune profond, libellé en serif, relief doux. */
.btn { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; border-radius: 14px; background: rgba(255,255,255,.55); }
.btn--primary { background: linear-gradient(135deg, color-mix(in srgb, var(--principale) 86%, #fff), color-mix(in srgb, var(--principale) 80%, #000)); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--principale) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.28); border-color: transparent; }
.btn--large { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.6rem; text-decoration: none; }

/* Cartes en verre clair : translucides, bord fin lumineux, ombre diffuse. */
.carte-verre, .panneau-carte, .conseil-carte, .card { background: var(--verre); backdrop-filter: blur(14px) saturate(1.15); border: 1px solid var(--verre-bord); border-radius: 22px; box-shadow: 0 10px 34px color-mix(in srgb, var(--texte) 9%, transparent), inset 0 1px 0 rgba(255,255,255,.9); }
.carte-verre { padding: 1.5rem; margin-bottom: 1.25rem; }
.carte-verre h2::after, .conseil-carte h2::after { content: ""; display: block; width: 2.2rem; height: 2px; background: var(--or); margin-top: .35rem; }

/* Studio */
.studio-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.studio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.carte-lot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.75rem; align-items: start; }
.carte-lot--vide { display: block; }
.carte-lot__corps h2 { font-size: 2.6rem; }
.vignette { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 35%, #fff)); box-shadow: 0 10px 28px color-mix(in srgb, var(--texte) 18%, transparent); display: grid; place-items: center; color: color-mix(in srgb, var(--principale) 55%, transparent); }
.vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vignette--vide img { display: none; }
.vignette:not(.vignette--vide) > svg { display: none; }
.vignette--grande { aspect-ratio: 3 / 4; }
.reseaux-lignes { list-style: none; margin: 0 0 1rem; padding: 0; }
.reseaux-lignes li { display: flex; align-items: center; gap: .8rem; padding: .35rem 0; }
.reseaux-lignes li span:first-of-type { flex: 1; font-size: 1.1rem; }
.reseaux-lignes--compact li { padding: .2rem 0; font-size: .95rem; }
.icone-reseau { flex: none; }
.repere { list-style: none; margin: 0 0 1rem; padding: .8rem 0 0; border-top: 1px solid var(--ligne); display: grid; gap: .45rem; }
.repere li { display: flex; align-items: center; gap: .6rem; }
.repere svg { color: var(--principale); flex: none; }
.repere small { opacity: .75; }
.puces-etats { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.puces-etats li { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .7rem; border-radius: 999px; background: var(--verre); border: 1px solid var(--verre-bord); }
.puces-etats strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1; }
.creations { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.creation { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.55); border: 1px solid var(--verre-bord); }
.creation .vignette { aspect-ratio: 1 / 1; align-self: start; }
.creation h3 { font-size: 1.5rem; margin: 0 0 .3rem; }
.creation .repere { border-top: 0; padding-top: .3rem; margin: 0; font-size: .92rem; }
.carte-auto h2 { font-size: 1.8rem; }
.pill { background: rgba(255,255,255,.6); border-radius: 999px; padding: .15rem .8rem; font-size: .9rem; }
.pill--A_RELIRE, .pill--A_VERIFIER_PAR_LE_CLIENT, .pill--A_FAIRE { background: color-mix(in srgb, var(--etat-avertissement) 10%, #fff); border-color: transparent; }
.pill--APPROUVE, .pill--PUBLIE, .pill--PUBLIE_ET_VERIFIE { border-color: transparent; background: color-mix(in srgb, var(--etat-confirmation) 11%, #fff); }
.pill--PROGRAMME { border-color: transparent; background: color-mix(in srgb, var(--principale) 12%, #fff); }
.pill--A_TRAITER { border-color: transparent; background: color-mix(in srgb, var(--etat-erreur) 9%, #fff); }

/* Conseiller dans la colonne secondaire */
.conseil-carte { padding: 1.4rem; margin-bottom: 1.25rem; }
.conseil-sous-titre { font-family: var(--sans); opacity: .8; }
@media (max-width: 980px) { .studio, .carte-lot { grid-template-columns: 1fr; } }
@media (max-width: 760px) { h2 { font-size: 1.8rem; } .creation { grid-template-columns: 5.5rem minmax(0, 1fr); } }

/* ===== Passe de fidélité n°3 :centre ivoire calme, matière sur les bords, prune plus profond, carte principale plus basse ===== */
/* Matière périphérique : le centre de l'écran reste ivoire, la texture et les reflets champagne vivent sur les bords. */
body::before {
  background:
    radial-gradient(ellipse 62% 58% at 56% 42%, var(--fond) 0%, color-mix(in srgb, var(--fond) 92%, transparent) 55%, transparent 100%),
    radial-gradient(ellipse 40% 30% at 100% 100%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 75%),
    radial-gradient(ellipse 30% 26% at 0% 100%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 75%),
    linear-gradient(118deg, transparent 40%, rgba(255,255,255,.28) 47%, transparent 53%),
    var(--texture) center/cover no-repeat, var(--fond);
}
/* Menu : zone de lecture largement unie, texture seulement en pied. */
.sidebar { overflow-x: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--fond) 96%, transparent) 0%, color-mix(in srgb, var(--fond) 94%, transparent) 62%, color-mix(in srgb, var(--fond) 55%, transparent) 100%), var(--texture) left bottom/auto 150% no-repeat; }
.brandmark { max-width: 100%; }
/* Nom de la marque : lisible, jamais inventé en calligraphie ; il passe à la ligne au lieu de déborder. */
.brandmark__name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; color: color-mix(in srgb, var(--principale) 80%, #000); }
.brandmark__sub { font-size: .62rem; letter-spacing: .26em; }
/* Profondeur : titres, boutons et sélection en prune profond ; tons doux réservés aux surfaces secondaires. */
h1 { color: color-mix(in srgb, var(--principale) 62%, var(--texte)); }
.btn--primary, nav a[aria-current="page"] { background: linear-gradient(135deg, color-mix(in srgb, var(--principale) 78%, #000), color-mix(in srgb, var(--principale) 58%, #000)); }
.btn--primary { box-shadow: 0 8px 18px color-mix(in srgb, var(--principale) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.22); }
nav a { color: var(--texte); }
/* Carte principale : plus basse, ratio du média préservé (aucun recadrage arbitraire). */
.carte-lot { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.4rem; padding: 1.25rem; }
.carte-lot__corps h2 { font-size: 2.1rem; }
.carte-lot__corps .sous-titre-serif { font-size: 1.15rem; margin-bottom: .6rem; }
.vignette--grande { aspect-ratio: 4 / 5; max-height: 19rem; width: 100%; justify-self: center; }
.vignette img { object-fit: contain; background: color-mix(in srgb, var(--surface) 60%, #fff); }
.reseaux-lignes { margin-bottom: .5rem; }
.repere { margin-bottom: .6rem; padding-top: .5rem; gap: .3rem; }
.note-italique { margin-top: .5rem; }
/* Conseiller : espaces resserrés, Inter pour l'information courante, serif pour les titres. */
.conseil-carte { padding: 1.1rem 1.25rem; }
.conseil-carte h2 { font-size: 1.9rem; }
.conseil-carte h2::after { margin-top: .25rem; }
.conseil-carte .conseil-sous-titre { margin: .35rem 0 .15rem; }
.conseil-item { padding: .45rem 0; }
.conseil-niveau { margin-bottom: .05rem; }
.conseil-titre { font-size: 1.25rem; }
.conseil-details { margin: 0 0 .1rem; }
.studio-entete { margin-bottom: 1rem; }
.puces-etats { margin-bottom: 1rem; }
.creations { grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); }
.creation, .creation__corps { min-width: 0; }
.creation__corps .reseaux-lignes li { flex-wrap: wrap; row-gap: .15rem; }
.creation__corps .reseaux-lignes li span:first-of-type { flex: 1 1 4rem; }
.pill { white-space: nowrap; }
/* Chiffres alignés (et non elzéviriens) dans les titres et compteurs : « 0 » reste un zéro lisible, « 1 » un un. */
h1, h2, h3, .tuile__nombre, .puces-etats strong, .sous-titre-serif, .conseil-titre, .conseil-niveau, .btn { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* ===== Page Publications : le contenu d'abord (vignette, titre), puis une ligne par réseau, détails techniques à la demande ===== */
.publications-page .carte-verre, .pub-carte { background: #FFFDFB; }
.filtres-pub { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.btn--filtre { font-family: var(--sans); font-size: .95rem; padding: .4rem .95rem; border-radius: 999px; }
.btn--filtre[aria-pressed="true"] { background: linear-gradient(135deg, color-mix(in srgb, var(--principale) 78%, #000), color-mix(in srgb, var(--principale) 58%, #000)); color: #fff; border-color: transparent; }
.btn--filtre small { opacity: .85; }
.pub-carte { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pub-carte .vignette { aspect-ratio: 4 / 5; width: 100%; }
.pub-carte__corps h2 { font-size: 1.7rem; margin: 0 0 .25rem; }
.pub-carte__extrait { margin: 0 0 .5rem; opacity: .85; }
.pub-lignes { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.pub-ligne { padding: .75rem 0 0; border-top: 1px solid var(--ligne); }
.pub-ligne__entete { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.pub-ligne__entete strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.pub-motif { font-size: .9rem; color: var(--etat-erreur); }
.pub-ligne__date, .pub-ligne__constat { margin: .25rem 0 0; }
.pub-ligne__constat { color: var(--texte); opacity: .9; }
.pub-ligne .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 .2rem; }
.pub-ligne .btn { text-decoration: none; display: inline-flex; align-items: center; font-size: 1.05rem; padding: .45rem 1rem; }
.pub-details summary { cursor: pointer; padding: .4rem 0; min-height: 44px; display: flex; align-items: center; }
.pub-details dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .25rem 0 .5rem; font-size: .92rem; }
.pub-details dt { opacity: .75; }
.pub-details dd { margin: 0; min-width: 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0; }
@media (max-width: 760px) { .pub-carte { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .8rem; } .pub-carte__corps h2 { font-size: 1.4rem; } }

/* ===== Dépôt et contrôle : une page simple, comme la maquette ===== */
.sur-titre { margin: 0 0 .25rem; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: color-mix(in srgb, var(--principale) 80%, #000); }
.depot-page > h1 { margin-bottom: .6rem; }
.zone-depot { text-align: center; border: 1.5px dashed color-mix(in srgb, var(--principale) 35%, transparent); background: #FFFDFB; display: grid; justify-items: center; gap: .35rem; }
.zone-depot > svg { color: var(--principale); padding: .6rem; width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 80%, #fff); }
.zone-depot__titre { font-family: var(--serif); font-size: 1.5rem; margin: .25rem 0 0; }
.zone-depot code { word-break: break-all; }
.depot-page .carte-verre { background: #FFFDFB; }
.reseaux-depot { margin: .5rem 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ligne); }
.reseaux-depot__titre { margin: 0 0 .4rem; opacity: .85; }
.reseaux-depot__choix { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.case--reseau { gap: .5rem; font-size: 1.05rem; }
.case--reseau .icone-reseau { width: 26px; height: 26px; }
.reseaux-depot__avenir { margin: .5rem 0 0; font-size: .92rem; opacity: .75; }
.lots-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.lots-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--ligne); }
.lots-liste li:first-child { border-top: 0; }
.lots-liste__nom { flex: 1 1 14rem; display: grid; min-width: 0; }
.lots-liste__nom.case { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; column-gap: .75rem; }
.lots-liste__nom.case > input { margin: 0; }
.lots-liste__nom.case > span { display: grid; min-width: 0; }
.lots-liste__nom strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.lots-liste__nom small { opacity: .8; }

/* Dépôt en trois étapes : Ajouter, Choisir les réseaux, Vérifier (surfaces ivoire unies, titres compacts). */
.depot-page > h1 { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.depot-page .sous-titre-serif { margin-bottom: 1rem; }
.etape { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 1.25rem; margin-bottom: .9rem; background: #FFFDFB; border: 1px solid var(--verre-bord); border-radius: 20px; box-shadow: 0 8px 26px color-mix(in srgb, var(--texte) 8%, transparent); }
.etape__numero { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-family: var(--serif); font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--principale) 78%, #000), color-mix(in srgb, var(--principale) 58%, #000)); }
.etape__corps h2 { font-size: 1.7rem; margin: 0 0 .3rem; }
.etape__corps p { margin: 0 0 .6rem; }
.etape .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .4rem; }
.etape .reseaux-depot { margin: 0; padding: 0; border: 0; }
.note-rassurante { margin: .75rem 0 0; font-style: italic; font-family: var(--serif); font-size: 1.15rem; }
.lots-deja { padding: 1rem 1.25rem; background: #FFFDFB; }
.lots-deja > summary { cursor: pointer; font-family: var(--serif); font-size: 1.4rem; min-height: 44px; display: flex; align-items: center; }
.etape__numero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff), color-mix(in srgb, var(--accent) 80%, #000)); }
.actions--centre { justify-content: center; margin-top: .75rem; }
.depot-vide { text-align: center; }
.depot-vide .msg { display: inline-block; background: transparent; padding: 0; margin: 0 0 .2rem; }
.reseaux-depot__choix { gap: .75rem; }
.case--reseau { padding: .5rem 1rem .5rem .75rem; border: 1px solid var(--ligne); border-radius: 14px; background: #fff; }
.btn[disabled] svg { opacity: .6; }
/* Action faite : le bouton passe au vert plein et reste net (pas estompé comme un bouton « pas encore disponible »). */
.btn.btn--fait, .btn.btn--fait[disabled] { background: var(--etat-confirmation); color: #fff; border-color: transparent; opacity: 1; cursor: default; }
.bandeau-etape { margin: 0 0 1rem; }
/* Réponse immédiate au clic, sur tous les boutons. */
.btn { transition: transform .12s ease, box-shadow .12s ease; }
.btn:active:not([disabled]) { transform: scale(.97); }
.btn--clic:not(.btn--fait) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--principale) 28%, transparent); }
/* Bouton principal pas encore activable : il garde sa couleur (juste adoucie) au lieu de devenir blanc délavé. */
.btn.btn--primary[disabled]:not(.btn--fait) { opacity: .7; }

/* ===== Ajouter une marque : champs empilés, étiquette au-dessus, même largeur ===== */
.formulaire-marque { display: grid; gap: 1rem; max-width: 40rem; margin-top: 1rem; }
.formulaire-marque[hidden] { display: none; }
.formulaire-marque > p { margin: 0; }
.formulaire-marque .champ { display: grid; gap: .35rem; }
.formulaire-marque .champ label { font-family: var(--sans); font-weight: 600; }
.formulaire-marque input[type="text"], .formulaire-marque select, .formulaire-marque textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .65rem .85rem; border: 1px solid var(--ligne); border-radius: 12px; background: #fff; color: var(--texte); min-height: 44px; }
.formulaire-marque textarea { resize: vertical; min-height: 5.5rem; }
.formulaire-marque input:focus-visible, .formulaire-marque select:focus-visible, .formulaire-marque textarea:focus-visible { outline: 2px solid var(--principale); outline-offset: 1px; }
.formulaire-marque .champ small { opacity: .8; }
.formulaire-marque .case { display: flex; align-items: center; gap: .6rem; }
.formulaire-marque .case input { width: 1.2rem; height: 1.2rem; }
.formulaire-marque .actions { display: flex; gap: .6rem; }

/* Création de vidéos : frise du montage, avancement, éditeur de commande */
.frise { display: grid; gap: .35rem; overflow-x: auto; padding-bottom: .25rem; }
.frise__rangee { display: grid; grid-template-columns: 6.2rem minmax(560px, 1fr); align-items: center; gap: .6rem; }
.frise__nom { font-size: .85rem; opacity: .8; }
.frise__piste { position: relative; height: 2rem; background: color-mix(in srgb, var(--texte) 6%, transparent); border-radius: 8px; }
.frise__rangee--echelle .frise__piste { height: 1.1rem; background: none; }
.frise__repere { position: absolute; top: 0; font-size: .72rem; opacity: .65; transform: translateX(-50%); }
.frise__bloc { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; padding: 0 .4rem; font-size: .75rem; color: #fff; white-space: nowrap; box-shadow: 0 1px 3px color-mix(in srgb, var(--texte) 25%, transparent); }
.frise__bloc span { overflow: hidden; text-overflow: ellipsis; }
.frise__bloc--plan { background: var(--principale); }
.frise__bloc--ecran { background: #3E7C8A; }
.frise__bloc--voix { background: #B2603F; }
.frise__bloc--fin { background: #7A4F00; }
.frise__bloc--st { background: #5B6F52; }
.etapes-video { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.etape-video { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border: 1px solid var(--ligne); border-radius: 12px; background: #FFFDFB; }
.etape-video .case { display: flex; align-items: flex-start; gap: .6rem; }
.etape-video small { display: block; opacity: .75; }
.etape-video--faite { background: color-mix(in srgb, var(--etat-confirmation) 6%, #fff); }
.editeur-json { width: 100%; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; line-height: 1.45; border: 1px solid var(--ligne); border-radius: 12px; padding: .75rem; background: #FFFDFB; color: var(--texte); }
.videos-page textarea, .videos-page input[type="text"] { width: 100%; border: 1px solid var(--ligne); border-radius: 12px; padding: .55rem .75rem; min-height: 44px; background: #FFFDFB; font: inherit; }
.journal { white-space: pre-wrap; font-size: .8rem; max-height: 14rem; overflow: auto; background: #FFFDFB; border-radius: 10px; padding: .6rem; }

/* « Commencer ici » : le point de départ visible de tout nouveau bureau */
.commencer-ici { display: flex; align-items: center; gap: .7rem; margin: .2rem .6rem 1rem; padding: .8rem 1rem; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--principale), color-mix(in srgb, var(--principale) 70%, #000)); box-shadow: 0 6px 18px color-mix(in srgb, var(--principale) 35%, transparent); }
.commencer-ici strong { display: block; font-size: 1.02rem; }
.commencer-ici small { display: block; opacity: .85; font-size: .78rem; line-height: 1.25; }
.commencer-ici:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav__depart small { color: var(--principale); font-weight: 600; }

/* Fenêtre de prompt */
.fenetre-prompt .etape__numero { display: grid; place-items: center; }
.fenetre-prompt textarea, .fenetre-prompt input[type="text"] { width: 100%; border: 1px solid var(--ligne); border-radius: 12px; padding: .6rem .8rem; background: #FFFDFB; font: inherit; color: var(--texte); }
.fenetre-prompt textarea { min-height: 9rem; resize: vertical; line-height: 1.45; }
.champ--ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .8rem; }
.texte-propose { white-space: pre-wrap; margin: .3rem 0; padding: .6rem .8rem; border-radius: 10px; background: #FFFDFB; border: 1px solid var(--ligne); }
@media (max-width: 640px) { .champ--ligne { grid-template-columns: 1fr; } }

/* Bandeau temporaire « Configurez votre marque » */
.bandeau-depart { margin: 0 0 1.2rem; padding: 1rem 1.25rem; }
.bandeau-depart h2 { margin: 0 0 .6rem; }
.pas-depart { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pas-depart li { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .5rem .75rem; border-radius: 12px; background: #FFFDFB; border: 1px solid var(--ligne); }
.pas-depart--fait { opacity: .8; }
.pas-depart__n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--principale); color: #fff; font-size: .85rem; }
.pas-depart__choix { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.carte-lien-creation { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; justify-content: space-between; }
.trois-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.trois-etapes li { padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--ligne); background: #FFFDFB; }
.trois-etapes li[aria-current="step"] { border-color: var(--principale); box-shadow: 0 4px 14px color-mix(in srgb, var(--principale) 25%, transparent); }
.trois-etapes small { display: block; opacity: .8; margin-top: .2rem; }
.copie-ligne { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .25rem 0 .75rem; }
@media (max-width: 720px) { .trois-etapes { grid-template-columns: 1fr; } .pas-depart__choix { margin-left: 0; } }

/* Fabrication Higgsfield */
.taches-fab { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.tache-fab { padding: .7rem .9rem; border: 1px solid var(--ligne); border-radius: 14px; background: #FFFDFB; display: grid; gap: .4rem; }
.tache-fab__tete { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.tache-fab__tete small { opacity: .7; margin-left: auto; }
.tache-fab textarea, .fabrication input[type="text"] { width: 100%; border: 1px solid var(--ligne); border-radius: 10px; padding: .5rem .7rem; font: inherit; background: #fff; color: var(--texte); }
.bloc-higgsfield { padding: 1rem 1.2rem; margin: .8rem 0; }

/* Calendrier : grille de semaine sur ordinateur, liste chronologique sur mobile. Aucun déplacement : un horaire approuvé ne change jamais en silence. */
.calendrier-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; align-items: start; }
.jour-cal { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: .6rem .6rem .8rem; min-width: 0; }
.jour-cal h2 { font-size: .95rem; margin: 0 0 .5rem; text-transform: capitalize; }
.jour-cal__vide { opacity: .6; font-size: .85rem; margin: 0; }
.jour-cal__taches { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.carte-cal { background: #FFFDFB; border: 1px solid var(--ligne); border-radius: 12px; padding: .5rem .55rem; display: grid; gap: .3rem; min-width: 0; }
.carte-cal__tete { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.carte-cal__tete .icone-reseau { width: 22px; height: 22px; }
.carte-cal__titre { margin: 0; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.carte-cal small { opacity: .7; font-size: .72rem; overflow-wrap: anywhere; }
.carte-cal .btn { font-size: .8rem; padding: .25rem .5rem; min-height: 36px; }
@media (max-width: 1100px) { .calendrier-grille { grid-template-columns: 1fr; } .jour-cal h2 { font-size: 1rem; } }

.btn--large { padding: 0.9rem 1.6rem; font-size: 1.05rem; }
.meta-connexion { margin: 0.5rem 0 1rem; }

.miniatures { display: flex; flex-wrap: wrap; gap: .75rem; margin: .5rem 0 .75rem; }
.miniature { margin: 0; width: 150px; }
.miniature img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); }
.miniature figcaption { font-size: .85rem; margin-top: .3rem; overflow-wrap: anywhere; }
.miniature figcaption small { display: block; opacity: .75; font-size: .75rem; }
/* Création d'images */
.videos-page select, .videos-page input[type="number"] { width: 100%; border: 1px solid var(--ligne); border-radius: 12px; padding: .55rem .75rem; min-height: 44px; background: #FFFDFB; font: inherit; color: var(--texte); }
.champ--case { display: flex; align-items: flex-start; gap: .6rem; }
.champ--case input[type="checkbox"] { width: 1.3rem; height: 1.3rem; margin-top: .15rem; flex: 0 0 auto; }
.image-generee { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 14px; border: 1px solid var(--ligne); background: #fff; }

/* ===== Élégance (31/10) : boutons discrets en pastille, un seul bouton plein par écran, scènes repliables ===== */
.btn, .btn--large, .pub-ligne .btn { font-family: var(--sans); font-size: .85rem; font-weight: 500; padding: .3rem .9rem; min-height: 0; border-radius: 999px; gap: .4rem; box-shadow: none; }
.btn--primary, .btn--large.btn--primary { box-shadow: none; }
.btn svg { width: 16px; height: 16px; }
.actions { gap: .5rem; margin-top: .8rem; }
.etapes-fil { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; margin: 0 0 1.2rem; }
.etapes-fil > span { display: inline-flex; align-items: center; gap: .35rem; opacity: .6; }
.etapes-fil > span b { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--ligne); font-size: .75rem; }
.etapes-fil > span.on { opacity: 1; }
.etapes-fil > span.on b { background: var(--principale); color: #fff; }
.etapes-fil > i { flex: 0 0 1.4rem; height: 1px; background: var(--ligne); }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.scene { border: 1px solid var(--ligne); border-radius: 12px; background: rgba(255,255,255,.6); overflow: hidden; }
.scene > summary { list-style: none; display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .6rem .9rem; cursor: pointer; }
.scene > summary::-webkit-details-marker { display: none; }
.scene__num { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface); color: var(--principale); font-weight: 600; font-size: .8rem; }
.scene__titre { font-weight: 600; display: block; }
.scene__extrait { display: block; font-size: .84rem; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene__corps { padding: .2rem .9rem .9rem 3.4rem; display: grid; gap: .6rem; }
.scene__corps label { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; opacity: .65; display: block; margin-bottom: .15rem; }
.lien-discret { font: inherit; font-size: .82rem; background: none; border: 0; color: var(--principale); text-decoration: underline; cursor: pointer; padding: 0; }

.select-discret { font: inherit; font-size: .85rem; max-width: 100%; margin-bottom: .5rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--bordure, rgba(0,0,0,.2)); background: transparent; color: inherit; }
.fabrication-tout { margin: .75rem 0; }

/* Respiration entre un libellé et son champ, dans tous les formulaires et fenêtres */
.brandpick { gap: .45rem; }
.champ { display: grid; gap: .45rem; }
label + input:not([type="checkbox"]):not([type="radio"]), label + select, label + textarea { margin-top: .4rem; }
.scene__corps label { margin-bottom: .4rem; }

/* Statuts WhatsApp : le texte garde ses retours à la ligne et ses liens longs ; le bloc de validation respire (nom, case, bouton bien séparés). */
.texte-statut { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.bloc-validation { display: grid; gap: 1rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--ligne); }
.bloc-validation .champ input[type="text"] { width: 100%; max-width: 26rem; }
.bloc-validation .case { align-items: flex-start; gap: .6rem; }
.bloc-validation .case input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: 0 0 auto; }

/* Statuts WhatsApp : aperçu du visuel du post (image ou vidéo) joint au statut. */
.apercu-statut { display: flex; flex-wrap: wrap; gap: .9rem; margin: .75rem 0 1rem; }
.apercu-statut figure { margin: 0; display: grid; gap: .4rem; justify-items: start; }
.apercu-statut img, .apercu-statut video { max-height: 300px; max-width: 100%; border-radius: 12px; border: 1px solid var(--ligne); }
.apercu-statut figcaption { font-size: .9rem; }
/* Reprogrammer une seule publication : bloc bien visible sous la publication, quand et qui séparés. */
.reprog-une { margin-top: .9rem; padding: .9rem 1.1rem; border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); }
.reprog-une > summary { cursor: pointer; font-weight: 600; }
.reprog-une__quand { display: flex; flex-wrap: wrap; gap: .75rem; margin-left: 1.8rem; }
.pub-ligne--A_TRAITER .reprog-une { border-color: var(--erreur, #b3414b); }
/* Mon double */
.double-page { display: grid; gap: 1rem; }
.double-etapes { display: flex; flex-wrap: wrap; gap: .5rem; }
.double-etapes .btn[aria-current="step"] { background: var(--principale); color: #fff; }
.double-page .deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.double-page .carte-verre h3 small { opacity: .7; font-weight: 400; }
.double-page .note { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr 3rem; gap: .75rem; align-items: center; margin: .35rem 0; }
.double-page .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.double-page .chip { font: inherit; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--principale); background: transparent; color: var(--principale); cursor: pointer; }
.double-page .chip[aria-pressed="true"] { background: var(--principale); color: #fff; }
.double-page .chip[disabled] { opacity: .5; cursor: not-allowed; }
.double-page .pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--ligne); font-size: .9rem; }
.double-page .pill--ok { border-color: var(--etat-confirmation); color: var(--etat-confirmation); }
.double-apercu { width: 100%; max-width: 28rem; aspect-ratio: 4 / 3; background: #0001; border-radius: 14px; }
.double-lecteur { width: 100%; max-width: 28rem; }
.double-consigne { white-space: pre-wrap; font: inherit; background: color-mix(in srgb, var(--principale) 6%, var(--fond)); padding: .8rem 1rem; border-radius: 12px; }
.double-page textarea, .double-page input[type="text"], .double-page input[type="number"] { width: 100%; max-width: 32rem; font: inherit; }
@media (max-width: 860px) { .double-page .deux-colonnes { grid-template-columns: 1fr; } .double-page .note { grid-template-columns: 1fr 3rem; } .double-page .note label { grid-column: 1 / -1; } }
.double-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; margin: .6rem 0; }
.double-vignettes img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--ligne); }
/* Images d'essai numérotées : on en garde une seule. */
.double-vignettes--choix { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .9rem; }
.double-vignette { position: relative; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.double-vignette__voir { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; display: block; }
.double-vignette__voir img { display: block; }
.double-vignette__numero { position: absolute; top: .45rem; left: .45rem; z-index: 1; min-width: 2rem; height: 2rem; padding: 0 .4rem; display: grid; place-items: center; border-radius: 999px; background: #1f1730; color: #fff; font-weight: 700; font-size: 1rem; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.double-vignette figcaption .btn { width: 100%; }
.double-vignette--gardee .double-vignette__voir img { outline: 4px solid #2e7d4f; outline-offset: 2px; }
.double-vignette--gardee .double-vignette__numero { background: #2e7d4f; }
.double-vignette--grande { grid-column: 1 / -1; max-width: 34rem; }
.double-vignette--grande .double-vignette__voir { cursor: zoom-out; }
.double-vignettes--voix { grid-template-columns: 1fr; }
.double-vignettes--voix audio { width: 100%; max-width: 28rem; }
.double-vignettes--video { grid-template-columns: minmax(0, 18rem); }
.double-vignettes--video video { width: 100%; border-radius: 12px; }

/* Lire mon site */
.charte-site-page { display: grid; gap: 1rem; }
.charte-site-page .deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.charte-site-page .elt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start; border: 1px solid var(--ligne); border-radius: 12px; padding: .6rem .8rem; margin: .4rem 0; background: #FFFDFB; }
.charte-site-page .elt .corps { display: grid; gap: .15rem; min-width: 0; }
.charte-site-page .src { opacity: .7; font-size: .8rem; overflow-wrap: anywhere; }
.charte-site-page .nuances { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.charte-site-page .teinte { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--ligne); border-radius: 999px; padding: .15rem .7rem .15rem .15rem; font-size: .85rem; }
.charte-site-page .teinte i { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid var(--ligne); display: block; }
.charte-site-page .conflit { border: 1px solid var(--etat-avertissement); border-radius: 12px; padding: .7rem .9rem; margin: .5rem 0; }
.charte-site-page .bilan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.charte-site-page .bilan div { border: 1px solid var(--ligne); border-radius: 12px; padding: .5rem .8rem; }
.charte-site-page .bilan strong { font-size: 1.4rem; margin-right: .3rem; }
.charte-site-page .sources { display: grid; gap: .5rem; margin: .5rem 0; }
.charte-site-page input[type="text"], .charte-site-page textarea { width: 100%; max-width: 36rem; font: inherit; }
@media (max-width: 860px) { .charte-site-page .deux-colonnes, .charte-site-page .bilan { grid-template-columns: 1fr; } }

/* Atelier des offres */
.offres-page { display: grid; gap: 1rem; }
.offres-onglets { display: flex; flex-wrap: wrap; gap: .5rem; }
.offres-form { display: grid; gap: .8rem; }
.offres-page .field { display: grid; gap: .3rem; font-weight: 600; }
.offres-page .field small { font-weight: 400; opacity: .8; }
.offres-page input[type="text"], .offres-page input[type="number"], .offres-page select, .offres-page textarea { width: 100%; max-width: 40rem; font: inherit; padding: .5rem .65rem; border: 1px solid var(--ligne); border-radius: 10px; background: #FFFDFB; color: inherit; }
.offres-page textarea { min-height: 5.5rem; resize: vertical; }
.offres-page .toggle { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.offres-page .line { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; padding: .4rem 0; border-top: 1px solid var(--ligne); }
.offres-metriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; margin: .6rem 0; }
.offres-metriques .metric { display: grid; gap: .2rem; padding: .8rem; border: 1px solid var(--ligne); border-radius: 14px; background: #FFFDFB; }
.offres-metriques .metric strong { font-family: var(--serif); font-size: 1.4rem; }
.offres-points, .offres-propositions { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.offres-points li { padding-top: .6rem; border-top: 1px solid var(--ligne); }
.offres-proposition { display: grid; gap: .4rem; padding: .9rem; border: 1px solid var(--ligne); border-radius: 14px; background: #FFFDFB; }
.offres-avant-apres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.offres-avant-apres > div { padding: .6rem; border: 1px dashed var(--ligne); border-radius: 10px; }
@media (max-width: 700px) { .offres-avant-apres { grid-template-columns: 1fr; } }
.offres-bloc { display: grid; gap: .6rem; padding: .8rem 0; border-top: 1px solid var(--ligne); }
.offres-lignes { display: grid; gap: .6rem; }
.offres-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .6rem; align-items: end; padding: .7rem; border: 1px dashed var(--ligne); border-radius: 12px; }
.offres-ligne .field { margin: 0; }
.offres-diag-champ { display: grid; gap: .2rem; margin: .5rem 0; }
.offres-valeur h4 { margin: .6rem 0 0; font-family: var(--serif); }

/* Lots de variantes */
.variantes-page { display: grid; gap: 1rem; }
.variantes-page .deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.variantes-page .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.variantes-page .chip { font: inherit; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--principale); background: transparent; color: var(--principale); cursor: pointer; }
.variantes-page .chip[aria-pressed="true"] { background: var(--principale); color: #fff; }
.variantes-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .9rem; margin: .8rem 0; }
.variantes-page .variante { border: 1px solid var(--ligne); border-radius: 16px; padding: .9rem; background: #FFFDFB; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.variantes-page .variante header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.variantes-page .src { opacity: .7; font-size: .8rem; }
.variantes-page .tableau { overflow-x: auto; border: 1px solid var(--ligne); border-radius: 12px; }
.variantes-page table { width: 100%; border-collapse: collapse; }
.variantes-page th, .variantes-page td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.variantes-page .verdict { border: 1px solid var(--ligne); border-radius: 14px; padding: .9rem 1rem; margin: .8rem 0; display: grid; gap: .3rem; }
.variantes-page .verdict--gagnant { border-color: var(--etat-confirmation); }
.variantes-page .verdict--trop_tot, .variantes-page .verdict--indication, .variantes-page .verdict--fin_sans_conclusion { border-color: var(--etat-avertissement); }
.variantes-page textarea, .variantes-page input[type="text"], .variantes-page select { width: 100%; max-width: 40rem; font: inherit; }
@media (max-width: 860px) { .variantes-page .deux-colonnes { grid-template-columns: 1fr; } }

/* Mon double : de l'air entre le titre, le texte, les champs et les boutons d'une carte ; une carte n'en contient jamais une autre. */
.double-page .carte-verre { display: flex; flex-direction: column; gap: .85rem; padding: 1.5rem 1.6rem; margin-bottom: 1.4rem; }
.double-page .carte-verre > * { margin-top: 0; margin-bottom: 0; }
.double-page .carte-verre .champ + .champ { margin-top: 0; }
.double-page .carte-verre ul { padding-left: 1.2rem; }
.double-page .carte-verre ul.lots-liste { padding-left: 0; }
.double-page .carte-verre .actions { margin-top: .2rem; }
.double-page input[type="file"] { max-width: 100%; }

/* Mon double, étape 3 : marche à suivre, avec l'étape en cours mise en valeur ; raisons affichées sous les éléments grisés. */
.double-page .marche { margin: 0; padding: .8rem 1rem .8rem 2.2rem; border-radius: 14px; background: color-mix(in srgb, var(--principale) 7%, transparent); display: grid; gap: .35rem; font-size: .92rem; }
.double-page .marche li { opacity: .65; }
.double-page .marche li.marche__ici { opacity: 1; font-weight: 600; color: var(--principale); }
.double-page input[type="range"][disabled] { opacity: .45; cursor: not-allowed; }
.double-page .note output { font-weight: 600; min-width: 2.5rem; text-align: right; }
.double-vignette--gardee figcaption .btn, .double-vignette--gardee figcaption .btn[disabled] { background: #2e7d4f; color: #fff; border-color: transparent; opacity: 1; cursor: default; }

/* Barres de progression : partout où le bureau crée ou calcule quelque chose. */
.barre-progression { display: block; width: 100%; max-width: 34rem; height: .65rem; margin: .35rem 0 .9rem; accent-color: var(--principale); }
