@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #004466; /* Contraste augmenté (précédemment #005A87) pour accessibilité WCAG AAA */
  --secondary: #FFD700;
  --bg-color: #ffffff;
  --text-color: #111827; /* Gris très sombre pour un contraste maximal sur blanc */
  --text-muted: #374151; /* Gris plus sombre pour les textes secondaires */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --border-color: #e5e5e5;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

header {
  padding: 1.25rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary);
}

/* Multi-level Dropdown */
nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 240px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 100;
  flex-direction: column;
  gap: 0;
}

nav li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav ul ul li {
  width: 100%;
}

nav ul ul a {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

nav ul ul a:hover {
  background: rgba(0, 90, 135, 0.05);
}

/* Nested dropdowns (3rd level) */
nav ul ul ul {
  top: 0;
  left: 100%;
  margin-left: 2px;
}

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

h1, h2, h3 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

/* Section Hero - Haute Accessibilité */
.hero {
  padding: 5rem 1.5rem;
  text-align: center;
  background: #ffffff;
  margin-bottom: 2rem;
}

.hero h1 {
  color: var(--primary);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-color);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.item-large {\n  grid-column: span 8;\n  grid-row: span 3;\n}

.item-medium { grid-column: span 4; grid-row: span 2; }
.item-small { grid-column: span 4; grid-row: span 1; }

@media (max-width: 992px) {
  .item-large, .item-medium, .item-small { grid-column: span 12; }

  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    overflow-y: auto;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1.5rem;
    background: transparent;
    display: none;
  }

  nav li.active > ul {
    display: block;
  }
}

/* Questionnaire & Interactive Elements */
.questionnaire-box {
  background: #fcfcfc;
  border-left: 5px solid var(--primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input[type="text"], 
input[type="email"], 
select, 
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 90, 135, 0.1);
}

/* Buttons & Links */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #00334d;
  transform: scale(1.02);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #000000; /* Assure un contraste optimal sur le jaune */
}

.btn-secondary:hover {
  background-color: #e6c200;
  transform: scale(1.02);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition);
}

a:hover {
  color: #002b40;
}

.logo, nav a {
  text-decoration: none;
}

/* Accessibility & Inclusivity Features */
.accessibility-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f4f8;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.icon {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

/* Resource List */
.resource-list {
  list-style: none;
}

.resource-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

/* Tooltip/Info Text */
.info-tag {
  background: var(--secondary);
  color: #000000;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

/* Footer */
footer {
  margin-top: 6rem;
  padding: 5rem 5% 3rem;
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-column h4 {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Focus States for Accessibility */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }