/* Import police Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
  --vert-ddi: #99db12;
  --vert-ddi-dark: #7bc00a;
  --bleu-incubateur: #1c809d;
  --orange-fablab: #ff5c26;
  --gris-fonce: #484848;
  --gris-clair: #e8e8e8;
  --gris-tres-clair: #f5f5f5;
  --blanc: #ffffff;
  --noir: #000000;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  
}

/* Global button styles */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--vert-ddi);
  color: var(--blanc);
  border-color: var(--vert-ddi);
}

.btn-primary:hover {
  background: var(--vert-ddi-dark);
  border-color: var(--vert-ddi-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--vert-ddi);
  border-color: var(--vert-ddi);
}

.btn-secondary:hover {
  background: var(--vert-ddi);
  color: var(--blanc);
}

/* Section 3 Piliers */
.pillars-section {
  padding: 80px 0;
  background: var(--gris-tres-clair);
}

.pillars-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  color: var(--noir);
}

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

.pillar-card {
  background: var(--blanc);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.fablab-card {
  border-top: 4px solid #ff5c26;
}

.incubateur-card {
  border-top: 4px solid #1c809d;
}

.technopole-card {
  border-top: 4px solid #99db12;
}

.pillar-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pillar-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: var(--blanc) !important;
  z-index: 2;
}

.pillar-image-overlay * {
  color: var(--blanc) !important;
}

.pillar-image-overlay .pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-image-overlay h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.pillar-image-overlay .pillar-tagline {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.fablab-card .pillar-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: linear-gradient(to top, rgba(255,92,38,0.95), transparent);
  z-index: 1;
}

.incubateur-card .pillar-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: linear-gradient(to top, rgba(28,128,157,0.95), transparent);
  z-index: 1;
}

.technopole-card .pillar-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: linear-gradient(to top, rgba(153,219,18,0.95), transparent);
  z-index: 1;
}

.pillar-card:hover .pillar-image img {
  transform: scale(1.05);
}

.pillar-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fablab-card .pillar-icon {
  color: #ff5c26;
}

.incubateur-card .pillar-icon {
  color: #1c809d;
}

.technopole-card .pillar-icon {
  color: #99db12;
}

.pillar-content h3,
.pillar-content .pillar-tagline {
  display: none;
}

.pillar-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--noir);
}

.pillar-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-fonce);
  margin-bottom: 10px;
}

.fablab-card .pillar-tagline {
  color: #ff5c26;
}

.incubateur-card .pillar-tagline {
  color: #1c809d;
}

.technopole-card .pillar-tagline {
  color: #99db12;
}

.pillar-description {
  font-size: 14px !important;
  line-height: 1.6;
  color: var(--gris-fonce);
  margin-bottom: 15px;
}

.pillar-list {
  list-style: none;
  margin-bottom: 15px;
}

.pillar-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gris-fonce);
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.pillar-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: bold;
}

.fablab-card .pillar-list li::before {
  color: #ff5c26;
}

.incubateur-card .pillar-list li::before {
  color: #1c809d;
}

.technopole-card .pillar-list li::before {
  color: #99db12;
}

.pillar-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.pillar-ctas .btn-primary {
  text-align: center;
}

.cta-link {
  font-size: 13px;
  color: var(--gris-fonce);
  text-decoration: none;
  text-align: center;
  transition: color 0.3s;
}

.cta-link:hover {
  color: var(--vert-ddi);
}

.fablab-card .cta-link:hover {
  color: #ff5c26;
}

.incubateur-card .cta-link:hover {
  color: #1c809d;
}

.technopole-card .cta-link:hover {
  color: #99db12;
}

/* CTA colorés par pilier */
.fablab-card .pillar-ctas .btn-primary {
  background: #ff5c26;
  border-color: #ff5c26;
  border-radius: 0;
}

.fablab-card .pillar-ctas .btn-primary:hover {
  background: transparent;
  color: #ff5c26 !important;
}

.incubateur-card .pillar-ctas .btn-primary {
  background: #1c809d;
  border-radius: 0;
  border-color: #1c809d;
}

.incubateur-card .pillar-ctas .btn-primary:hover {
  background: transparent;
  color: #1c809d !important;
}

.technopole-card .pillar-ctas .btn-primary {
  background: #99db12;
  border-color: #99db12;
  border-radius: 0;
}

.technopole-card .pillar-ctas .btn-primary:hover {
  background: transparent;
  color: #99db12 !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pillar-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .pillars-section {
    padding: 40px 0;
  }
  
  .pillars-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .pillar-image {
    height: 220px;
  }
  
  .pillar-ctas {
    flex-direction: column;
  }
  
  .pillar-ctas .btn-primary,
  .pillar-ctas .btn-secondary {
    width: 100%;
  }
  
  .pillar-content {
    padding: 20px;
  }
  
  .pillar-card h3 {
    font-size: 16px;
  }
  
  .pillar-description {
    font-size: 13px;
  }
  
  .pillar-list li {
    font-size: 12px;
  }
}
