/* ===========================================================
   Parrainage des Ruches — SCAMIF x E.Leclerc Île-de-France
   Feuille de style partagée
   =========================================================== */

:root {
  --honey: #f2a900;
  --honey-dark: #c9860b;
  --honey-light: #ffe9b8;
  --green: #3f6b32;
  --green-dark: #2b4a22;
  --cream: #fff8ec;
  --cream-alt: #fbeed7;
  --ink: #2b2013;
  --ink-soft: #5c4f3c;
  --leclerc-blue: #004b87;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 32, 19, 0.10);
  --shadow-soft: 0 4px 14px rgba(43, 32, 19, 0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--green-dark); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(43,32,19,0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--honey), var(--honey-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.2px;
}

.brand-text span {
  font-size: 12px;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.main-nav a:hover { color: var(--green-dark); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1.5px solid rgba(63,107,50,0.25);
  color: var(--green-dark);
  font-size: 18px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(242,169,0,0.16), transparent 60%),
    var(--cream);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--honey-light);
  color: var(--honey-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--green-dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--honey-dark);
}

.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

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

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--green);
  color: var(--green-dark);
}
.btn-secondary:hover { background: rgba(63,107,50,0.08); }

.btn-honey {
  background: var(--honey);
  color: #3a2600;
}
.btn-honey:hover { background: var(--honey-dark); color: var(--white); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-size: 26px;
  color: var(--green-dark);
}
.stat span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Video frame ---------- */
.video-card {
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.video-card .ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-card iframe,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2b4a22, #1c3016);
  color: var(--honey-light);
  text-align: center;
  padding: 20px;
}

.video-placeholder .play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--honey);
  color: #3a2600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.video-placeholder small {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  max-width: 32ch;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head.left { margin: 0 0 36px; text-align: left; }

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--green-dark);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

.band-cream { background: var(--cream-alt); }
.band-green {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  color: #eef6e8;
}
.band-green .section-head h2 { color: var(--white); }
.band-green .section-head p { color: rgba(238,246,232,0.85); }

/* ---------- Feature grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--honey-light);
  color: var(--honey-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--green-dark);
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Timeline / how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 22px 20px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
}

.step .num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--honey);
  color: #3a2600;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

.step h3 { margin: 0 0 8px; font-size: 15.5px; color: var(--white); }
.step p { margin: 0; font-size: 13.5px; color: rgba(238,246,232,0.85); }

/* ---------- Map ---------- */
.map-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.map-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.map-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-region {
  fill: var(--cream-alt);
  stroke: #fff;
  stroke-width: 2;
  transition: fill .15s ease;
}

.map-region.active { fill: var(--honey-light); }

.map-region-label {
  font-size: 12px;
  fill: var(--ink-soft);
  font-weight: 700;
  pointer-events: none;
}

.map-pin {
  cursor: pointer;
}

.map-pin circle.halo {
  fill: rgba(242,169,0,0.25);
  transform-origin: center;
}

.map-pin circle.dot {
  fill: var(--honey-dark);
  stroke: #fff;
  stroke-width: 1.5;
}

.map-pin:hover circle.dot,
.map-pin.hovered circle.dot { fill: var(--green-dark); }

.map-pin:hover circle.halo,
.map-pin.hovered circle.halo { fill: rgba(63,107,50,0.28); }

.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transform: translate(-50%, -125%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .1s ease;
  z-index: 5;
}

.map-tooltip.show { opacity: 1; }

.map-wrap { position: relative; }

/* Directory / list of centers */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  border: 1.5px solid rgba(63,107,50,0.25);
  background: var(--white);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.center-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.center-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(43,32,19,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}

.center-list li a:hover {
  border-color: var(--honey);
  background: var(--honey-light);
}

.center-list .dept-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream-alt);
  padding: 3px 9px;
  border-radius: 999px;
  flex: none;
}

.center-list li { display: none; }
.center-list li.visible { display: block; }

/* ---------- Center page ---------- */
.center-hero {
  padding: 40px 0 32px;
  background: linear-gradient(180deg, var(--cream-alt), var(--cream));
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--green-dark); text-decoration: none; font-weight: 600; }

.center-id {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.leclerc-logo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}

.leclerc-logo img { width: 78%; height: 78%; object-fit: contain; }

.leclerc-logo .fallback {
  font-weight: 900;
  color: var(--leclerc-blue);
  font-size: 13px;
  text-align: center;
  line-height: 1.3;
  padding: 6px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.leclerc-logo .fallback span { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 700; color: var(--ink-soft); }

.center-id h1 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--green-dark);
}

.center-id .place {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
}

.center-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.center-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 34px;
  align-items: start;
}

.info-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  margin-bottom: 18px;
}

.info-box h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box p, .info-box ul {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.info-box ul { padding-left: 18px; }
.info-box li { margin-bottom: 6px; }

.camera-box {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.camera-box .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.camera-box h3 { margin: 0 0 8px; font-size: 17px; }
.camera-box p { margin: 0 0 18px; font-size: 13.5px; color: rgba(255,255,255,0.85); }

.center-back {
  margin-top: 36px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,248,236,0.75);
  padding: 44px 0 26px;
  margin-top: 40px;
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,248,236,0.12);
  margin-bottom: 18px;
}

.footer-top .brand-text strong { color: var(--white); }
.footer-top .brand-text span { color: rgba(255,248,236,0.6); }

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,248,236,0.75);
  text-decoration: none;
}
.footer-links a:hover { color: var(--honey); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,248,236,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .center-grid { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(43,32,19,0.08);
    box-shadow: var(--shadow-soft);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .main-nav .nav-cta { width: auto; text-align: center; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
}
