/*body { font-family: system-ui, Arial, sans-serif; margin: 0; color:#0b1220; }
.site-header, .site-footer { padding: 12px 16px; background: #f6f7fb; border-bottom:1px solid #e5e7eb; }
.site-footer { border-top:1px solid #e5e7eb; border-bottom:0; }
main { padding: 16px; }
.panel { background:#fff; padding:16px; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.grid { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #e5e7eb; padding: 6px 8px; font-size: 14px; }
th { background: #eef2ff; text-align:left; }
.row { display:flex; gap:10px; align-items:center; margin-bottom:10px; }
.button, button { padding:8px 12px; border-radius:8px; border:1px solid #1f6feb; background:#1f6feb; color:#fff; text-decoration:none; font-weight:600; }
label input { margin-left:6px; }

   PALETTE OER BLEU / VERT
   ============================ */

:root {
  --oer-blue: #0050a0;           /* Bleu énergie */
  --oer-blue-dark: #003c7a;
  --oer-green: #28a745;          /* Vert transition énergétique */
  --oer-green-dark: #1f7f32;
  --oer-bg: #f5f7fb;             /* Fond général clair */
  --oer-white: #ffffff;
  --oer-border: #e1e5ea;
  --oer-text: #1a1f36;
  --oer-text-light: #6b7280;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================
   RESET GLOBAL
   ============================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--oer-bg);
  color: var(--oer-text);
}

/* ============================
   HEADER
   ============================ */

.site-header {
  background: linear-gradient(120deg, var(--oer-blue), var(--oer-blue-dark));
  padding: 18px 28px;
  color: white;
  box-shadow: var(--shadow);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .brand-logo {
  height: 46px;
}

.site-header .brand-text-main {
  font-size: 1.4rem;
  font-weight: 600;
}

.site-header .brand-text-sub {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
  text-align: right;
  padding: 14px 20px;
  background: rgba(255,255,255,0.75);
  border-top: 1px solid var(--oer-border);
  font-size: 0.85rem;
  color: var(--oer-text-light);
  margin-top: 24px;
}

/* ============================
   PANELS / SECTIONS
   ============================ */

.panel {
  background: var(--oer-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--oer-border);
  margin-bottom: 20px;
}

.panel h1, .panel h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--oer-blue-dark);
  font-weight: 600;
}

/* ============================
   BUTTONS
   ============================ */

.button, button {
  background: var(--oer-blue);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover, button:hover {
  background: var(--oer-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.button:disabled, button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Variante verte */
.button-green {
  background: var(--oer-green);
}

.button-green:hover {
  background: var(--oer-green-dark);
}

/* ============================
   TABLES
   ============================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th {
  background: var(--oer-blue);
  color: white;
  padding: 10px;
  font-weight: 600;
  text-align: left;
}

td {
  background: var(--oer-white);
  padding: 8px 10px;
  border-bottom: 1px solid var(--oer-border);
}

tr:nth-child(even) td {
  background: #f9fbff;
}

td input {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--oer-border);
}

/* ============================
   INPUTS
   ============================ */

input[type="text"],
input[type="number"],
select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--oer-border);
  padding: 8px 10px;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--oer-green);
  box-shadow: 0 0 0 2px rgba(40,167,69,0.25);
}

/* ============================
   SUPPLIER CARDS (actionnaire)
   ============================ */

.fournisseurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
  margin-top: 16px;
}

.fournisseur-card {
  background: var(--oer-white);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--oer-border);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: var(--oer-text);
}

.fournisseur-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--oer-blue);
}

.fournisseur-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.fournisseur-card-sub {
  font-size: 0.85rem;
  color: var(--oer-text-light);
}

/* ============================
   ALERT / INFO BOXES
   ============================ */

.alert-info {
  background: #e8f4ff;
  border-left: 4px solid var(--oer-blue);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin: 12px 0;
  color: var(--oer-blue-dark);
}

.alert-error {
  background: #ffe7e7;
  border-left: 4px solid #d92828;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin: 12px 0;
  color: #7a0f0f;
}

/* =======================================================
   NAVIGATION BOUTONS DANS LE HEADER
   ======================================================= */

.top-nav {
  margin-top: 10px;
}

.nav-button {
  display: inline-block;
  padding: 8px 18px;
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.18s ease;
  box-shadow: var(--shadow);
}

.nav-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  width: 100%;
}

/* ============================
   HEADER ÉNERGIES RÉUNION
   ============================ */

.site-header {
  padding: 18px 24px;
  background: linear-gradient(120deg, #0050a0, #003c7a);
  border-bottom: 4px solid var(--oer-green);
  color: white;
  box-shadow: var(--shadow);
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-texts {
  display: flex;
  flex-direction: column;
}

/* Titre renforcé : plus institutionnel, plus visible */
.brand-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
}

/* Sous-titre : léger mais lisible */
.brand-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
}


/* Accent vert subtil pour donner de la couleur OER */

.panel {
  border-left: 4px solid var(--oer-green);
}

.button,
button {
  border: 1px solid var(--oer-blue);
}

.button-green,
button.button-green {
  background: var(--oer-green);
}

.button-green:hover {
  background: var(--oer-green-dark);
}

/* ============================
   ACTIONNAIRE – CARTES FOURNISSEURS EN MODE PANEL
   ============================ */

.fournisseurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.fournisseur-card {
  display: block;
  background: var(--oer-white);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--oer-border);

  /* BANDE VERTE À GAUCHE */
  border-left: 5px solid var(--oer-green);

  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--oer-text);

  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
}

