/* 🎨 THÈME CLAIR PASTEL P.I.A. - Version Lumineuse */

:root {
  /* Couleurs de base - CLAIR */
  --bg: #FAFBFC;
  --bg2: #F5F7FA;
  --card: rgba(255, 255, 255, 0.95);
  --card2: rgba(255, 255, 255, 1);
  --border: rgba(200, 210, 225, 0.4);
  --text: #1F2937;
  --muted: #6B7280;
  --muted2: #9CA3AF;
  
  /* Couleurs primaires - PASTEL */
  --primary: #7DB3E8;
  --primary2: #A8E6C6;
  --accent-green: #7EC8A3;
  --accent-blue: #7DB3E8;
  --accent-purple: #C4A5E0;
  --accent-orange: #FFB8A0;
  --accent-yellow: #FFE8A0;
  --accent-pink: #FFB8D8;
  
  /* Effets */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius2: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* Accessibilité */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 10px;
  z-index: 9999;
  color: var(--text);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.5rem;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand.small .brand-logo {
  height: 36px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 4px 15px rgba(125, 179, 232, 0.3);
}

.brand.small .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-menu a:hover {
  color: var(--text);
  background: var(--bg);
}

.nav-toggle {
  display: none;
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.section-head p {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Hero */
.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.lead {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.fine {
  margin: 1rem 0 0;
  color: var(--muted2);
  font-size: 0.9rem;
}

/* Hero Card */
.hero-card {
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(125, 179, 232, 0.1), rgba(196, 165, 224, 0.1));
  opacity: 0.5;
}

.hero-card-inner {
  position: relative;
  padding: 2rem;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.kpi-value {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.mini-list {
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.mini-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background: #7EC8A3; }
.dot-blue { background: #7DB3E8; }
.dot-amber { background: #FFE8A0; }

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card {
  padding: 2rem;
  border-radius: var(--radius2);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 200px;
}

.card-cta {
  color: var(--primary);
  font-weight: 600;
  margin-top: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.btn:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  box-shadow: 0 4px 15px rgba(125, 179, 232, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(125, 179, 232, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  background: white;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Text */
.muted {
  color: var(--muted);
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* CTA Band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(125, 179, 232, 0.1), rgba(196, 165, 224, 0.1));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

/* Page Hero */
.page-hero {
  padding: 3rem 0 2rem;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.page-title {
  margin: 0 0 1rem;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

/* Badges */
.badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.badge {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: white;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

/* Forms */
.form {
  display: grid;
  gap: 1.5rem;
}

.field label {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: all 0.3s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125, 179, 232, 0.1);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

/* Notice */
.notice {
  padding: 1.5rem;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s;
}

.tab:hover {
  background: var(--bg);
}

.tab[aria-selected="true"] {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-toggle {
    display: inline-flex;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 70px;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    min-width: 220px;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-head h2 {
    font-size: 2rem;
  }
  
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }
}
