/* Page d'accueil publique du club (direction A « Banque privée »).
   Feuille autonome : mêmes polices locales et mêmes couleurs que club.css (aucun appel à Google ni à un CDN),
   sans ses règles de mise en page, propres à l'espace membre. Colonne éditoriale à filets fins, une bande de
   portraits désaturés comme seul moment fort ; pas de cartes arrondies ni de pastilles. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-opsz-normal.f94a697b1650.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-ext-opsz-normal.2e01db0610b1.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-opsz-italic.e97067eb043b.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-latin-ext-opsz-italic.43736a955d60.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-wght-normal.fa41c43a3d8e.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-ext-wght-normal.1ff13d113ba4.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Couleurs de club.css */
  --papier: #fbfbf9;
  --blanc: #ffffff;
  --encre: #14171c;
  --pierre: #4a5160;
  --filet: #e3e2dd;
  --pointille: #bebdb6;
  --prusse: #1e3a6e;
  --prusse-pale: #eef1f6;
  --alerte: #8a4b0f;
  --alerte-pale: #f6ede2;
  --danger: #9b2c2c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --largeur: 1180px;
  /* Outils d'édition (vus seulement par l'équipe) */
  --edition: #2f6fdb;
  --edition-pale: rgba(47, 111, 219, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--papier); color: var(--encre); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--prusse); outline-offset: 3px; }