.fournisseur-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--oer-green-dark);
}

.fournisseur-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--oer-blue-dark);
  margin-bottom: 6px;
}

.fournisseur-card-sub {
  font-size: 0.9rem;
  color: var(--oer-text-light);
}

/* =======================================================
   ACTIONNAIRE – STYLE DE BASE DES CARTES FOURNISSEURS
   ======================================================= */

.fournisseurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.fournisseur-card {
  position: relative;
  display: block;
  background: var(--oer-white);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--oer-border);
  border-left: 5px solid var(--oer-green); /* valeur par défaut */
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--oer-text);
  transition: 0.2s ease;
}

/* pastille énergie */
.fournisseur-card::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--oer-green);
  box-shadow: 0 0 0 4px rgba(40,167,69,0.22);
}

.fournisseur-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background-color: #f6fbf6;
}

.fournisseur-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--oer-blue-dark);
  margin-bottom: 4px;
}

.fournisseur-card-sub {
  font-size: 0.9rem;
  color: var(--oer-text-light);
}

/* =======================================================
   COULEURS PAR FOURNISSEUR
   (slugs : edf, deal, albioma_gol, albioma_br, mat, dido...)
   ======================================================= */

/* EDF : bleu électrique */
.fournisseur-edf {
  border-left-color: #1f6feb;
}
.fournisseur-edf::before {
  background: #1f6feb;
  box-shadow: 0 0 0 4px rgba(31,111,235,0.22);
}

/* DEAL : orange / décisionnel */
.fournisseur-deal {
  border-left-color: #f97316;
}
.fournisseur-deal::before {
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249,115,22,0.22);
}

/* ALBIOMA Gol : rouge chaud */
.fournisseur-albioma_gol {
  border-left-color: #dc2626;
}
.fournisseur-albioma_gol::before {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,0.22);
}

/* ALBIOMA Br : bordeaux */
.fournisseur-albioma_br {
  border-left-color: #9f1239;
}
.fournisseur-albioma_br::before {
  background: #9f1239;
  box-shadow: 0 0 0 4px rgba(159,18,57,0.22);
}

/* MAT (biogaz Rivière des Mat) : vert foncé */
.fournisseur-mat {
  border-left-color: #15803d;
}
.fournisseur-mat::before {
  background: #15803d;
  box-shadow: 0 0 0 4px rgba(21,128,61,0.22);
}

/* DIDO : violet transition / chaleur */
.fournisseur-dido {
  border-left-color: #7c3aed;
}
.fournisseur-dido::before {
  background: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.22);
}
/* ============================
   Icônes énergie par fournisseur
   ============================ */

.fournisseur-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: white;
}

/* Base (au cas où aucun slug ne matche) */
.fournisseur-icon::before {
  content: "●";
}

/* EDF : éclair ⚡ */
.fournisseur-icon-edf::before {
  content: "⚡";
}
.fournisseur-icon-edf {
  background: #1f6feb;
}

/* DEAL : dossier administratif 🗂 */
.fournisseur-icon-deal::before {
  content: "🗂";
}
.fournisseur-icon-deal {
  background: #f97316;
}

/* ALBIOMA Gol : usine thermique 🏭 */
.fournisseur-icon-albioma_gol::before {
  content: "🏭";
}
.fournisseur-icon-albioma_gol {
  background: #dc2626;
}

/* ALBIOMA Br : usine biomasse 🌾 */
.fournisseur-icon-albioma_br::before {
  content: "🌾";
}
.fournisseur-icon-albioma_br {
  background: #9f1239;
}

/* MAT (biogaz Rivière des Mat) : feuille 🌱 */
.fournisseur-icon-mat::before {
  content: "🌱";
}
.fournisseur-icon-mat {
  background: #15803d;
}

/* DIDO : chaleur / ECS ♨ */
.fournisseur-icon-dido::before {
  content: "♨";
}
.fournisseur-icon-dido {
  background: #7c3aed;
}
/* ============================
   Bandeau portail fournisseur
   ============================ */

.portail-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  color: white;
}

/* texte dans le bandeau */
.portail-header-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.portail-header-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}

.portail-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Couleurs par fournisseur (fond du bandeau) */
.portail-header.fournisseur-edf {
  background: #1f6feb;
}

.portail-header.fournisseur-deal {
  background: #f97316;
}

.portail-header.fournisseur-albioma_gol {
  background: #dc2626;
}

.portail-header.fournisseur-albioma_br {
  background: #9f1239;
}

.portail-header.fournisseur-mat {
  background: #15803d;
}

.portail-header.fournisseur-dido {
  background: #7c3aed;
}
/* ============================
   Responsive : grid → liste
   ============================ */

@media (max-width: 700px) {
  .fournisseurs-grid {
    grid-template-columns: 1fr;
  }

  .fournisseur-card {
    padding: 16px 16px;
  }

  .brand-title {
    font-size: 1.3rem;
  }
}


/* ===============================
   LOGOS DES FOURNISSEURS
================================== */

.fournisseur-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    position: relative;
}

.fournisseur-logo-wrapper {
    width: 100%;
    height: 100%;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fournisseur-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Supprimer les anciennes décorations rondes */
.fournisseur-card::before {
    content: none !important;
}

.fournisseur-info {
    display: flex;
    flex-direction: column;
}

.fournisseur-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a2a2a;
}

.fournisseur-sub {
    font-size: 0.9rem;
    color: #777;
}
