/**
 * Swole — Styles de base
 * Grille 12 colonnes, densité élevée, alignements à gauche
 * Compatible avec les deux variantes thématiques
 */

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--primary);
  color: var(--surface-1);
}

/* === Grille 12 colonnes === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}

/* Utilitaires de colonnes */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .col-sm-12 { grid-column: span 12; }
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: opacity var(--duration-fast) var(--ease);
}

.brand:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--muted);
  position: relative;
  transition: color var(--duration-base) var(--ease);
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 13px;
  }
}

/* === Sections === */
section {
  padding: var(--s5) 0;
  position: relative;
}

section.tight {
  padding: var(--s4) 0;
}

section.dense {
  padding: var(--s6) 0;
}

/* === Hero split 7/5 === */
.hero {
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: var(--s6) 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}

.hero-main {
  grid-column: span 7;
}

.hero-visual {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: flex-start;
}

@media (max-width: 900px) {
  .hero-main,
  .hero-visual {
    grid-column: span 12;
  }
  .hero {
    min-height: auto;
  }
}

.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--s2);
}

.hero h1 {
  font-size: var(--h1);
  font-weight: 900;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}

.hero .lead {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--fg);
  max-width: 560px;
  margin-bottom: var(--s4);
}

/* === Badges === */
.badges {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

/* === Boutons (CTA) === */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease),
              background var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--primary);
  color: var(--surface-1);
}

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

.btn.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--fg);
}

.btn.secondary:hover {
  border-color: var(--ring);
  background: var(--surface-2);
}

/* === Titres de sections === */
.section-header {
  margin-bottom: var(--s4);
}

.section-header h2 {
  font-size: var(--h2);
  font-weight: 900;
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 720px;
}

/* === Cartes (pôles, projets) === */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  transition: transform var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--ring);
  box-shadow: var(--shadow-md);
    background: rgba(59, 6, 10, 0.02); /* rouge bordeaux ultra clair */

}




.card-header {
  margin-bottom: var(--s3);
}

.card-header h3 {
  font-size: var(--h3);
  font-weight: 800;
  line-height: var(--line-height-tight);
  margin-bottom: var(--s2);
}

.card-body {
  margin-bottom: var(--s3);
}

.card-body p {
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: var(--s2);
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--s3);
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-base);
}

.card-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.card-footer {
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}

/* === Chips (projets) === */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--s3);
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
  transition: transform var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--ring);
}

.chip-title {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: 8px;
}

.chip-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

/* === Statistiques === */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--s3);
}

.stat {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
  text-align: left;
}

.stat-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
}

/* === Accordéon (mobile) === */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  padding: var(--s3);
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--duration-fast) var(--ease);
}

.accordion-trigger:hover {
  background: var(--surface-2);
}

.accordion-trigger::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  transition: transform var(--duration-base) var(--ease);
}

.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease);
}

.accordion-content-inner {
  padding: 0 var(--s3) var(--s3);
}

/* === Footer === */
footer {
  border-top: 1px solid var(--line);
  padding: var(--s5) 0;
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.footer-col {
  grid-column: span 4;
}

@media (max-width: 768px) {
  .footer-col {
    grid-column: span 12;
  }
}

.footer-title {
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s2);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--muted);
  transition: color var(--duration-fast) var(--ease);
}

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

.footer-bottom {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
}

/* === Accessibilité === */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Utilitaires === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: var(--s2); }
.mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); }

/* Styles pour les icônes de cartes */
.card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.6;
}

/* Liens soulignés */
.underline {
  text-decoration: underline;
}

/* Liste sans marge bottom */
.mb-0 {
  margin-bottom: 0;
}
