/* =========================================================
   Composants partagés des pages du site SiS2
   (complète style.css – à charger après lui)
   ========================================================= */


.notice-text a { color: var(--blue); font-weight: 600; }


/* ===== Titres de section ===== */
.section { margin-top: 40px; }
.sec-title {
  color: var(--navy);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-title .circle { width: 48px; height: 48px; }
.sec-title .circle svg { width: 24px; height: 24px; }
.sec-desc {
  color: var(--muted);
  font-size: 16px;
  margin: 8px 0 20px;
}
.sec-title + .tiles,
.sec-title + .accordion-grid,
.sec-title + .shop-grid { margin-top: 20px; }

/* ===== Boutons ===== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid var(--btn-outline-color);
  border-radius: 999px;
  color: var(--btn-outline-color);
  background: var(--btn-outline-bg);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline svg, .btn-inline svg { width: 20px; height: 20px; stroke-width: 2.1; flex-shrink: 0; }
.btn-outline:hover { background: var(--btn-outline-color); color: var(--btn-outline-hover-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 18px; }
.btn-row .btn { margin: 0; }
.btn-inline {
  display: inline-flex;
  padding: 12px 24px;
  font-size: 16px;
}

/* ===== Carte générique (reprend .card de la vitrine) ===== */
.panel {
  background: linear-gradient(180deg, var(--blue-softer) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 31, 92, .04);
  padding: 24px 28px;
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.green  { background: #e3f3e7; color: #23753a; }
.badge.blue   { background: var(--blue-soft); color: var(--blue); }
.badge.orange { background: #fff1dc; color: #a35d00; }

/* =========================================================
   Page Équipement personnel (byod.html)
   ========================================================= */
.byod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

/* Sélecteur */
.selector { padding: 26px 28px 28px; }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 10px;
}
.field-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.select-wrap { position: relative; }
.select-wrap svg {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 14px 44px 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #c9d6e8;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.select-wrap select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 91, 196, .2); }
.select-wrap select:disabled { background: #f1f4f8; color: #98a2b3; cursor: not-allowed; }

#results { margin-top: 22px; }
.empty-state {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--white);
  border: 1px dashed #c9d6e8;
  border-radius: 12px;
  color: var(--muted);
  font-size: 16px;
}
.empty-state svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); margin-top: 1px; }
.empty-state.warn { border-style: solid; border-color: #f2c98a; background: #fff8ec; color: var(--text); }
.empty-state.warn svg { color: #e8930c; }

.result-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.result-head .circle { width: 56px; height: 56px; }
.result-head h3 { color: var(--navy); font-size: 22px; font-weight: 700; line-height: 1.2; }
.result-head .meta { color: var(--muted); font-size: 15px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid #c9d6e8;
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.tab svg { width: 18px; height: 18px; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.spec-table {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.spec-table .k, .spec-table .v {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
}
.spec-table .k {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-softer);
  color: var(--navy);
  font-weight: 600;
}
.spec-table .k svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.spec-table .v { white-space: pre-line; color: var(--text); }
.spec-table .v.muted { color: #98a2b3; }
.spec-table > :nth-last-child(-n+2) { border-bottom: none; }

/* Colonne latérale */
.side { display: flex; flex-direction: column; gap: 20px; }
.side-card h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.side-card h3 .circle { width: 48px; height: 48px; }
.side-card h3 .circle svg { width: 24px; height: 24px; }
.side-card p { font-size: 15.5px; margin-bottom: 10px; }
.side-card .btn { margin: 14px 0 0; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 12px; font-size: 15.5px; }
.info-list li svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }


/* =========================================================
   Page Agir au quotidien
   ========================================================= */
.notice.green {
  background: linear-gradient(90deg, #e9f5ec 0%, #f3faf5 60%, #e9f5ec 100%);
  border-color: #cfe6d5;
}
.notice.green .notice-icon { color: #23753a; border-right-color: #b5d9bf; }
.notice.green .notice-illu { color: #2f8a48; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
}
.tile .circle { width: 50px; height: 50px; }
.tile .circle svg { width: 25px; height: 25px; }
.tile p { font-size: 16px; color: var(--text); }
.tile.wide { grid-column: 1 / -1; display: block; padding: 4px 0; }

/* Accordéons (details/summary natifs) */
.accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.acc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 31, 92, .04);
  transition: border-color .15s, box-shadow .15s;
}
.acc[open] { border-color: #b9d1ef; box-shadow: 0 4px 16px rgba(15, 31, 92, .07); }
.acc summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.35;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .circle { width: 40px; height: 40px; }
.acc summary .circle svg { width: 21px; height: 21px; }
.acc summary .chev { margin-left: auto; width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; transition: transform .2s; }
.acc[open] summary .chev { transform: rotate(180deg); }
.acc summary:hover { color: var(--blue); }
.acc summary:focus-visible { outline: 3px solid rgba(11, 91, 196, .35); outline-offset: 2px; border-radius: 14px; }
.acc-body {
  padding: 0 22px 18px 74px;
  font-size: 15.5px;
  color: var(--text);
}
.acc-body ul { padding-left: 18px; }
.acc-body li { margin-bottom: 6px; }
.acc-body p { margin-bottom: 8px; }
.acc-body h4 { color: var(--navy); font-size: 15.5px; margin: 10px 0 4px; }
.acc-body a { color: var(--blue); font-weight: 600; }
.tile .acc { flex: 1; border: none; box-shadow: none; background: transparent; }

.circle.green { background: #e3f3e7; color: #23753a; }

/* =========================================================
   Page Sites d'achat
   ========================================================= */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.shop-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop {
  display: flex;
  flex-direction: column;
}
.shop.full { grid-column: 1 / -1; }
.shop-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.shop h3 { color: var(--navy); font-size: 24px; font-weight: 700; line-height: 1.2; }
.shop-dom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--muted);
}
.shop-dom svg { width: 16px; height: 16px; }
.shop .desc { font-size: 16px; color: var(--text); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
}
.pill-date svg { width: 17px; height: 17px; color: var(--blue); }
.note-rpn {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff8ec;
  border-left: 4px solid #e8930c;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.note-rpn svg { width: 19px; height: 19px; color: #e8930c; flex-shrink: 0; margin-top: 1px; }
.btn-outline.wrap { white-space: normal; text-align: left; line-height: 1.3; }

/* ===== Responsive ===== */
@media (max-width: 1250px) {
  .byod-grid { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .shop-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .accordion-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sec-title { font-size: 24px; }
  .panel { padding: 20px 18px; }
  .selects { grid-template-columns: 1fr; }
  .spec-table { grid-template-columns: 1fr; }
  .spec-table .k { border-bottom: none; padding-bottom: 6px; }
  .spec-table .v { padding-top: 4px; }
  .side { display: flex; }
  .shop-grid, .shop-grid.cols-2 { grid-template-columns: 1fr; }
  .acc-body { padding-left: 22px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 18px; }
}

/* Première section directement sous la bannière */
main > .section:first-child { margin-top: 36px; }

/* ===== Bandeau « éco » (Agir au quotidien) ===== */
.eco-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  padding: 26px 44px;
  background:
    radial-gradient(circle at 92% 50%, rgba(255, 255, 255, .75) 0, rgba(255, 255, 255, 0) 32%),
    linear-gradient(100deg, #e6f4ea 0%, #f2faf4 55%, #e3f2e8 100%);
  border: 1px solid #cde5d4;
  border-radius: 14px;
}
.eco-deco { position: absolute; width: 170px; height: 170px; pointer-events: none; }
.eco-deco path { fill: #2f8a48; opacity: .08; }
.eco-deco .vein { fill: none; stroke: #2f8a48; stroke-width: 2; opacity: .08; }
.eco-deco--left { left: -48px; bottom: -70px; transform: rotate(-28deg); }
.eco-deco--right { right: 150px; top: -95px; width: 140px; height: 140px; transform: rotate(150deg); }

.eco-icon {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d4ecdb;
  color: #23753a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 7px rgba(212, 236, 219, .45);
}
.eco-icon svg { width: 34px; height: 34px; stroke-width: 1.8; }

.eco-text { position: relative; flex: 1; }
.eco-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f8a48;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.eco-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eco-text h2 { color: #1c5a30; font-size: 25px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.eco-text p { font-size: 16px; color: #2d3b31; }

.eco-illu { position: relative; flex-shrink: 0; }
.eco-illu svg { width: 170px; height: 134px; display: block; margin: -12px 0; }
.eco-illu .shadow { fill: #2f8a48; opacity: .1; stroke: none; }
.eco-illu .stem { stroke: #2f8a48; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.eco-illu .leaf-a { fill: #7cc293; stroke: #2f8a48; stroke-width: 2; }
.eco-illu .leaf-b { fill: #a9d8b6; stroke: #2f8a48; stroke-width: 2; }
.eco-illu .leaf-c { fill: #c9e8d1; stroke: #2f8a48; stroke-width: 2; }
.eco-illu .vein { fill: none; stroke: #2f8a48; stroke-width: 1.4; opacity: .7; }
.eco-illu .pot { fill: #f3faf5; stroke: #2f8a48; stroke-width: 2; stroke-linejoin: round; }
.eco-illu .pot-rim { fill: #d4ecdb; stroke: #2f8a48; stroke-width: 2; stroke-linejoin: round; }
.eco-illu .dot { fill: #7cc293; stroke: none; }

@media (max-width: 760px) {
  .eco-banner { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 14px; }
  .eco-text h2 { font-size: 21px; }
  .eco-illu { display: none; }
  .eco-deco--right { right: -40px; }
}

/* Tableau vide (aucune donnée / aucune filière sélectionnée) */
.spec-table.blank .v { min-height: 50px; }