img { max-width: 100%; }
.cadre {
  max-width: var(--largeur); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .cadre { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-weight: 300; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
.surtitre {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--prusse);
}
.surtitre::before { content: ""; flex: none; width: 40px; height: 1px; background: currentColor; }
.surtitre:empty::before { display: none; }
.chapo { font-size: 19px; line-height: 1.55; color: var(--pierre); max-width: 34em; }
.texte { max-width: 38em; color: var(--pierre); }
.riche a, .lien { color: var(--prusse); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  background: var(--encre); color: var(--papier); border: 1px solid var(--encre); cursor: pointer; border-radius: 0;
}
.bouton:hover { background: var(--prusse); border-color: var(--prusse); color: var(--papier); }
.bouton.secondaire { background: transparent; color: var(--encre); border-color: var(--pointille); }
.bouton.secondaire:hover { border-color: var(--encre); color: var(--encre); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note-fermee { font-size: 14px; color: var(--pierre); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: var(--papier); border-bottom: 1px solid var(--filet); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.marque svg { width: 28px; height: 28px; }
.marque span { font-family: var(--serif); font-size: 23px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--pierre); }
.nav a:hover { color: var(--encre); }
.nav .espace { color: var(--encre); font-weight: 500; white-space: nowrap; }
.nav .ancre { display: none; }
@media (min-width: 900px) { .nav .ancre { display: inline; } }
.entete .bouton { min-height: 38px; padding: 0 16px; font-size: 11.5px; color: var(--papier); }
.entete .bouton .court { display: none; }
@media (max-width: 560px) {
  .entete .cadre { gap: 12px; }
  .marque { gap: 8px; }
  .marque span { font-size: 18px; white-space: nowrap; }
  .nav { gap: 14px; font-size: 13px; }
  .entete .bouton { padding: 0 12px; min-height: 34px; font-size: 10.5px; }
  .entete .bouton .long { display: none; }
  .entete .bouton .court { display: inline; }
}
@media (max-width: 360px) { .marque span { display: none; } }

/* Ouverture */
.ouverture .cadre { display: grid; gap: 40px; padding-block: 72px 56px; }
@media (min-width: 980px) { .ouverture .cadre { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 72px; align-items: end; padding-block: 104px 72px; } }
.ouverture .gauche { display: grid; gap: 28px; min-width: 0; }
.ouverture h1 em { font-style: italic; color: var(--prusse); }
.ouverture .surtitre { font-size: clamp(13px, 1.2vw, 15px); }

/* Ouverture avec photo : la photo occupe tout le haut de page, voile bleu nuit, texte clair.
   La photo est passée en noir et blanc par le site, quelle que soit l'image choisie. */
.ouverture { position: relative; isolation: isolate; }
.ouverture.avec-photo { --clair: #f5f4ef; --clair-doux: rgba(245, 244, 239, .78); --clair-filet: rgba(245, 244, 239, .2);
  color: var(--clair); background: #0b1220; overflow: hidden; min-height: min(92vh, 900px); display: flex; align-items: flex-end; }
.ouverture.avec-photo > .cadre { width: 100%; }
.fond-ouverture { margin: 0; }
.avec-photo .fond-ouverture { position: absolute; inset: 0; z-index: -2; }
.avec-photo .fond-ouverture img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block;
  filter: grayscale(1) contrast(1.1) brightness(.92); transform-origin: 60% 50%;
  animation: ouverture-zoom 26s cubic-bezier(.22, .61, .36, 1) both;
}
.avec-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 14, 28, .9) 0%, rgba(8, 14, 28, .72) 42%, rgba(12, 24, 48, .35) 100%),
    linear-gradient(0deg, rgba(8, 14, 28, .85) 0%, rgba(8, 14, 28, 0) 55%),
    linear-gradient(rgba(30, 58, 110, .28), rgba(30, 58, 110, .28));
}
.avec-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.avec-photo h1 { color: var(--clair); }
.avec-photo h1 em { color: #b9c8e6; }
.avec-photo .surtitre { color: #b9c8e6; }
.avec-photo .chapo, .avec-photo .note-fermee { color: var(--clair-doux); }
.avec-photo .bouton { background: var(--clair); color: var(--encre); border-color: var(--clair); }
.avec-photo .bouton:hover { background: #dfe6f3; border-color: #dfe6f3; color: var(--encre); }
.avec-photo .bouton.secondaire { background: transparent; color: var(--clair); border-color: rgba(245, 244, 239, .45); }
.avec-photo .bouton.secondaire:hover { border-color: var(--clair); }
.avec-photo .registre { border-top-color: rgba(245, 244, 239, .6); }
.avec-photo .registre dl > div { border-bottom-color: var(--clair-filet); }
.avec-photo .registre dt { color: rgba(245, 244, 239, .62); }
.avec-photo .riche a { color: var(--clair); }
/* En édition sans photo : simple pavé « Remplacer la photo » en haut à droite. */
.ouverture:not(.avec-photo) .fond-ouverture { position: absolute; top: 16px; right: 16px; z-index: 3; }
body:not(.edition) .ouverture:not(.avec-photo) .fond-ouverture { display: none; }

/* Entrée en scène : surtitre, titre, texte et repères montent l'un après l'autre. */
@keyframes ouverture-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes ouverture-entree { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ouverture-filet { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body:not(.edition) .ouverture .gauche > *, body:not(.edition) .ouverture .registre dl > div {
  animation: ouverture-entree .9s cubic-bezier(.22, .61, .36, 1) both;
}
body:not(.edition) .ouverture .gauche > :nth-child(2) { animation-delay: .12s; }
body:not(.edition) .ouverture .gauche > :nth-child(3) { animation-delay: .28s; }
body:not(.edition) .ouverture .gauche > :nth-child(n+4) { animation-delay: .42s; }
body:not(.edition) .ouverture .registre dl > div:nth-child(1) { animation-delay: .5s; }
body:not(.edition) .ouverture .registre dl > div:nth-child(2) { animation-delay: .58s; }
body:not(.edition) .ouverture .registre dl > div:nth-child(3) { animation-delay: .66s; }
body:not(.edition) .ouverture .registre dl > div:nth-child(n+4) { animation-delay: .74s; }
body:not(.edition) .ouverture .surtitre::before { transform-origin: left; animation: ouverture-filet 1.1s .2s cubic-bezier(.22, .61, .36, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .ouverture *, .ouverture *::before, .avec-photo .fond-ouverture img { animation: none !important; }
}
.registre { border-top: 1px solid var(--encre); min-width: 0; }
.registre dl { margin: 0; }
.registre dl > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--filet); font-size: 14px; }
.registre dt { color: var(--pierre); }
.registre dd { margin: 0; font-family: var(--serif); font-size: 17px; font-style: italic; }

/* Bande de portraits */
.bande { border-block: 1px solid var(--filet); background: var(--blanc); }
.bande .cadre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding-block: 0; }
.bande figure { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--encre); max-width: 100%; }
@media (min-width: 720px) { .bande figure { aspect-ratio: 5 / 4; } }
.bande img, .portrait img, .photo-section img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.06) brightness(1.04); display: block; }
.bande figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: #f4f3ef;
  background: linear-gradient(to top, rgba(10, 12, 15, .78), rgba(10, 12, 15, 0)); font-size: 12px; letter-spacing: .06em;
}
.bande figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: 0; }
@media (max-width: 480px) { .bande figcaption { padding: 28px 8px 8px; font-size: 10.5px; } .bande figcaption strong { font-size: 14px; } }

