/* =====================================================================
   Decolletage.fr — Système de design
   Portail B2B industrie du décolletage et usinage de précision
   ===================================================================== */

/* -------------------------------------------------
   1. RESET & BASE
   ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; font-weight: 700; color: #0f172a; }
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* -------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------- */
:root {
  /* Couleurs principales */
  --primary:        #1e3a8a;     /* Bleu industriel sobre */
  --primary-dark:   #172554;
  --primary-light:  #3b82f6;
  --primary-50:     #eff6ff;
  --primary-100:    #dbeafe;
  --primary-200:    #bfdbfe;
  
  --accent:         #f59e0b;     /* Orange/ambre comme l'acier chaud */
  --accent-dark:    #d97706;
  --accent-50:      #fffbeb;
  
  /* Neutres */
  --bg:             #fafafa;
  --bg-card:        #ffffff;
  --bg-soft:        #f5f5f4;
  --bg-dark:        #0f172a;
  --bg-darker:      #020617;
  
  --text:           #0f172a;
  --text-muted:     #475569;
  --text-light:     #64748b;
  --text-soft:      #94a3b8;
  
  --border:         #e5e7eb;
  --border-strong:  #d1d5db;
  --border-soft:    #f1f5f9;
  
  /* Sémantiques */
  --success:        #16a34a;
  --success-bg:     #f0fdf4;
  --warning:        #ea580c;
  --warning-bg:     #fff7ed;
  --danger:         #dc2626;
  --danger-bg:      #fef2f2;
  --info:           #0284c7;
  --info-bg:        #f0f9ff;
  
  /* Layout */
  --container:      1200px;
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  
  /* Ombres */
  --shadow-xs:      0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:      0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:         0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg:      0 10px 30px rgba(15, 23, 42, 0.12);
  
  /* Transitions */
  --transition:     150ms ease;
}

/* -------------------------------------------------
   3. LAYOUT
   ------------------------------------------------- */
.container { 
  max-width: var(--container); 
  margin: 0 auto; 
  padding: 0 24px; 
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #e2e8f0; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

/* -------------------------------------------------
   4. HEADER & NAVIGATION
   ------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.main-nav a:hover {
  color: var(--primary);
}
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1.2rem;
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.is-open { 
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.is-open ul { 
    flex-direction: column; 
    gap: 0;
    align-items: flex-start;
  }
  .main-nav.is-open li { width: 100%; }
  .main-nav.is-open a { 
    padding: 12px 0; 
    border: none;
    display: block;
    width: 100%;
  }
  .menu-toggle { display: inline-block; }
}

/* -------------------------------------------------
   5. BOUTONS
   ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* -------------------------------------------------
   6. PAGE HEADER (titre de page)
   ------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245,158,11,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 2.5rem;
}
.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 0;
  max-width: 700px;
}

/* Variante claire */
.page-header-light {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 40px 0 30px;
}
.page-header-light::before { display: none; }
.page-header-light h1 { color: var(--text); }
.page-header-light p { color: var(--text-muted); }

/* -------------------------------------------------
   7. BREADCRUMB
   ------------------------------------------------- */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--text-soft);
}
.breadcrumb a {
  color: var(--text-light);
  transition: var(--transition);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child {
  color: var(--text);
  font-weight: 500;
}

/* -------------------------------------------------
   8. CARDS
   ------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* Cards en grille */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Card entreprise (style spécifique) */
.card-entreprise {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.card-entreprise:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-entreprise.is-premium {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-50) 0%, #fff 80px);
}
.card-entreprise .badge-premium {
  position: absolute;
  top: 14px;
  right: 14px;
}
.card-entreprise h3 {
  font-size: 1.1rem;
  margin: 0;
}
.card-entreprise h3 a {
  color: var(--text);
  transition: var(--transition);
}
.card-entreprise h3 a:hover { color: var(--primary); }

.card-entreprise .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.card-entreprise .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-entreprise .description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.card-entreprise .footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* -------------------------------------------------
   9. BADGES & TAGS
   ------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--primary-50);
  color: var(--primary);
}
.badge-premium { background: var(--accent); color: #fff; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--bg-soft); color: var(--text-muted); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-soft);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

/* -------------------------------------------------
   10. FORMULAIRES
   ------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}
.form-group label,
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-help {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-light);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1.4;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
textarea { resize: vertical; min-height: 100px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* -------------------------------------------------
   11. ANNUAIRE — LAYOUT SIDEBAR + RÉSULTATS
   ------------------------------------------------- */
.annuaire-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .annuaire-layout { grid-template-columns: 1fr; }
}

