/* Variables CSS selon la charte graphique */
:root {
  /* Couleurs principales */
  --primary: #FF7043;
  --positive: #26A69A;
  --negative: #EF5350;
  --warning: #ffc900;
  
  /* Mode clair */
  --bg-primary: #F8F9FA;
  --bg-secondary: #FFFFFF;
  --text-primary: #212529;
  --text-secondary: #6C757D;
  --border-color: #DEE2E6;
  --border-radius: 8px;

  --card-background: #ffffff;
  
  /* Textes */
  --text-muted: #A0A7AF;
  --text-light: #F8F9FA;

  /* Arrière-plans */
  --bg-hover: #F1F3F5;
  --bg-modal: rgba(0, 0, 0, 0.5);

  /* Typographie */
  --font-main: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

/* Ombres */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Espacements */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
}

/* Réinitialisation et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  margin: 0 auto;
  padding: 20px;
  max-width: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Conteneur principal */
.container {
  max-width: 800px;
  margin: 0 auto;
}

/* En-tête */
.header {
  /* display: flex; */
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 16px;
  object-fit: cover;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Message de bienvenue */
.welcome-message {
  text-align: center;
  margin: 24px 0;
  padding: 16px;
  background-color: rgba(255, 112, 67, 0.1);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 500;
}

/* Conteneur des liens */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Cartes de liens */
.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: var(--card-background);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.link-card .icon {
  font-size: 2.5rem;
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  border-radius: 50%;
  margin-right: 0;
}

.link-content h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.link-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Styles pour les tags de catégorie */
.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  &.tag.tool {
    background-color: #c3e6cb;
    color: #0f5132;
  }

  &.service {
    background-color: #ffd8a8;
    color: #5e3a00;
  }

  &.other {
    background-color: #d6d8db;
    color: #1b1e21;
  }
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-2xl);
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.6;
}

.footer-links {
  margin-bottom: var(--spacing-md);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 var(--spacing-md);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-copyright {
  margin-top: var(--spacing-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-copyright .badge {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-copyright .badge:hover {
  background-color: #f45c2c;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .footer {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .footer-link {
    display: block;
    margin: var(--spacing-sm) 0;
  }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1A1D21;
    --bg-secondary: #2C3034;
    --text-primary: #F8F9FA;
    --text-secondary: #A0A7AF;
    --border-color: #3E444A;
  }
  
  .welcome-message {
    background-color: rgba(255, 112, 67, 0.2);
  }
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 16px;
  }
  
  header {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin: 0 auto 12px;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
}
