/* ============================================================
   KUMBA — Design System
   Police : PT Sans Narrow (400, 700)
   Border-radius : 0 partout
   ============================================================ */

/* ------------------------------------------------------------
   1. Variables
   ------------------------------------------------------------ */
:root {
  --teal:       #1A9E96;
  --deep-teal:  #117A73;
  --red:        #D41F2A;
  --dark-red:   #A81520;
  --white:      #FFFFFF;
  --off-white:  #F5F0EB;
  --teal-light: #F0FAFA;
  --teal-alt:   #E8F6F5;
  --dark:       #1A1A1A;
  --text-teal:  #3a6460;
  --muted:      #5a7370;
  --border:     #CCE9E7;

  --font:       'PT Sans Narrow', sans-serif;
  --max-w:      1280px;
  --header-h:   70px;

  --pad-desktop: 90px 60px;
  --pad-tablet:  64px 32px;
  --pad-mobile:  48px 20px;
}

/* ------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ------------------------------------------------------------
   3. Typographie
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
}
h1 { font-size: 56px; letter-spacing: 0.02em; line-height: 1.05; }
h2 { font-size: 36px; letter-spacing: 0.04em; line-height: 1.10; }
h3 { font-size: 24px; letter-spacing: 0.04em; line-height: 1.15; }
h4 { font-size: 18px; letter-spacing: 0.06em; line-height: 1.20; }
h5 { font-size: 13px; letter-spacing: 0.14em; line-height: 1.30; }
h6 { font-size: 11px; letter-spacing: 0.20em; line-height: 1.30; }

/* ------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px;
}
.section { padding: var(--pad-desktop); }
.section--teal      { background: var(--teal); color: var(--white); }
.section--deep-teal { background: var(--deep-teal); color: var(--white); }
.section--off-white { background: var(--off-white); }
.section--teal-light { background: var(--teal-light); }
.section--teal-alt  { background: var(--teal-alt); }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section--deep-teal .section-label,
.section--teal .section-label { color: rgba(255,255,255,0.7); }
.section--teal-alt.cta-section h2 { color: var(--dark); }

/* ------------------------------------------------------------
   5. Boutons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--dark-red); border-color: var(--dark-red); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--deep-teal); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-whatsapp:hover { background: var(--dark-red); border-color: var(--dark-red); }

/* ------------------------------------------------------------
   6. Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.logo { display: flex; align-items: baseline; gap: 2px; }
.logo-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-teal);
}
.logo-dot { color: var(--red); font-size: 28px; line-height: 1; }
.logo--white .logo-text { color: var(--white); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2.5rem; }
.main-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: var(--teal); border-bottom-color: var(--teal); }

.header-cta { margin-left: 1.5rem; padding: 10px 24px; font-size: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.2s, opacity 0.2s;
}

/* ------------------------------------------------------------
   7. Mobile overlay
   ------------------------------------------------------------ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--deep-teal);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }
.mobile-overlay ul { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.mobile-overlay a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.mobile-overlay a:hover { color: rgba(255,255,255,0.7); }
.mobile-overlay .btn { font-size: 14px; padding: 10px 20px; letter-spacing: 0.14em; margin-top: 20px; }
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

/* ------------------------------------------------------------
   8. Hero sections
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--deep-teal);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 60px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero--center .hero-content { text-align: center; }

.hero-stats {
  display: flex;
  gap: 4rem;
  margin-top: 3rem;
  justify-content: center;
}
.hero-stat .stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 0.4rem;
}

/* Hero 2 colonnes (À Propos, Contact) */
.hero--cols .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero--cols .hero-right { font-size: 17px; line-height: 1.65; opacity: 0.9; }

