/* --- VARIABLES --- */
:root {
  --primary-orange: #f97316;
  --primary-dark: #d35e13;
  --text-main: #1e293b;
  --text-muted: #6b7280;
  --bg-light: #f5f6f8;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg-light);
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- HERO (Cohérence Devis & Événements) --- */
.hero { 
    background-color: var(--primary-orange); 
    padding: 40px 0; 
    color: white; 
}

.container-header { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

.back-link-pill {
    display: inline-block;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    transition: 0.3s;
}

.back-link-pill:hover { 
    background: rgba(0, 0, 0, 0.3); 
    transform: translateX(-5px); 
}

.hero h1 { 
    font-size: clamp(28px, 5vw, 48px); 
    font-weight: 800; 
    margin: 0; /* Supprime la marge par défaut qui agrandissait le bloc orange */
    letter-spacing: -1px; 
    line-height: 1.1;
}

.hero .subtitle { 
    font-size: clamp(14px, 2vw, 18px); 
    opacity: 0.9; 
}

/* --- CONTENEUR PRINCIPAL --- */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* --- GRID SYSTEM --- */
.grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 colonne par défaut (mobile) */
  gap: 32px;
}

/* --- CARD STYLE --- */
.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e5e7eb; /* Border directe */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image {
  position: relative;
  height: 260px;
}

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

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}

.card-content {
  padding: 24px;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card-content p {
  color: var(--text-muted);
}

/* --- SECTION INFO (BAS DE PAGE) --- */
.info-wrapper {
  margin-top: 60px;
}

.info {
  background: white;
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  border: 1px solid #e5e7eb; /* Border directe */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info h2 {
  font-size: clamp(24px, 4vw, 35px);
  margin-bottom: 20px;
  color: var(--text-main);
}

.info p {
  font-size: 1.1rem;
  color: #374151;
  max-width: 800px;
  margin: 0 auto;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablette (768px+) */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile & Ajustements Hero (900px) */
@media (max-width: 900px) {
    .container-header { padding: 0 30px; }
    .hero { text-align: center; }
}

/* Smartphones (600px) */
@media (max-width: 600px) {
    .hero { padding: 30px 0; }
    .container-header { padding: 0 20px; }
    .container { padding: 0 15px; }
    
    .section { padding: 40px 0; }
    
    .card-image { height: 200px; }
    
    .info { padding: 35px 20px; }
    
    .back-link-pill { margin-bottom: 20px; }
}

/* Très petits écrans (400px) */
@media (max-width: 400px) {
    .card-content h3 { font-size: 1.3rem; }
    .badge { font-size: 0.75rem; padding: 4px 10px; }
}