/* CMB 3 — lumineux, joyeux, ancré sur le bleu de la clé */

:root {
  --cmb-blue: #3583c1; /* bleu exact de la clé sol/fa */
  --cmb-blue-deep: #2a6aa0;
  --cmb-coral: #ff6b7a;
  --cmb-coral-deep: #ef5566;
  --cmb-teal: #3583c1; /* alias → bleu clé sol/fa (plus de violet) */
  --cmb-teal-deep: #2a6aa0;
  --cmb-gold: #ffc933;
  --cmb-gold-soft: #fff4c2;
  --cmb-cream: #fffaf4;
  --cmb-sand: #fff3e8;
  --cmb-bg: #fffaf4;
  --cmb-ink: #2c3340;
  --cmb-muted: #66707c;
  --cmb-line: #ece6de;
  --cmb-white: #ffffff;
  --cmb-shadow: 0 12px 32px rgba(44, 51, 64, 0.09);
  --cmb-radius: 18px;
  --cmb-yellow: var(--cmb-gold);
  --cmb-yellow-soft: var(--cmb-gold-soft);
  --cmb-mint: #eef6fc;
}

body.et_boxed_layout,
body.custom-background {
  background-color: #fff3e6 !important;
  background-image:
    url("https://cmbroye.ch/wp-content/uploads/2026/10/cmb-aq/instruments-motif.png"),
    radial-gradient(circle 44rem at 0% 0%, rgba(255, 107, 122, 0.5) 0%, transparent 56%),
    radial-gradient(circle 40rem at 100% 5%, rgba(255, 201, 51, 0.58) 0%, transparent 54%),
    radial-gradient(circle 38rem at 95% 100%, rgba(53, 131, 193, 0.36) 0%, transparent 52%),
    radial-gradient(circle 34rem at 10% 90%, rgba(42, 106, 160, 0.28) 0%, transparent 50%),
    linear-gradient(135deg, #ffd8c8 0%, #ffe89a 36%, #d6ebf8 70%, #c8e6fc 100%) !important;
  background-attachment: fixed !important;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-size: 500px auto, cover, cover, cover, cover, cover !important;
  background-blend-mode: multiply, normal, normal, normal, normal, normal;
}

body.et_boxed_layout #page-container {
  box-shadow: 0 18px 48px rgba(47, 47, 47, 0.1);
}

.cmb-site {
  color: var(--cmb-ink);
  line-height: 1.65;
  font-size: 1.05rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.25rem 0 2rem;
}

.cmb-site h1,
.cmb-site h2,
.cmb-site h3 {
  color: var(--cmb-ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cmb-site h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  margin: 0 0 0.55rem;
}

.cmb-site h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--cmb-gold);
  display: inline-block;
}

.cmb-site a {
  color: var(--cmb-teal-deep);
  text-decoration: none;
}

.cmb-site a:hover {
  color: var(--cmb-coral);
}