/* ------------------------------------------------------------
   9. Section À Propos (résumé accueil)
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: var(--teal-alt);
}
.about-text { }
.about-text p { color: var(--muted); margin: 1.5rem 0; }

/* ------------------------------------------------------------
   10. Grille catégories (6 gammes)
   ------------------------------------------------------------ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.cat-card {
  background: var(--teal-light);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cat-card:hover { background: var(--teal-alt); }
.cat-card-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.15;
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
}
.cat-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--teal);
}
.cat-card h3 { color: var(--dark); }
.cat-card-count {
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   11. Process steps
   ------------------------------------------------------------ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}
.process-step { }
.step-num {
  font-size: 56px;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.process-step h3 { color: var(--white); margin-bottom: 0.75rem; }
.process-step p { color: rgba(255,255,255,0.75); }

/* ------------------------------------------------------------
   12. Impact metrics
   ------------------------------------------------------------ */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}
.impact-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.impact-card-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--teal-alt);
}
.impact-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  display: block;
}
.impact-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ------------------------------------------------------------
   13. CTA section
   ------------------------------------------------------------ */
.cta-section {
  text-align: center;
  padding: var(--pad-desktop);
}
.cta-section h2 { color: var(--white); margin-bottom: 2rem; }
.cta-section .btn { margin: 0 0.5rem; }

/* ------------------------------------------------------------
   14. Timeline (À Propos)
   ------------------------------------------------------------ */
.story-grid {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 5rem;
  align-items: start;
}
.timeline { position: relative; padding-left: 1rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--teal);
}
.timeline-year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.3rem;
}
.timeline-item p { color: var(--muted); font-size: 15px; }

.story-text h2 { margin-bottom: 1.5rem; }
.story-text p { color: var(--muted); margin-bottom: 1rem; }

/* ------------------------------------------------------------
   15. Mission / Vision
   ------------------------------------------------------------ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.mv-block h3 { color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.mv-block p { color: rgba(255,255,255,0.85); font-size: 17px; line-height: 1.7; }

/* ------------------------------------------------------------
   16. Valeurs
   ------------------------------------------------------------ */
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.valeur-card {
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--teal);
  background: var(--white);
}
.valeur-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--teal-alt);
  display: block;
  margin-bottom: 1rem;
}
.valeur-card h4 { margin-bottom: 0.75rem; }
.valeur-card p { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------
   17. Équipe
   ------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.team-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: var(--teal-alt);
}
.team-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.team-stat .stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  display: block;
}
.team-stat .stat-label { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------
   18. Partenaires
   ------------------------------------------------------------ */
.partners-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}
.partner-card img { max-height: 50px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: opacity 0.2s, filter 0.2s; }
.partner-card:hover img { filter: none; opacity: 1; }
.partner-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------
   19. Page Produits — filtre + recherche
   ------------------------------------------------------------ */
.catalogue-controls {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 2rem 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 100;
}
.filter-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover  { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

.search-wrap {
  margin-left: auto;
  position: relative;
}
.search-input {
  font-family: var(--font);
  font-size: 14px;
  padding: 9px 16px 9px 40px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  width: 240px;
  outline: none;
  transition: border-color 0.15s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--teal); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* ------------------------------------------------------------
   20. Grille produits
   ------------------------------------------------------------ */
.products-section { padding: 3rem 60px 5rem; }
.products-group { margin-bottom: 3rem; }
.products-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.product-card {
  background: var(--teal-light);
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.product-card:hover { background: var(--teal-alt); }
.product-card.hidden { display: none; }

.product-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  background: var(--teal-alt);
}
.product-placeholder {
  width: 100%;
  height: 140px;
  background: var(--teal-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.product-placeholder svg { opacity: 0.3; }

.product-cat-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-alt);
  display: inline-block;
  padding: 3px 8px;
  align-self: flex-start;
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.2;
}
.product-sku {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.product-weight {
  font-size: 12px;
  color: var(--text-teal);
  font-weight: 700;
}
.product-card-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.no-results {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  grid-column: 1 / -1;
}
.no-results.visible { display: block; }

/* ------------------------------------------------------------
   21. Slide panel
   ------------------------------------------------------------ */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.5);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.panel-backdrop.open { opacity: 1; pointer-events: all; }

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  max-width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 401;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.slide-panel.open { transform: translateX(0); }

.panel-header {
  background: var(--deep-teal);
  padding: 2rem;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
}
.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.panel-close:hover { background: rgba(255,255,255,0.25); }

.panel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  background: var(--teal);
}
.panel-img-placeholder {
  width: 100%;
  height: 180px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.panel-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 0.75rem;
}
.panel-title { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.panel-meta { font-size: 13px; color: rgba(255,255,255,0.7); }
.panel-meta span { margin-right: 1.5rem; }

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-tab {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  background: none;
}
.panel-tab:hover { color: var(--teal); }
.panel-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane p { color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }
.tab-pane strong { color: var(--dark); }
.tab-pane .empty-tab {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------
   22. Contact
   ------------------------------------------------------------ */
.contact-section { background: var(--off-white); }
.contact-layout {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 5rem;
  padding: var(--pad-desktop);
  max-width: var(--max-w);
  margin: 0 auto;
}

.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-teal);
  margin-bottom: 0.5rem;
}
.form-label .req { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color 0.15s;
}
.form-control:focus { border-color: var(--teal); }
.form-control::placeholder { color: var(--muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 140px; }

.contact-info h3 { margin-bottom: 1.5rem; color: var(--dark); }
.info-block { margin-bottom: 2rem; }
.info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}
.info-block p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.info-block a { color: var(--teal); }