.annuaire-filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 88px;
}
.annuaire-filters .filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.annuaire-filters .filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.annuaire-filters h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.filter-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-list a:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.filter-list a.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.filter-list .count {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-soft);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 999px;
}
.filter-list a.active .count {
  background: var(--primary);
  color: #fff;
}

.annuaire-results .results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.annuaire-results .results-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.annuaire-results .results-count strong {
  color: var(--text);
  font-size: 1.1rem;
}

/* -------------------------------------------------
   12. EMPTY STATES
   ------------------------------------------------- */
.empty-state {
  background: #fff;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 60px 30px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text);
}
.empty-state p { margin-bottom: 20px; }

/* -------------------------------------------------
   13. PAGINATION
   ------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a, 
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* -------------------------------------------------
   14. HOMEPAGE - SECTIONS SPÉCIFIQUES
   ------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(245,158,11,0.1) 0%, transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}
.hero .subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
}
.hero-search {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1;
  border: none;
  font-size: 1rem;
  padding: 12px 16px;
}
.hero-search input:focus {
  box-shadow: none;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 0 50px; }
  .hero-search { flex-direction: column; }
}

/* Stats banner */
.stats-banner {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-item .label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Section catégories en home */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.category-card h3 {
  font-size: 1rem;
  color: var(--text);
}
.category-card .count {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Section header (titre + intro de section) */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 {
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* -------------------------------------------------
   15. EMPLOI - LISTES
   ------------------------------------------------- */
.offre-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}
.offre-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.offre-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.offre-card h3 a { color: var(--text); }
.offre-card h3 a:hover { color: var(--primary); }
.offre-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
}
.offre-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* -------------------------------------------------
   16. ARTICLES (actualités)
   ------------------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.article-card .image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-soft);
}
.article-card .body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.35;
  flex: 1;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); }
.article-card .excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* -------------------------------------------------
   17. FICHE ENTREPRISE (page détail)
   ------------------------------------------------- */
.fiche-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 40px 0 30px;
}
.fiche-header .top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.fiche-header .logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.fiche-header .info {
  flex: 1;
  min-width: 280px;
}
.fiche-header h1 {
  margin-bottom: 8px;
}
.fiche-header .tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.fiche-header .badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fiche-header .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fiche-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .fiche-layout { grid-template-columns: 1fr; }
}
.fiche-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.fiche-section h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.fiche-section .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fiche-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}
.contact-card .item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}
.contact-card .item:last-child { border-bottom: none; }
.contact-card .item strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-card .item a { color: var(--primary); }

/* -------------------------------------------------
   18. FOOTER
   ------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 60px 0 30px;
  margin-top: 80px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; }
.site-footer a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: var(--transition);
}
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}
.footer-bottom .links {
  display: flex;
  gap: 20px;
}

/* -------------------------------------------------
   19. FLASH MESSAGES
   ------------------------------------------------- */
.flash {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid;
  font-size: 0.95rem;
}
.flash-success { background: var(--success-bg); border-color: #bbf7d0; color: #15803d; }
.flash-error   { background: var(--danger-bg);  border-color: #fecaca; color: #b91c1c; }
.flash-warning { background: var(--warning-bg); border-color: #fed7aa; color: #c2410c; }
.flash-info    { background: var(--info-bg);    border-color: #bae6fd; color: #0369a1; }

/* -------------------------------------------------
   20. PAGES D'ERREUR
   ------------------------------------------------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.error-content h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.error-content h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.error-content p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------
   21. PROSE (contenu éditorial)
   ------------------------------------------------- */
.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}
.prose h1 { margin-top: 0; margin-bottom: 24px; }
.prose h2 { margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.prose h3 { margin-top: 28px; margin-bottom: 12px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary); border-bottom: 1px solid var(--primary-200); }
.prose a:hover { border-bottom-color: var(--primary); }
.prose strong { font-weight: 600; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-50);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.prose .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 24px;
}

/* -------------------------------------------------
   22. UTILITAIRES
   ------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.hidden { display: none; }
@media (min-width: 901px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}
@media (max-width: 900px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* -------------------------------------------------
   23. ACCESSIBILITÉ
   ------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

.main-content { min-height: 60vh; }
.main-content > .flash { 
  max-width: var(--container);
  margin: 20px auto;
  padding: 14px 24px;
}
.main-content > .breadcrumb {
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 24px;
}
