/* CSA — pôle impression African Services Plus — feuille de style commune */

:root {
  --bg: oklch(0.14 0.008 250);
  --bg-alt: oklch(0.11 0.006 250);
  --bg-header: oklch(0.12 0.006 250 / 0.85);
  --bg-card: oklch(0.19 0.01 250);
  --bg-lightbox: oklch(0.16 0.008 250);
  --bg-overlay: oklch(0.08 0.004 250 / 0.92);
  --border: oklch(0.32 0.02 250 / 0.4);
  --border-input: oklch(0.35 0.02 250 / 0.5);
  --gold: #F2791C;       /* accent CSA INK (par defaut) */
  --gold-hover: #FF9142;
  --text: oklch(0.95 0.006 90);
  --text-soft: oklch(0.85 0.01 90);
  --text-muted: oklch(0.7 0.015 250);
  --text-muteder: oklch(0.65 0.015 250);
  --text-dim: oklch(0.6 0.012 250);
  --text-dimmer: oklch(0.55 0.01 250);
  --placeholder-a: oklch(0.24 0.012 250);
  --placeholder-b: oklch(0.2 0.01 250);
}

body.theme-services {
  --gold: #2E86E8;        /* accent CSA SERVICES */
  --gold-hover: #5BA3F0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
::selection { background: color-mix(in oklch, var(--gold) 30%, transparent); }
img { max-width: 100%; display: block; }

.eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 50px;
  text-align: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 64px);
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.logo span { color: var(--gold); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--text-soft);
}

.nav-link.active { color: var(--gold); font-weight: 600; }

.nav-cta {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.nav-mobile-panel {
  position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--bg-alt);
  z-index: 999;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-mobile-panel.open { display: flex; }

.nav-mobile-panel a {
  color: var(--text);
  font-size: 17px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.nav-mobile-panel a.cta { color: var(--gold); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero carrousel (accueil) ---------- */

.hero-carousel {
  position: relative;
  height: 78vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(24px, 8vw, 130px) 80px;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0px, var(--placeholder-a) 26px, var(--placeholder-b) 26px, var(--placeholder-b) 52px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-slide-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, oklch(0.08 0.004 250 / 0.8), oklch(0.08 0.004 250 / 0.15) 55%);
}

.hero-slide-inner { position: relative; max-width: 780px; }

.hero-slide-eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-slide-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--text);
}

.hero-slide-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 22px;
}

.hero-slide-cta { font-size: 13px; letter-spacing: 0.05em; color: var(--gold); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: oklch(0 0 0 / 0.4);
  border: 1px solid oklch(0.4 0.006 250 / 0.5);
  color: var(--text-soft);
  font-size: 22px;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid oklch(0.8 0.006 250);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active { background: var(--gold); }

/* ---------- Intro pôle ---------- */

.pole-intro {
  padding: 110px clamp(24px, 5vw, 64px);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.pole-intro h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 24px;
}

.pole-intro p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Cartes activités (accueil) ---------- */

.activities-section { padding: 0 clamp(24px, 5vw, 64px) 130px; }

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.activity-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.activity-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.activity-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0px, var(--placeholder-a) 16px, var(--placeholder-b) 16px, var(--placeholder-b) 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 20px;
}

.activity-card-body { padding: 32px; }

.activity-card-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 10px;
}

.activity-card-baseline {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.activity-card-link { font-size: 13px; letter-spacing: 0.03em; color: var(--gold); }

/* ---------- Pourquoi nous choisir / Ce qui nous distingue ---------- */

.why-section { padding: 110px clamp(24px, 5vw, 64px); background: var(--bg-alt); }
.why-section-inner { max-width: 1280px; margin: 0 auto; }
.why-section .eyebrow { text-align: center; }

.points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.point-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 12px;
}

.point-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.point-desc { font-size: 14px; line-height: 1.6; color: var(--text-muteder); }

/* ---------- Page filiale : hero ---------- */

.filiale-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 80px clamp(24px, 5vw, 64px) 90px;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0px, var(--placeholder-a) 26px, var(--placeholder-b) 26px, var(--placeholder-b) 52px);
  overflow: hidden;
}

.filiale-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.filiale-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, oklch(0.08 0.004 250 / 0.82), oklch(0.08 0.004 250 / 0.2) 55%);
}

.filiale-hero-inner { position: relative; max-width: 720px; }

.filiale-logo-badge {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.filiale-hero-eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.filiale-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  margin: 0;
}

/* ---------- Activité (texte) ---------- */

.activity-text {
  padding: 100px clamp(24px, 5vw, 64px);
  max-width: 900px;
  margin: 0 auto;
}