/* Avertissement */
.risques { background: var(--alerte-pale); border-bottom: 1px solid var(--filet); }
.risques .cadre { display: grid; gap: 6px; padding-block: 18px; font-size: 14px; }
@media (min-width: 720px) { .risques .cadre { grid-template-columns: 11em minmax(0, 1fr); gap: 24px; } }
.risques .titre-risques { color: var(--alerte); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding-top: 2px; }
.risques p { color: var(--encre); }

/* Sections */
.bloc { border-bottom: 1px solid var(--filet); }
.bloc > .cadre { display: grid; gap: 40px; padding-block: 80px; }
@media (min-width: 980px) { .bloc > .cadre { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 72px; padding-block: 104px; } }
.titre-bloc { display: grid; gap: 16px; align-content: start; min-width: 0; }
.corps-bloc { display: grid; gap: 0; min-width: 0; align-content: start; }
.photo-section { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--encre); position: relative; max-width: 40em; }

.volet { display: grid; gap: 10px; padding-block: 28px; border-top: 1px solid var(--filet); }
.volet:first-child { border-top: 1px solid var(--encre); padding-top: 24px; }
@media (min-width: 720px) { .volet { grid-template-columns: 15em minmax(0, 1fr); gap: 32px; } }
.volet p { color: var(--pierre); max-width: 36em; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: etape; min-width: 0; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 16px; padding-block: 24px; border-top: 1px solid var(--filet); }
.etapes li:first-child { border-top: 1px solid var(--encre); }
.etapes li::before { content: counter(etape); font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--prusse); font-variant-numeric: lining-nums; }
.etapes h3 { margin-bottom: 6px; }
.etapes p { color: var(--pierre); max-width: 36em; }

.citation { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; max-width: 26em; padding-bottom: 32px; }
.valeurs { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--encre); }
@media (min-width: 720px) { .valeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.valeur { display: grid; gap: 8px; padding-block: 24px; border-bottom: 1px solid var(--filet); align-content: start; }
.valeur p { color: var(--pierre); font-size: 15px; }

.equipe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 640px) { .equipe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.membre { display: grid; gap: 14px; align-content: start; min-width: 0; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--encre); max-width: 100%; }
.membre .role { font-size: 13.5px; color: var(--pierre); }
.membre blockquote { margin: 0; padding-top: 14px; border-top: 1px solid var(--filet); font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; }
.membre .linkedin { font-size: 13px; justify-self: start; }