.markets-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.market-badge {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.contact-map {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px 90px;
}
.contact-map iframe {
  width: 100%;
  height: 420px;
  border: 6px solid var(--white);
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.map-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Alert messages */
.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 14px;
}
.alert-success { background: var(--teal-alt); color: var(--deep-teal); border-left: 3px solid var(--teal); }
.alert-error   { background: #fef2f2; color: var(--dark-red); border-left: 3px solid var(--red); }

/* ------------------------------------------------------------
   23. Footer
   ------------------------------------------------------------ */
.site-footer { background: var(--deep-teal); color: var(--white); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 60px 3rem;
}
.footer-tagline { color: rgba(255,255,255,0.65); font-size: 14px; margin-top: 1rem; line-height: 1.6; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, border-color 0.2s;
}
.social-link:hover { color: var(--white); border-color: var(--white); }

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.20em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-nav ul li, .footer-contact address p { margin-bottom: 0.6rem; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,0.8); font-size: 14px; transition: color 0.15s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }

.footer-legal {
  background: #0D5E58;
  padding: 1rem 60px;
}
.footer-legal .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-legal p { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ------------------------------------------------------------
   24. Admin
   ------------------------------------------------------------ */
.admin-body { background: #f4f6f8; min-height: 100vh; }
.admin-header {
  background: var(--deep-teal);
  color: var(--white);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.admin-header a { color: rgba(255,255,255,0.8); font-size: 14px; }
.admin-header a:hover { color: var(--white); }
.admin-header .logout { margin-left: auto; color: rgba(255,255,255,0.6); }

.admin-container { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.admin-card { background: var(--white); padding: 2rem; border: 1px solid var(--border); margin-bottom: 2rem; }
.admin-card h1, .admin-card h2 { font-size: 22px; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--teal-light); }
.admin-table .thumb { width: 48px; height: 48px; object-fit: cover; background: var(--teal-alt); display: block; }
.badge-cat { font-size: 11px; font-weight: 700; background: var(--teal-alt); color: var(--teal); padding: 3px 8px; }
.action-link { font-size: 12px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--teal); margin-right: 1rem; }
.action-link.danger { color: var(--red); }
.action-link:hover { text-decoration: underline; }

.admin-form .form-group { margin-bottom: 1.25rem; }
.admin-form label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.admin-form input[type=text],
.admin-form input[type=number],
.admin-form input[type=file],
.admin-form select,
.admin-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  outline: none;
}
.admin-form textarea { resize: vertical; min-height: 160px; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--teal); }
.admin-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }

.img-preview { width: 100px; height: 100px; object-fit: cover; margin-top: 0.75rem; border: 1px solid var(--border); }