.activity-text p {
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 20px;
}

.activity-text p:last-child { margin-bottom: 0; }

/* ---------- Ce qui nous distingue (filiale) ---------- */

.distinguish-section {
  padding: 0 clamp(24px, 5vw, 64px) 120px;
  background: var(--bg-alt);
}

.distinguish-inner { max-width: 1280px; margin: 0 auto; padding-top: 100px; }
.distinguish-inner .eyebrow { text-align: center; }

/* ---------- Galerie "Nos réalisations en images" ---------- */

.gallery-section { padding: 120px clamp(24px, 5vw, 64px); }
.gallery-section .eyebrow { text-align: center; }
.gallery-inner { max-width: 1280px; margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-card {
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  display: block;
  width: 100%;
  position: relative;
  transition: border-color 0.2s;
}

.gallery-card:hover { border-color: var(--gold); }

.gallery-card-image {
  height: 180px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--placeholder-a);
  background-image: repeating-linear-gradient(135deg, var(--placeholder-a) 0px, var(--placeholder-a) 16px, var(--placeholder-b) 16px, var(--placeholder-b) 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 10px;
  color: var(--text-dimmer);
  text-align: center;
  padding: 0 16px;
}

.gallery-card-media-count {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: monospace;
  font-size: 10px;
  color: var(--text-soft);
  background: oklch(0 0 0 / 0.55);
  padding: 3px 7px;
}

.gallery-card-body { padding: 20px; }

.gallery-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.gallery-card-desc { font-size: 13px; line-height: 1.5; color: var(--text-dim); }

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-overlay.open { display: flex; }

.lightbox-box {
  max-width: 900px;
  width: 100%;
  background: var(--bg-lightbox);
  border: 1px solid var(--border-input);
}

.lightbox-carousel {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, oklch(0.26 0.012 250) 0px, oklch(0.26 0.012 250) 20px, oklch(0.21 0.01 250) 20px, oklch(0.21 0.01 250) 40px);
}

.lightbox-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-slide.active { opacity: 1; pointer-events: auto; }

.lightbox-slide-image { width: 100%; height: 100%; background-size: cover; background-position: center; }

.lightbox-slide-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

.lightbox-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  padding: 0 24px;
}

.lightbox-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: oklch(0 0 0 / 0.5);
  border: none;
  color: var(--text-soft);
  font-size: 22px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 2;
}

.lightbox-carousel-arrow.prev { left: 16px; }
.lightbox-carousel-arrow.next { right: 16px; }

.lightbox-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.lightbox-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: oklch(1 0 0 / 0.35);
  cursor: pointer;
  padding: 0;
}

.lightbox-dots button.active { background: var(--gold); }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: oklch(0 0 0 / 0.5);
  border: none;
  color: var(--text-soft);
  font-size: 16px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2;
}

.lightbox-body { padding: 28px 32px; }

.lightbox-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.lightbox-desc { font-size: 14px; line-height: 1.6; color: var(--text-muteder); }

/* ---------- Bloc pôle (rattachement) ---------- */

.pole-link-section {
  padding: 100px clamp(24px, 5vw, 64px);
  background: var(--bg-alt);
  text-align: center;
}

.pole-link-section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Contact ---------- */

.contact-section { padding: 120px clamp(24px, 5vw, 64px); }

.contact-header { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-header .eyebrow { text-align: center; }

.contact-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 40px;
}

.contact-success {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  color: var(--gold);
  display: none;
}

.contact-success.visible { display: block; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.contact-form textarea { resize: vertical; }

.contact-form button {
  background: var(--gold);
  border: none;
  color: oklch(0.14 0.008 250);
  padding: 15px;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.contact-form button:disabled { opacity: 0.6; cursor: default; }

.contact-details {
  max-width: 640px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muteder);
}

.contact-details a { color: var(--text-muteder); }
.contact-details a:hover { color: var(--gold); }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 20px auto 0;
  color: #25D366;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.btn-whatsapp:hover { color: #1DA851; text-decoration: underline; }
.btn-whatsapp svg { fill: currentColor; }

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muteder);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 50px clamp(24px, 5vw, 64px) 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.footer-logo span { color: var(--gold); }

.footer-group-link { font-size: 13px; color: var(--text-dim); }
.footer-group-link a { color: oklch(0.8 0.006 250); border-bottom: 1px solid oklch(0.4 0.006 250); }

.footer-copyright { font-size: 13px; color: var(--text-dimmer); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  color: var(--text);
  padding: 14px 22px;
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.error { border-color: oklch(0.6 0.15 25); }
.toast.success { border-color: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .activities-grid { grid-template-columns: 1fr; }
  .points-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .points-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