.appel { background: var(--encre); color: var(--papier); }
.appel .cadre { display: grid; gap: 28px; padding-block: 88px; }
@media (min-width: 980px) { .appel .cadre { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 72px; } }
.appel .texte-appel { display: grid; gap: 18px; min-width: 0; }
.appel h2 { font-weight: 300; font-size: clamp(32px, 4.4vw, 54px); }
.appel p { color: color-mix(in srgb, var(--papier) 72%, var(--encre)); max-width: 32em; }
.appel .riche a { color: var(--papier); }
.appel .bouton { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.appel .bouton:hover { background: var(--prusse-pale); border-color: var(--prusse-pale); color: var(--encre); }
.appel .bouton.secondaire { background: transparent; color: var(--papier); border-color: color-mix(in srgb, var(--papier) 40%, transparent); }

.criteres .releve { margin: 0; border-top: 1px solid var(--encre); }
.criteres .releve > div { display: grid; grid-template-columns: 14em minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--filet); font-size: 14.5px; }
.criteres .releve dt { color: var(--pierre); }
.criteres .releve dd { margin: 0; }

/* Adhésion unique (bloc automatique, lu dans Réglages › Adhésions) */
.adhesion-publique .releve { margin: 0; border-top: 1px solid var(--encre); }
.adhesion-publique .releve > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--filet); }
.adhesion-publique .releve dt { color: var(--pierre); font-size: 14.5px; }
.adhesion-publique .releve dd { margin: 0; font-family: var(--serif); font-size: 26px; font-variant-numeric: lining-nums; }
.adhesion-publique .releve > div + div dd { font-family: inherit; font-size: 15px; }
.adhesion-publique .liste-avantages { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.adhesion-publique .liste-avantages li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--filet); position: relative; max-width: 40em; }
.adhesion-publique .liste-avantages li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 14px; height: 1px; background: var(--prusse); }

