/* ══════════════════════════════════════════════════════════════
   MODULE INSTITUTIONS — Styles spécifiques
   Réutilise les tokens de breslev-shared.css
   ══════════════════════════════════════════════════════════════ */

/* ═══ EN-TÊTE DE PAGE (mini-hero) ═══ */
.page-hero {
  background: var(--ink);
  padding: 56px var(--pad-x) 40px;
  position: relative;
  overflow: hidden;
}
.page-hero-atmosphere { position: absolute; inset: 0; pointer-events: none; }
.page-hero-glow {
  position: absolute; top: -120px; right: -100px; width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(196,136,30,0.1) 0%, transparent 65%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ll); margin-bottom: 14px;
}
.page-hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-ll); animation: pulse 2s ease infinite; }
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 300; line-height: 1.1;
  color: var(--white); letter-spacing: -0.01em; margin-bottom: 10px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-ll); font-weight: 300; }
.page-hero-sub { font-family: var(--body); font-size: 15px; color: rgba(255,255,255,0.5); max-width: 560px; line-height: 1.65; }
.page-hero-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  font-family: var(--body); font-size: 12.5px; color: rgba(255,255,255,0.45); transition: color 0.2s;
}
.page-hero-back:hover { color: var(--gold-ll); }

/* ═══ BARRE DE FILTRES (dérivée de .search-section) ═══ */
.br-filter-bar {
  background: var(--white); border-top: 3px solid var(--gold); box-shadow: var(--shadow-md);
  position: relative; z-index: 10;
}
.br-filter-inner {
  max-width: 1280px; margin: 0 auto; padding: 20px var(--pad-x);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px;
}
.br-filter-field { display: flex; flex-direction: column; gap: 6px; }
.br-filter-field label {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.br-filter-field input[type="text"], .br-filter-field select {
  font-family: var(--body); font-size: 14px; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 7px; background: var(--off); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.br-filter-field input:focus, .br-filter-field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,136,30,0.1); background: var(--white);
}

@media (max-width: 860px) { .br-filter-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .br-filter-inner { grid-template-columns: 1fr; } }

/* ═══ SECTION RÉSULTATS (dérivé de .sections-wrap) ═══ */
.br-results-wrap { padding: clamp(32px, 5vw, 48px) var(--pad-x) 80px; max-width: 1280px; margin: 0 auto; }
.br-results-count { font-family: var(--body); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.br-results-count strong { color: var(--navy); font-weight: 600; }

/* ═══ CARTES INSTITUTION (dérivées de .sec-card) ═══ */
.br-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1024px) { .br-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .br-grid { grid-template-columns: 1fr; } }

.inst-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  transition: all 0.3s var(--ease); text-decoration: none; display: block;
}
.inst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.inst-card-accent { height: 5px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-ll)); }
.inst-card-body { padding: 22px 22px 20px; }
.inst-card-type {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.inst-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--ink); margin: 6px 0 8px; line-height: 1.2; }
.inst-card-ville { display: flex; align-items: center; gap: 6px; font-family: var(--body); font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.inst-card-ville svg { width: 13px; height: 13px; fill: var(--muted); flex-shrink: 0; }
.inst-card-desc { font-family: var(--body); font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.inst-card-footer { display: flex; align-items: center; justify-content: space-between; }
.inst-card-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--body); font-size: 11px; color: var(--sage); }
.inst-card-badge svg { width: 12px; height: 12px; fill: #2A5242; }
.inst-card-cta {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.inst-card:hover .inst-card-cta { gap: 10px; }

.br-empty { text-align: center; padding: 80px 20px; }
.br-empty h3 { font-family: var(--serif); font-size: 24px; color: var(--navy); font-weight: 400; margin-bottom: 8px; }
.br-empty p { font-family: var(--body); font-size: 14px; color: var(--muted); }

/* ═══ FICHE INSTITUTION ═══ */
.fiche-body { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; padding: 40px var(--pad-x) 80px; max-width: 1280px; margin: 0 auto; }
@media (max-width: 900px) { .fiche-body { grid-template-columns: 1fr; padding: 32px var(--pad-x-sm) 60px; } }

.fiche-section {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 26px 28px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.fiche-section h2 { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--navy); margin-bottom: 14px; }
.fiche-section p { font-family: var(--body); font-size: 14.5px; color: var(--ink); line-height: 1.7; }

.fiche-hours-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fiche-hours-item {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dotted var(--border); padding-bottom: 7px; font-family: var(--body); font-size: 13.5px;
}
.fiche-hours-item span:first-child { color: var(--muted); text-transform: capitalize; }
.fiche-hours-item span:last-child { font-weight: 600; color: var(--navy); }

.fiche-cours-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-l); font-family: var(--body); font-size: 13.5px; }
.fiche-cours-item:last-child { border-bottom: none; }

.fiche-services-list { list-style: none; display: grid; gap: 11px; }
.fiche-services-list li { display: flex; align-items: center; gap: 10px; font-family: var(--body); font-size: 13.5px; color: var(--ink); }
.fiche-services-list svg { width: 14px; height: 14px; fill: var(--gold); flex-shrink: 0; }

.fiche-contact-name { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--navy); margin-bottom: 14px; }

.btn-fiche-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(135deg, var(--gold-l), var(--gold-ll));
  padding: 13px 20px; border-radius: 6px; margin-bottom: 10px; transition: all 0.2s var(--ease);
  box-shadow: 0 4px 16px rgba(196,136,30,0.3);
}
.btn-fiche-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(196,136,30,0.4); }
.btn-fiche-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font-family: var(--body); font-size: 13px; color: var(--navy); border: 1.5px solid var(--border);
  padding: 12px 20px; border-radius: 6px; transition: all 0.2s;
}
.btn-fiche-outline:hover { border-color: var(--navy); background: var(--off); }

/* ═══ HERO FICHE (variante du page-hero) ═══ */
.fiche-hero-type {
  display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ll); margin-bottom: 10px;
}
.fiche-hero-lieu { display: flex; align-items: center; gap: 6px; font-family: var(--body); font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 8px; }
.fiche-hero-lieu svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.55); }

/* ═══ FORMULAIRE (dérivé de search-box / inscription) ═══ */
.form-wrap { max-width: 760px; margin: 0 auto; padding: 48px var(--pad-x) 90px; }
.form-intro {
  background: var(--gold-p); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin-bottom: 32px; font-family: var(--body); font-size: 14px; color: #6b4f16; line-height: 1.65;
}
.form-fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; margin-bottom: 22px; }
.form-fieldset legend {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); padding: 0 8px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; font-family: var(--body); font-size: 14px; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: 7px; background: var(--off); color: var(--ink); transition: all 0.2s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,136,30,0.1); background: var(--white);
}
.form-grid textarea { resize: vertical; min-height: 90px; }
.form-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.form-checkbox-row { display: flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 13.5px; color: var(--ink); }
@media (max-width: 640px) { .form-grid, .form-checkbox-grid { grid-template-columns: 1fr; } }

.btn-form-submit {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(135deg, var(--gold-l), var(--gold-ll)); padding: 15px 32px;
  border-radius: 6px; box-shadow: 0 4px 20px rgba(196,136,30,0.4); transition: all 0.25s var(--ease); width: 100%;
}
.btn-form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,136,30,0.5); }
