/* ================================
   ISC – Impact Sociétal Conseil
   Shared Stylesheet
   ================================ */

:root {
  --green-dark: #1b4332;
  --green: #2d6a4f;
  --green-light: #40916c;
  --gold: #c8941a;
  --gold-light: #e9b84b;
  --ivory: #f8f4ee;
  --cream: #fdf9f4;
  --earth: #8b6914;
  --text: #1c1c1c;
  --text-muted: #5a5a5a;
  --white: #ffffff;
  --border: #e2d9cc;
  --shadow: rgba(27, 67, 50, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px var(--shadow);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--green-dark);
}

.nav-mobile {
  display: none;
  list-style: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
  gap: 4px;
}

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

.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid var(--green-dark);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}

.btn-primary.btn-light {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.btn-primary.btn-light:hover {
  background: var(--ivory);
}

.btn-primary.btn-full {
  width: 100%;
  text-align: center;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green-dark);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 2px solid var(--green-dark);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-outline.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ---- HERO ---- */
.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 24px 80px;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
}

.hero-bg-pattern {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(200, 148, 26, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(27, 67, 50, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--green-dark);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 24px 80px rgba(27, 67, 50, 0.14);
  border: 1px solid var(--border);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-logo {
  width: 280px;
  height: auto;
  object-fit: contain;
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(200, 148, 26, 0.1);
  border-radius: 2px;
}

.section-label.light {
  color: var(--gold-light);
  background: rgba(233, 184, 75, 0.2);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--green-dark);
  margin-bottom: 48px;
}

/* ---- ABOUT SECTION ---- */
.about-section {
  padding: 100px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--green-dark);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--green-dark);
  font-weight: 600;
}

.link-arrow {
  display: inline-block;
  color: var(--green);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 12px;
  transition: transform 0.2s;
}

.link-arrow:hover { transform: translateX(4px); }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.pillar:hover {
  box-shadow: 0 8px 32px var(--shadow);
}

.pillar-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pillar h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- DOMAINS SECTION ---- */
.domains-section {
  background: var(--green-dark);
  padding: 100px 24px;
}

.domains-section .section-label {
  color: var(--gold-light);
  background: rgba(233, 184, 75, 0.15);
}

.domains-section .section-title {
  color: var(--white);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.domain-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 28px 24px;
  transition: background 0.2s, transform 0.2s;
}

.domain-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.domain-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 300;
}

.domain-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.domain-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--gold);
  padding: 80px 24px;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  position: relative;
  background: var(--green-dark);
  padding: 100px 24px 80px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(200, 148, 26, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(64, 145, 108, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
}

/* ---- SERVICES ---- */
.services-section {
  padding: 100px 24px;
}

.service-block {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  max-width: 1140px;
  margin: 0 auto;
}

.service-block.reverse {
  grid-template-columns: auto auto 1fr;
}

.service-block.reverse .service-number { order: 0; }
.service-block.reverse .service-icon-block { order: 1; }
.service-block.reverse .service-content { order: 2; }

.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--border);
  font-weight: 300;
  line-height: 1;
  width: 80px;
  flex-shrink: 0;
}

.service-content h2 {
  font-size: 1.9rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.service-intro {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

.service-icon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.service-icon-big {
  font-size: 2.4rem;
}

/* ---- APPROACH ---- */
.approach-section {
  background: var(--ivory);
  padding: 100px 24px;
}

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

.approach-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid var(--border);
}

.approach-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.approach-dot.green { background: var(--green); }
.approach-dot.gold { background: var(--gold); }
.approach-dot.earth { background: var(--earth); }

.approach-card h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.approach-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---- ACTIVITIES ---- */
.activities-intro {
  padding: 60px 24px 0;
}

.lead-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.8;
}

.upload-section {
  padding: 60px 24px 100px;
}

.upload-header {
  margin-bottom: 32px;
}

.upload-header h2 {
  font-size: 2rem;
  color: var(--green-dark);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

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

.docs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  transition: box-shadow 0.2s;
}

.doc-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
}

.doc-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
}

.doc-info h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.doc-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.doc-meta {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.doc-download {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.doc-download:hover {
  background: var(--green-dark);
  color: var(--white);
}

.admin-cta {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-cta a {
  color: var(--green);
  font-weight: 500;
}

/* ---- TIMELINE ---- */
.timeline-section {
  background: var(--ivory);
  padding: 100px 24px;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px auto 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.timeline-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--green-dark);
  font-weight: 600;
  text-align: right;
  padding-right: 8px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ---- CONTACT ---- */
.contact-section {
  padding: 100px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  max-width: 1140px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  font-size: 1rem;
  color: var(--text);
}

.contact-item a:hover { color: var(--green); }

.contact-hours {
  margin-top: 32px;
  padding: 20px;
  background: var(--ivory);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contact-hours strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-hours p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ---- CONTACT FORM ---- */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
}

.contact-form h2 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  margin-top: 16px;
  padding: 16px;
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid var(--green-light);
  border-radius: 4px;
  color: var(--green-dark);
  font-size: 0.95rem;
}

/* ---- MAP ---- */
.map-section {
  padding: 80px 24px;
  background: var(--ivory);
}

.map-placeholder {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 80px 40px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.map-pin {
  font-size: 3rem;
  margin-bottom: 16px;
}

.map-placeholder strong {
  font-size: 1.1rem;
  color: var(--green-dark);
}

.map-placeholder p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--green-dark);
  padding: 70px 24px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong,
.footer-contact strong {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-contact p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin: 0;
}

.footer-contact a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  padding: 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px;
    min-height: auto;
  }

  .hero-ctas { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { display: none; }

  .about-grid,
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-block,
  .service-block.reverse {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .service-icon-block { display: none; }
  .service-block.reverse .service-number { order: 0; }
  .service-block.reverse .service-content { order: 1; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .timeline::before { left: 80px; }
  .timeline-item { grid-template-columns: 80px auto 1fr; }
  .timeline-date { font-size: 1.1rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }

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

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 28px 20px; }

  .doc-card {
    flex-wrap: wrap;
  }

  .doc-download { width: 100%; justify-content: center; }
}