.pied { padding-block: 40px 56px; }
.pied .cadre { display: grid; gap: 20px; font-size: 13.5px; color: var(--pierre); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { color: var(--pierre); }
.pied .mention { max-width: 52em; font-size: 12.5px; }

.vide-public { padding-block: 120px; }

/* ---------- Édition (équipe seulement) ---------- */
.bandeau-brouillon { background: var(--encre); color: var(--papier); font-size: 13.5px; }
.bandeau-brouillon .cadre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 10px; }
.bandeau-brouillon strong { font-weight: 600; }
.bandeau-brouillon a { color: var(--papier); }
.bandeau-brouillon .ecart { color: #f3c98b; }

.basculer {
  position: fixed; z-index: 30; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 6px; justify-items: end;
}
.basculer .note { font-size: 11.5px; color: var(--pierre); background: var(--papier); border: 1px solid var(--filet); padding: 4px 8px; }
.basculer .bouton { background: var(--edition); border-color: var(--edition); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
body.edition .basculer { display: none; }

.barre-edition {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: var(--blanc); border-top: 2px solid var(--edition);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
}
.barre-edition[hidden], .confirmation[hidden], .outils-texte[hidden] { display: none; }
.barre-edition .etat { font-size: 13.5px; color: var(--pierre); max-width: 36em; }
.barre-edition .etat strong { color: var(--edition); font-weight: 600; }
.barre-edition .bouton { min-height: 40px; }
.bouton.publier { background: var(--edition); border-color: var(--edition); color: #fff; }
.bouton[disabled] { opacity: .5; cursor: progress; }
body.edition { padding-bottom: 110px; }

body.edition [data-champ] { outline: 1px dashed color-mix(in srgb, var(--edition) 55%, transparent); outline-offset: 4px; cursor: text; min-width: 2em; }
body.edition [data-champ]:hover { background: var(--edition-pale); }
body.edition [data-champ]:focus { outline: 2px solid var(--edition); background: var(--edition-pale); }
body.edition [data-champ]:empty::before { content: attr(data-vide); color: var(--pointille); font-style: italic; }
body.edition .appel [data-champ]:empty::before { color: color-mix(in srgb, var(--papier) 45%, transparent); }
.cache-hors-edition { display: none; }
body.edition .cache-hors-edition { display: revert; }
.bouton.ferme { opacity: .55; }

.outil { font: 600 12px/1 var(--sans); padding: 8px 10px; background: var(--blanc); color: var(--edition); border: 1px solid var(--edition); cursor: pointer; border-radius: 0; }
.outil:hover { background: var(--edition); color: #fff; }
.outil[disabled] { opacity: .4; cursor: default; background: var(--blanc); color: var(--edition); }

[data-section] { position: relative; }
.outils-section, .outils-element, .remplacer, .ajouter-section, .ajouter-element, .lien-bouton-edition { display: none; }
body.edition .outils-section {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: absolute; top: 10px; right: max(16px, env(safe-area-inset-right, 0px)); z-index: 3;
}
body.edition .outils-section .type { font-size: 11.5px; font-weight: 600; color: var(--edition); background: var(--blanc); border: 1px solid var(--edition); padding: 7px 8px; }
body.edition [data-section] { box-shadow: inset 3px 0 0 var(--edition); }
body.edition [data-section][data-visible="0"] { opacity: .5; }
body.edition [data-section][data-visible="0"] .outils-section { opacity: 1; }
body.edition .ajouter-section { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding-block: 10px; border-bottom: 1px dashed color-mix(in srgb, var(--edition) 50%, transparent); background: var(--edition-pale); }
body.edition .ajouter-section select { font: 13px var(--sans); padding: 6px; border: 1px solid var(--edition); background: var(--blanc); border-radius: 0; }
body.edition .ajouter-element { display: inline-flex; margin-top: 12px; justify-self: start; }
body.edition .outils-element { display: flex; gap: 6px; flex-wrap: wrap; }
body.edition .lien-bouton-edition { display: inline-flex; }

body.edition .remplacer {
  display: inline-flex; position: absolute; top: 10px; left: 10px; z-index: 2; align-items: center; gap: 6px;
  background: var(--edition); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; cursor: pointer;
}
.remplacer input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sans-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--pointille); font-size: 13px; }

.outils-texte { position: fixed; z-index: 45; display: flex; gap: 4px; background: var(--blanc); border: 1px solid var(--edition); padding: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.outils-texte button { font: 600 13px/1 var(--sans); min-width: 32px; padding: 7px 8px; background: var(--blanc); color: var(--edition); border: 0; cursor: pointer; }
.outils-texte button:hover { background: var(--edition-pale); }

.confirmation { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10, 12, 15, .45); padding: 16px; }
.confirmation .boite { background: var(--papier); border-top: 3px solid var(--edition); max-width: 30em; width: 100%; padding: 28px; display: grid; gap: 16px; }
.confirmation p { color: var(--pierre); }
.message-flottant {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  background: var(--encre); color: var(--papier); padding: 12px 18px; font-size: 14px; max-width: calc(100% - 32px);
}
.message-flottant.erreur { background: var(--danger); }
@media (prefers-reduced-motion: no-preference) {
  .message-flottant { animation: monte .25s ease-out; }
  @keyframes monte { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
}
body.edition .registre dl > div .outils-element { grid-column: 1 / -1; }

/* Deux clubs sur le même moteur : La Relève (soignants) garde le bleu de Prusse, Le Bloc passe en vert sapin. */
.theme-bloc { --prusse: #1d5546; --prusse-pale: #ebf2ee; --prusse-clair: #c5dbd1; }

/* Logo « Nom | Club deal » */
.marque .nom-club { display: inline-flex; align-items: baseline; }
.marque .pipe { font-family: var(--sans); font-size: 20px; font-weight: 300; color: var(--pointille); margin: 0 10px;
  letter-spacing: 0; }
.marque .sous-titre { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--pierre); }
.marque svg, .marque-panneau svg { color: var(--prusse); }
@media (max-width: 560px) { .marque .pipe, .marque .sous-titre { display: none; } }
