/* ===== VARIABLES ===== */
:root {
  --c-primary:       #0EA5C8;
  --c-primary-dark:  #0A8DAC;
  --c-deep:          #1B3A4B;
  --c-slate:         #6B7280;
  --c-text:          #1F2937;
  --c-text-light:    #6B7280;
  --c-bg:            #FFFFFF;
  --c-bg-alt:        #F8FAFC;
  --c-border:        #E5E7EB;
  --c-whatsapp:      #25D366;
  --c-whatsapp-dark: #1DA851;

  --ff-heading: 'Poppins', sans-serif;
  --ff-body:    'Inter', sans-serif;

  --radius:    0.75rem;
  --radius-sm: 0.375rem;
  --shadow:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);

  --max-w: 1100px;
  --nav-h: 68px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 5rem 0; }
.section--alt { background: var(--c-bg-alt); }

.section__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-deep);
  text-align: center;
  margin-bottom: 2.5rem;
}
.section__sub {
  text-align: center;
  color: var(--c-text-light);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  min-height: 48px;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14,165,200,.35);
}
.btn--primary:hover { background: var(--c-primary-dark); box-shadow: 0 4px 12px rgba(14,165,200,.4); }
.btn--outline {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: transparent;
}
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--whatsapp {
  background: var(--c-whatsapp);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,211,102,.35);
}
.btn--whatsapp:hover { background: var(--c-whatsapp-dark); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-deep);
}
.nav__logo img { border-radius: 50%; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__links a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--c-text);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--c-primary); background: rgba(14,165,200,.08); }
.nav__cta {
  background: var(--c-primary) !important;
  color: #fff !important;
  margin-left: 0.5rem;
  border-radius: var(--radius-sm) !important;
}
.nav__cta:hover { background: var(--c-primary-dark) !important; }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-deep);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(135deg, var(--c-deep) 0%, #0d6e8a 55%, var(--c-primary) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.25rem;
  width: 100%;
}
.hero__eyebrow {
  color: rgba(255,255,255,.7);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.85);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* ===== ENTITIES ===== */
.entities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.entity-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.entity-card--active:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.entity-card img { margin: 0 auto 1.25rem; height: 64px; width: auto; max-width: 200px; object-fit: contain; }
.entity-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: 0.5rem;
}
.entity-card p { color: var(--c-text-light); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.entity-card--soon {
  background: var(--c-bg-alt);
  border-style: dashed;
  opacity: .6;
}
.entity-card__plus {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--c-slate);
  margin: 0 auto 1rem;
}
.entity-card--soon h3 { color: var(--c-slate); }
.entity-card--soon p { margin-bottom: 0; }

/* ===== THE SCIENTIST ===== */
.scientist__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.scientist__header img { flex-shrink: 0; }
.logo-circle { border-radius: 50%; }
.scientist__header h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: 0.25rem;
}
.scientist__tagline { color: var(--c-primary); font-weight: 500; font-size: 1.0625rem; }
.scientist__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.scientist__block {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--c-primary);
  box-shadow: var(--shadow);
}
.scientist__block h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--c-deep);
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}
.scientist__block p { color: var(--c-text-light); line-height: 1.7; }
.values h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}
.values__list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(14,165,200,.1);
  color: var(--c-primary-dark);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(14,165,200,.2);
}

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(14,165,200,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-deep);
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--c-text-light); font-size: 0.9375rem; line-height: 1.6; }

