/* ===========================================================
   Soutenons l'apiculture locale — Les magasins E.Leclerc d'Île-de-France
   Feuille de style partagée
   =========================================================== */

:root {
  --honey: #f2a900;
  --honey-dark: #c9860b;
  --honey-light: #ffe9b8;
  --green: #3f6b32;
  --green-dark: #2b4a22;
  --cream: #fffbe0;
  --cream-alt: #fff0ad;
  --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-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.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.hero-photo {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 72px 0 56px;
}

.hero.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(20,15,8,0.88) 0%, rgba(20,15,8,0.72) 38%, rgba(20,15,8,0.38) 70%, rgba(20,15,8,0.22) 100%);
}

.hero.hero-photo .wrap {
  position: relative;
  z-index: 1;
}

.hero.hero-photo .eyebrow {
  background: rgba(255,255,255,0.14);
  color: var(--honey-light);
  backdrop-filter: blur(2px);
}

.hero.hero-photo h1 { color: var(--white); }
.hero.hero-photo h1 em { color: var(--honey); }

.hero.hero-photo p.lead { color: rgba(255,248,236,0.88); }

.hero.hero-photo .btn-secondary {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.hero.hero-photo .btn-secondary:hover { background: rgba(255,255,255,0.12); }

.hero.hero-photo .stat b { color: var(--white); }
.hero.hero-photo .stat span { color: rgba(255,248,236,0.75); }

.hero .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  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,
.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-facade {
  cursor: pointer;
  background: var(--ink);
}

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

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--honey);
  color: #3a2600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}

.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Lecteur avec contrôles maison (remplace les contrôles YouTube natifs) */
.yt-player {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.yt-mount,
.yt-mount iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  background: transparent;
}

.yt-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0));
}

.yt-btn {
  background: none;
  border: 0;
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.yt-time {
  color: var(--white);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.yt-seek {
  flex: 1;
  accent-color: var(--honey);
  cursor: pointer;
}

.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); }

/* ---------- Qui sommes-nous ---------- */
.about-text {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.about-photo {
  max-width: 420px;
  margin: 34px auto 0;
}

.about-photo-card.photo-card img {
  height: 420px;
}

.about-photo-card.portrait-placeholder {
  height: 420px;
  background: linear-gradient(135deg, var(--honey-light), var(--cream-alt));
  color: var(--honey-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

@media (max-width: 640px) {
  .about-photo { max-width: 100%; }
  .about-photo-card.photo-card img,
  .about-photo-card.portrait-placeholder { height: 280px; }
}

.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); }

.band-green.band-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}

.band-green.band-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(15,36,10,0.62), rgba(15,36,10,0.5) 45%, rgba(15,36,10,0.38));
}

.band-green.band-photo .wrap {
  position: relative;
  z-index: 1;
}

.band-green.band-photo .section-head h2,
.band-green.band-photo .section-head p,
.band-green.band-photo .step h3,
.band-green.band-photo .step p {
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

.band-green.band-photo .step {
  background: rgba(15,25,10,0.62);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(1px);
}

/* ---------- 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 img.map-static {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.filter-btn {
  display: inline-flex;
  align-items: center;
  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);
}

.dept-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dept-color, var(--honey-dark));
  margin-right: 7px;
  flex: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

.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: flex-start;
  gap: 12px;
  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);
}

.list-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  flex: none;
}

.center-list .group-header {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  padding: 12px 2px 3px;
}

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

/* ---------- Photo card (real hive photos) ---------- */
.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}

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

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

/* ---------- Photo gallery (homepage) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.gallery-grid .g-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery-grid .g-item.g-big { grid-row: span 2; }

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

.gallery-grid .g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-grid .g-item.g-big { grid-column: span 2; grid-row: auto; }
  .gallery-grid .g-item { height: 200px; }
}

/* ---------- 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;
}

.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; }
}