/* Toggle actif */
.toggle-actif { display: flex; align-items: center; gap: 0.75rem; }
.toggle-actif input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }

/* ------------------------------------------------------------
   25. Scroll-to-top
   ------------------------------------------------------------ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--deep-teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 18px;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }

/* ------------------------------------------------------------
   26. Animations & Interactivité
   ------------------------------------------------------------ */

/* Scroll reveal — état initial */
[data-anim] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
[data-anim="left"]  { transform: translateX(-44px); opacity: 0; }
[data-anim="right"] { transform: translateX(44px);  opacity: 0; }
[data-anim="scale"] { transform: scale(0.93) translateY(18px); opacity: 0; }
[data-anim="fade"]  { transform: none; opacity: 0; }

[data-anim].anim-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Hover lift — cartes catégories */
.cat-card {
  transition: background 0.2s,
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s;
  position: relative;
  z-index: 0;
}
.cat-card:hover {
  background: var(--teal-alt);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(26, 158, 150, 0.16);
  z-index: 2;
}

/* Hover lift — cartes produits */
.product-card {
  transition: background 0.15s,
              transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.22s;
  position: relative;
  z-index: 0;
}
.product-card:hover {
  background: var(--teal-alt);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26, 158, 150, 0.14);
  z-index: 2;
}

/* Hover lift — partenaires */
.partner-card {
  transition: border-color 0.2s, transform 0.22s, box-shadow 0.22s;
}
.partner-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(26, 158, 150, 0.11);
}

/* Hover glisse — timeline */
.timeline-item { transition: padding-left 0.2s; }
.timeline-item:hover { padding-left: 2.75rem; }

/* Nav — underline animé (remplace border-bottom statique) */
.main-nav a {
  position: relative;
  border-bottom: none !important;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--teal); }

/* Boutons — micro lift */
.btn {
  transition: background 0.2s, color 0.2s, border-color 0.2s,
              transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.15s;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Compteur — flash au démarrage */
@keyframes countPulse {
  0%   { color: var(--teal); }
  50%  { color: var(--white); }
  100% { color: var(--teal); }
}
.stat-value.counting, .impact-value.counting {
  animation: countPulse 0.3s ease-out;
}

/* ------------------------------------------------------------
   27. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .btn { padding: 10px 20px; font-size: 12px; }
  .container { padding: 0 32px; }
  .section { padding: var(--pad-tablet); }
  .hero-content { padding: 80px 32px 60px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .valeurs-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-controls { padding: 1.5rem 32px; }
  .products-section { padding: 2rem 32px 4rem; }
  .contact-layout { gap: 3rem; padding: var(--pad-tablet); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 3.5rem 32px 3rem; }
  .footer-legal { padding: 1rem 32px; }
  .contact-map { padding: 0 32px 64px; }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .btn { padding: 5px 12px; font-size: 11px; }
  .container { padding: 0 20px; }
  .section { padding: var(--pad-mobile); }

  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 60px 20px 40px; }
  .hero--cols .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
  .hero-stat .stat-value { font-size: 36px; }

  .about-grid, .team-grid, .story-grid, .mv-grid { grid-template-columns: 1fr; }
  .about-img, .team-img { height: 260px; }

  .categories-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }
  .impact-grid { grid-template-columns: 1fr; }
  .valeurs-grid { grid-template-columns: 1fr 1fr; }

  .catalogue-controls {
    padding: 1rem 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .search-wrap { margin-left: 0; width: 100%; }
  .search-input { width: 100%; }

  .products-section { padding: 1.5rem 20px 3rem; }
  .products-grid { grid-template-columns: 1fr; }

  .slide-panel { width: 100%; }

  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-map { padding: 0 20px 48px; }

  .footer-inner { grid-template-columns: 1fr; padding: 3rem 20px 2rem; }
  .footer-legal { padding: 1rem 20px; }
  .footer-legal .container { flex-direction: column; text-align: center; }
}