/* ===== SECTEURS ===== */
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sector-card {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--c-primary);
}
.sector-card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.sector-card__emoji { font-size: 1.75rem; line-height: 1; }
.sector-card h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-deep);
}
.sector-card ul { display: flex; flex-direction: column; gap: 0.625rem; }
.sector-card li {
  color: var(--c-text-light);
  font-size: 0.9375rem;
  padding-left: 1.125rem;
  position: relative;
}
.sector-card li::before { content: '›'; position: absolute; left: 0; color: var(--c-primary); font-weight: 700; }

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.contact__info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  color: var(--c-text);
  transition: color .2s;
}
a.contact__item:hover { color: var(--c-primary); }
.contact__item svg { flex-shrink: 0; margin-top: 2px; color: var(--c-primary); }
.contact__item--whatsapp svg { color: var(--c-whatsapp); }
.contact__actions { display: flex; flex-direction: column; gap: 1rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--c-deep);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}
.footer__brand img { border-radius: 50%; }
.footer__legal { font-size: 0.8125rem; }
.footer__copy { font-size: 0.8125rem; color: rgba(255,255,255,.45); }

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: var(--c-whatsapp);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,.5);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.6); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; }
  .nav__links a { padding: 0.875rem 1rem; font-size: 1rem; }
  .nav__cta { margin-left: 0 !important; text-align: center; justify-content: center; }

  .section { padding: 3.5rem 0; }
  .hero { min-height: 80vh; }

  .entities__grid { grid-template-columns: 1fr; }

  .scientist__header { flex-direction: column; text-align: center; }
  .scientist__grid { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn--lg { width: 100%; justify-content: center; }

  .whatsapp-fab { display: flex; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .sectors__grid { grid-template-columns: 1fr; }
}

/* ===== YEENA THEME ===== */
.yeena-theme {
  --c-primary:      #2E8B45;
  --c-primary-dark: #226836;
  --c-deep:         #1B3A24;
}
.yeena-theme .hero {
  background: linear-gradient(135deg, #1B3A24 0%, #2E8B45 60%, #C49134 100%);
}
.yeena-theme .hero__sub { margin-bottom: 1.25rem; }
.yeena-theme .nav__links a:hover { background: rgba(46,139,69,.08); }
.yeena-theme .badge {
  background: rgba(46,139,69,.1);
  border-color: rgba(46,139,69,.2);
}
.yeena-theme .btn--primary {
  box-shadow: 0 2px 8px rgba(46,139,69,.35);
}
.yeena-theme .btn--primary:hover { box-shadow: 0 4px 12px rgba(46,139,69,.4); }

/* ===== YEENA — Award badge ===== */
.yeena-award {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196,145,52,.18);
  border: 1px solid rgba(196,145,52,.4);
  border-radius: 999px;
  padding: 0.375rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #C49134;
  margin-bottom: 1.75rem;
  letter-spacing: .03em;
}

/* ===== YEENA — Logo header ===== */
.yeena-header__logo {
  width: 180px;
  height: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ===== YEENA — Produits ===== */
.produits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.produit-card {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--c-primary);
  box-shadow: var(--shadow);
}
.produit-card h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--c-deep);
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}
.produit-card p { color: var(--c-text-light); line-height: 1.7; }
.distribution__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.distrib-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.125rem;
  background: rgba(46,139,69,.08);
  border: 1px solid rgba(46,139,69,.2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-primary-dark);
}

/* ===== YEENA — Social links ===== */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover { border-color: var(--c-primary); color: var(--c-primary); background: rgba(46,139,69,.05); }

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

/* ===== BACK TO TOP — scroll progress ring ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-deep);
  box-shadow: 0 2px 12px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.92);
  transition: opacity .3s, visibility .3s, transform .3s, box-shadow .2s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover { box-shadow: 0 4px 20px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.08); color: var(--c-primary); }

.back-to-top__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  border-radius: 50%;
}
.back-to-top__track {
  fill: none;
  stroke: var(--c-border);
  stroke-width: 2.5;
}
.back-to-top__progress {
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 119.4;
  transition: stroke-dashoffset .08s linear;
}
.back-to-top__arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform .2s;
}
.back-to-top:hover .back-to-top__arrow { transform: translateY(-1px); }

@media (max-width: 768px) {
  .back-to-top { bottom: 5.5rem; }
}