.cmb-kicker {
  margin: 0 0 0.75rem;
  color: var(--cmb-blue);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.cmb-lead,
.cmb-page-intro {
  margin: 0 0 1.1rem;
  color: var(--cmb-ink);
  max-width: 40rem;
}

.cmb-note {
  margin: 1rem 0 0;
  color: var(--cmb-muted);
  font-size: 0.95rem;
}

.cmb-section {
  margin: 2.4rem 0 0;
}

/* Explication Broye / Conservatoire des Régions */
.cmb-explain {
  background: var(--cmb-white);
  border: 1px solid var(--cmb-line);
  border-radius: var(--cmb-radius);
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 6px 20px rgba(50, 130, 190, 0.08);
  border-left: 5px solid var(--cmb-blue);
}

.cmb-explain-lead {
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--cmb-ink);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.cmb-explain p {
  margin: 0 0 0.85rem;
  color: var(--cmb-ink);
}

.cmb-explain-map {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cmb-explain-map li {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: #f7fafc;
  border: 1px solid var(--cmb-line);
  font-size: 0.96rem;
  line-height: 1.4;
}

.cmb-explain-map li:first-child {
  background: linear-gradient(110deg, #eef6fc 0%, #fff8f4 100%);
  border-color: rgba(50, 130, 190, 0.28);
}

.cmb-explain-map em {
  font-style: normal;
  color: var(--cmb-blue-deep);
  font-weight: 700;
}

.cmb-explain-map a {
  color: inherit;
  text-decoration: none;
}

.cmb-explain-map a:hover {
  color: var(--cmb-blue-deep);
  text-decoration: underline;
}

/* Hero */
.cmb-hero {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 1.7rem 1.5rem 1.6rem;
  border-radius: calc(var(--cmb-radius) + 4px);
  background: linear-gradient(145deg, #ffffff 0%, #fff8f4 48%, #fff8df 100%);
  border: 1px solid rgba(255, 107, 122, 0.16);
  box-shadow: 0 14px 36px rgba(255, 107, 122, 0.1);
}

@media (min-width: 820px) {
  .cmb-hero {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    padding: 2rem 2rem 1.85rem;
  }
}

.cmb-hero-brand img {
  display: block;
  max-width: min(220px, 70%);
  height: auto;
  margin: 0 0 1rem;
}

.cmb-hero-address {
  color: var(--cmb-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cmb-hero-address strong {
  display: block;
  color: var(--cmb-ink);
  margin-bottom: 0.25rem;
}

.cmb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 0.9rem;
}

.cmb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cmb-btn:hover {
  transform: translateY(-1px);
}

.cmb-btn-primary {
  background: var(--cmb-coral);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(255, 107, 122, 0.28);
}

.cmb-btn-primary:hover {
  background: var(--cmb-coral-deep);
  color: #fff !important;
}

.cmb-btn-secondary {
  background: #fff;
  color: var(--cmb-teal-deep) !important;
  border-color: var(--cmb-teal);
}

.cmb-btn-secondary:hover {
  border-color: var(--cmb-blue);
  color: var(--cmb-blue-deep) !important;
}

.cmb-banner {
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(110deg, #fff4c2 0%, #ffe8a0 100%);
  color: var(--cmb-ink);
  border: 1px solid rgba(255, 201, 51, 0.55);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Portes de parcours */
.cmb-doors {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 760px) {
  .cmb-doors {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cmb-door {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  padding: 1.1rem 1rem;
  border-radius: var(--cmb-radius);
  text-decoration: none !important;
  color: #fff !important;
  box-shadow: var(--cmb-shadow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cmb-door:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
  color: #fff !important;
}

.cmb-door span {
  display: block;
  font-size: 0.88rem;
  opacity: 0.92;
  margin-top: 0.35rem;
  font-weight: 500;
  line-height: 1.35;
}

.cmb-door strong {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cmb-door-coral {
  background: linear-gradient(160deg, #ff8a97 0%, var(--cmb-coral) 100%);
}

.cmb-door-teal {
  background: linear-gradient(160deg, #5aa0d4 0%, var(--cmb-blue-deep) 100%);
}

.cmb-door-yellow {
  background: linear-gradient(160deg, #ffe14d 0%, #ffc933 100%);
  color: var(--cmb-ink) !important;
}

.cmb-door-yellow:hover {
  color: var(--cmb-ink) !important;
}

.cmb-door-ink {
  background: linear-gradient(160deg, #5aa8e0 0%, var(--cmb-blue-deep) 100%);
}

/* Cards sites */
.cmb-cards {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.cmb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--cmb-white);
  border: 1px solid var(--cmb-line);
  border-radius: var(--cmb-radius);
  padding: 1.05rem 0.75rem 1.15rem;
  text-decoration: none !important;
  color: var(--cmb-ink) !important;
  box-shadow: 0 4px 14px rgba(47, 47, 47, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cmb-card:hover {
  border-color: var(--cmb-coral);
  box-shadow: 0 12px 28px rgba(255, 107, 122, 0.18);
  transform: translateY(-3px);
}

.cmb-card img {
  width: 100%;
  max-width: 148px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.7rem;
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem;
}

.cmb-card-coa .cmb-coa {
  max-width: 110px;
  height: 128px;
  padding: 0.5rem;
  background: #fafafa;
}

.cmb-photos {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin: 0.75rem 0 0.5rem;
}

.cmb-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 18px rgba(42, 51, 64, 0.08);
}

.cmb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmb-credits {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--cmb-muted);
  line-height: 1.4;
}

.cmb-site-hero-coa {
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fc 100%);
}

.cmb-site-hero-coa .cmb-coa {
  max-height: 200px;
  width: auto;
}

.cmb-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
}

.cmb-card span {
  font-size: 0.86rem;
  color: var(--cmb-muted);
}

/* Instrument grid */
.cmb-inst-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}

.cmb-inst {
  display: block;
  width: 100%;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-align: center;
  background: var(--cmb-white);
  border: 1px solid var(--cmb-line);
  border-radius: 16px;
  padding: 0.75rem 0.4rem 0.8rem;
  box-shadow: 0 3px 10px rgba(47, 47, 47, 0.03);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cmb-inst:hover,
.cmb-inst:focus-visible {
  border-color: var(--cmb-blue);
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 10px 24px rgba(50, 130, 190, 0.2);
}

.cmb-inst img {
  width: 100%;
  max-width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 0.4rem;
  display: block;
  background: transparent;
  opacity: 0.88;
  /* traits sombre → bleu clé de sol/fa (#3282be) */
  filter: brightness(0) saturate(100%) invert(42%) sepia(70%) saturate(650%) hue-rotate(175deg) brightness(0.95);
}

.cmb-inst:hover img,
.cmb-inst:focus-visible img {
  opacity: 1;
}

.cmb-inst strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cmb-ink);
}

/* Groups / pour qui */
.cmb-groups {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .cmb-groups {
    grid-template-columns: 1fr 1fr;
  }
}

.cmb-group {
  background: var(--cmb-white);
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
  border-left: 5px solid var(--cmb-coral);
  box-shadow: 0 4px 16px rgba(255, 107, 122, 0.07);
}

.cmb-group:nth-child(2n) {
  border-left-color: var(--cmb-blue);
  box-shadow: 0 4px 16px rgba(53, 131, 193, 0.12);
}

.cmb-group:nth-child(3n) {
  border-left-color: var(--cmb-gold);
  box-shadow: 0 4px 16px rgba(255, 201, 51, 0.12);
}

.cmb-group:nth-child(4n) {
  border-left-color: var(--cmb-blue);
  box-shadow: 0 4px 16px rgba(59, 145, 212, 0.1);
}

.cmb-group h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.cmb-group p {
  margin: 0;
  color: var(--cmb-muted);
  font-size: 0.96rem;
}

.cmb-two {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .cmb-two {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.cmb-aside {
  position: relative;
  overflow: hidden;
  background: var(--cmb-white);
  border: 1px solid var(--cmb-line);
  border-radius: var(--cmb-radius);
  padding: 1.2rem 1.25rem;
  box-shadow: 0 4px 16px rgba(47, 47, 47, 0.04);
}

.cmb-aside::before {
  content: "";
  position: absolute;
  right: -0.4rem;
  bottom: -0.6rem;
  width: 7.5rem;
  height: 9.5rem;
  background: url("https://cmbroye.ch/wp-content/uploads/2026/10/cmb-aq/fili-clef.png") no-repeat center / contain;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.cmb-aside > * {
  position: relative;
  z-index: 1;
}

.cmb-aside h3 {
  margin-top: 0;
}

.cmb-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cmbstep;
  display: grid;
  gap: 0.75rem;
}

.cmb-steps li {
  counter-increment: cmbstep;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  background: var(--cmb-white);
  border-radius: 14px;
  border: 1px solid var(--cmb-line);
}

.cmb-steps li::before {
  content: counter(cmbstep);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--cmb-coral);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmb-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cmb-doc-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cmb-doc-list li:last-child {
  border-bottom: none;
}

.cmb-doc-list a {
  font-weight: 700;
}

.cmb-doc-note {
  display: block;
  color: var(--cmb-muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
  font-weight: 400;
}

.cmb-site-hero {
  text-align: center;
  margin: 0 0 1.4rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--cmb-line);
  border-radius: var(--cmb-radius);
}

.cmb-site-hero img {
  max-width: min(420px, 100%);
  max-height: 280px;
  object-fit: contain;
}

.cmb-flyer {
  text-align: center;
  margin-top: 0.8rem;
}

.cmb-flyer img {
  max-width: min(300px, 100%);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--cmb-shadow);
}

.cmb-faq details {
  background: var(--cmb-white);
  border: 1px solid var(--cmb-line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.65rem;
}

.cmb-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.cmb-faq p {
  margin: 0.65rem 0 0;
  color: var(--cmb-muted);
}

/* Lightbox flyer */
#cmb-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(47, 47, 47, 0.78);
  justify-content: center;
  align-items: center;
}

#cmb-lightbox.is-open {
  display: flex;
}

#cmb-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
}

#cmb-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Drawer instrument */
#cmb-inst-dialog {
  display: none;
  position: fixed;
  z-index: 10050;
  inset: 0;
  background: rgba(47, 47, 47, 0.55);
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

#cmb-inst-dialog.is-open {
  display: flex;
}

.cmb-inst-panel {
  position: relative;
  width: min(26rem, 100%);
  height: 100%;
  background: var(--cmb-white);
  padding: 0;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  overflow: auto;
  animation: cmb-drawer-in 0.22s ease;
}

@keyframes cmb-drawer-in {
  from {
    transform: translateX(18px);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cmb-inst-panel-head {
  padding: 1.4rem 1.4rem 1.15rem;
  background: linear-gradient(135deg, #ff8a97 0%, var(--cmb-coral) 45%, #ff9a55 100%);
  color: #fff;
}

.cmb-inst-panel-head h3 {
  margin: 0;
  font-size: 1.45rem;
  color: #fff;
}

.cmb-inst-panel-head p {
  margin: 0.35rem 0 0;
  opacity: 0.95;
  font-size: 0.95rem;
}

.cmb-inst-panel-body {
  padding: 1.2rem 1.35rem 1.6rem;
}

.cmb-inst-panel-body > p {
  margin: 0 0 0.85rem;
  color: var(--cmb-muted);
}

.cmb-site-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cmb-site-chips a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 4.2rem 0.9rem 1.05rem;
  border-radius: 14px;
  background-color: var(--cmb-white);
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 5.6rem auto;
  color: var(--cmb-ink) !important;
  font-weight: 750;
  text-decoration: none !important;
  border: 1px solid var(--cmb-line);
  box-shadow: 0 2px 10px rgba(47, 47, 47, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cmb-site-chips a[data-site="Payerne"] {
  background-image: url("https://cmbroye.ch/wp-content/uploads/2026/10/cmb-aq/fili-site-payerne.png");
  border-left: 4px solid var(--cmb-coral);
}

.cmb-site-chips a[data-site="Avenches"] {
  background-image: url("https://cmbroye.ch/wp-content/uploads/2026/10/cmb-aq/fili-site-avenches.png");
  border-left: 4px solid var(--cmb-teal);
}

.cmb-site-chips a[data-site="Moudon"] {
  background-image: url("https://cmbroye.ch/wp-content/uploads/2026/10/cmb-aq/fili-site-moudon.png");
  border-left: 4px solid var(--cmb-gold);
}

.cmb-site-chips a[data-site="Lucens"] {
  background-image: url("https://cmbroye.ch/wp-content/uploads/2026/10/cmb-aq/fili-site-lucens.png");
  border-left: 4px solid var(--cmb-blue);
}

.cmb-site-chips a[data-site="Thierrens"] {
  background-image: url("https://cmbroye.ch/wp-content/uploads/2026/10/cmb-aq/fili-site-thierrens.png");
  border-left: 4px solid var(--cmb-blue-deep);
}

.cmb-site-chips a::after {
  content: "→";
  font-weight: 700;
  color: var(--cmb-teal-deep);
  position: relative;
  z-index: 1;
}

.cmb-site-chips a:hover {
  border-color: rgba(53, 131, 193, 0.45);
  box-shadow: 0 8px 18px rgba(53, 131, 193, 0.14);
  transform: translateX(2px);
}

.cmb-inst-panel-actions {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.cmb-inst-empty {
  margin: 0;
  color: var(--cmb-ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

#cmb-inst-dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

#cmb-inst-dialog-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 560px) {
  #cmb-inst-dialog {
    align-items: flex-end;
  }

  .cmb-inst-panel {
    width: 100%;
    height: auto;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }
}

.cmb-inst-blurb {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--cmb-ink);
}

.cmb-map {
  margin: 0.75rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 40, 50, 0.12);
  background: #fff;
}

.cmb-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.cmb-prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.cmb-prof-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 1px solid rgba(30, 40, 50, 0.08);
}

.cmb-prof-card h2 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.15rem;
}

.cmb-prof-meta,
.cmb-prof-sites {
  margin: 0.15rem 0;
  font-size: 0.92rem;
  color: rgba(30, 40, 50, 0.72);
}

.cmb-prof-photo {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.cmb-prof-bio {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.cmb-direction-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.cmb-direction-card {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 40, 50, 0.08);
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.35rem;
}

.cmb-direction-card.cmb-direction-nophoto {
  grid-template-columns: 1fr;
}

.cmb-direction-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  display: block;
  background: #f0f0f0;
}

.cmb-direction-card h2 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

.cmb-direction-role {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  color: rgba(30, 40, 50, 0.7);
}

.cmb-direction-bio {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .cmb-direction-card {
    grid-template-columns: 1fr;
  }

  .cmb-direction-photo {
    max-width: 220px;
    margin: 0 auto;
  }
}

.cmb-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.35rem 0.75rem;
  margin: 0.5rem 0 1rem;
}

.cmb-prof-form fieldset {
  border: 1px solid rgba(30, 40, 50, 0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem 0.9rem;
  margin: 0 0 1rem;
}

.cmb-prof-form legend {
  padding: 0 0.35rem;
  font-weight: 600;
}

.cmb-prof-form textarea,
.cmb-prof-form input[type="text"],
.cmb-prof-form input[type="email"],
.cmb-prof-form input[type="url"] {
  width: 100%;
  max-width: 36rem;
}

.cmb-photo-field {
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.cmb-photo-label {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.cmb-photo-label span {
  font-weight: 400;
  color: rgba(30, 40, 50, 0.55);
}

.cmb-photo-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  margin-top: 0.55rem;
  padding: 1rem;
  border: 2px dashed rgba(53, 131, 193, 0.45);
  border-radius: 14px;
  background: #f7fafc;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cmb-photo-drop:hover,
.cmb-photo-drop.is-dragover {
  border-color: var(--cmb-blue-deep);
  background: #eef6fc;
}

.cmb-photo-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cmb-photo-drop-text {
  pointer-events: none;
  color: var(--cmb-blue-deep);
  font-weight: 600;
  line-height: 1.35;
}

.cmb-photo-drop-text small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  color: rgba(30, 40, 50, 0.55);
}

.cmb-photo-preview {
  max-width: 100%;
  max-height: 12rem;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
}

.cmb-photo-drop.has-file {
  border-style: solid;
  background: #fff;
}

.cmb-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.cmb-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 40, 50, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cmb-link-card:hover,
.cmb-link-card:focus-visible {
  border-color: var(--cmb-coral);
  transform: translateY(-2px);
  outline: none;
}

.cmb-link-card strong {
  font-size: 1.05rem;
  color: var(--cmb-ink);
}

.cmb-link-card span {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(30, 40, 50, 0.72);
}

.cmb-link-card-logo {
  align-items: flex-start;
}

.cmb-link-logo {
  display: block;
  width: auto;
  max-width: 88px;
  max-height: 72px;
  object-fit: contain;
  margin: 0 0 0.45rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem;
}

/* Logo header : clé de sol/fa lisible (Divi sinon tombe à 93×43 sans attachment) */
#main-header .logo_container #logo {
  max-height: 68px !important;
  width: auto !important;
  height: auto !important;
}

#main-header.et-fixed-header .logo_container #logo {
  max-height: 52px !important;
}

/* Commentaires WP / Divi / WP Armour : masqués sur tout le site */
#comment-wrap,
#comments,
#respond,
.comment-respond,
.et_pb_comments,
.et_pb_comments_module,
.widget_recent_comments,
.widget.widget_recent_comments,
li.widget_recent_comments,
.wpa_timer_block,
.wpa_admin_notice,
.wp-armour,
#wp-armour {
  display: none !important;
}
