/* Inclusion Quest - Styles v7 (Chart Fix + Global DA) */

@charset "utf-8";

:root {
  --primary-color: #1f3f5b;     /* Navy Blue */
  --secondary-color: #2ea66f;   /* Brand Green */
  --secondary-dark: #248c5c;
  --accent-color: #f2a23a;      /* Gold/Orange */
  
  --gradient-elegant: linear-gradient(135deg, #1f3f5b 0%, #2ea66f 100%);
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #ffffff;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  font-size: 16px;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--primary-color); }

/* --- UTILS --- */
.section { padding: 100px 0; }
.section-bg-alt { background: var(--bg-secondary); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title { text-align: center; font-size: 2.75rem; margin-bottom: 2rem; }
.section-intro { text-align: center; max-width: 800px; margin: 0 auto 60px auto; color: var(--text-secondary); font-size: 1.15rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 3px; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
}

/* --- NAV --- */
nav {
  position: fixed; top: 0; width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 0;
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--primary-color); display: flex; align-items: center; gap: 12px; }
.logo-img { width:34px; height:34px; border-radius:50%; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary-color); }
.nav-btn-game { background: var(--primary-color); color: #fff !important; padding: 10px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.nav-btn-game:hover { background: #162f45; transform: translateY(-2px); }

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
}
.hamburger { width: 26px; height: 3px; background: var(--primary-color); border-radius: 2px; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: #fff; z-index: 999; display: flex; align-items: center; justify-content: center; transition: right 0.4s; }
.mobile-menu.active { right: 0; }
.mobile-nav-links { list-style: none; text-align: center; }
.mobile-nav-links li { margin: 2rem 0; }
.mobile-nav-links a { font-size: 1.5rem; text-decoration: none; color: var(--primary-color); font-weight: 700; }

/* --- HERO (Shapes) --- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center; color: #fff;
  padding-top: 80px;
  background: var(--gradient-elegant);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}
.floating-shapes { position: absolute; width: 100%; height: 100%; pointer-events: none; z-index: 1; top:0; left:0; }
.shape { position: absolute; background: rgba(255, 255, 255, 0.1); border-radius: 50%; }
.shape-1 { width: 80px; height: 80px; top: 20%; left: 10%; animation: floatShape1 20s infinite; }
.shape-2 { width: 120px; height: 120px; top: 60%; right: 15%; background: rgba(255,255,255,0.08); animation: floatShape2 25s infinite reverse; }
.shape-3 { width: 60px; height: 60px; top: 30%; right: 25%; animation: floatShape3 18s infinite; }
.shape-4 { width: 100px; height: 100px; bottom: 25%; left: 20%; border-radius: 20px; animation: floatShape4 22s infinite; }
.shape-5 { width: 40px; height: 40px; top: 15%; right: 40%; animation: floatShape5 16s infinite reverse; }
.shape-6 { width: 140px; height: 140px; bottom: 15%; right: 10%; border-radius: 30px; animation: floatShape6 28s infinite; }

@keyframes floatShape1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-10px,-15px)} }
@keyframes floatShape2 { 0%,100%{transform:scale(1)} 50%{transform:scale(0.9)} }
@keyframes floatShape3 { 0%,100%{transform:rotate(0)} 50%{transform:rotate(180deg)} }
@keyframes floatShape4 { 0%,100%{transform:rotate(0)} 50%{transform:rotate(90deg)} }
@keyframes floatShape5 { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
@keyframes floatShape6 { 0%,100%{transform:rotate(0)} 50%{transform:rotate(60deg)} }

.hero-content { position: relative; z-index: 2; padding-top: 40px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 30px; text-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero .subtitle { color: rgba(255,255,255,0.95); font-size: 1.3rem; margin-bottom: 50px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Buttons */
.cta-button { background: #fff; color: var(--primary-color); padding: 16px 36px; border-radius: var(--radius-xl); text-decoration: none; font-weight: 700; transition: var(--transition); display: inline-block; }
.cta-button:hover { background: #f1f5f9; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.btn-secondary-white { background: rgba(255,255,255,0.1); color: #fff; border: 2px solid rgba(255,255,255,0.8); padding: 14px 34px; border-radius: var(--radius-xl); text-decoration: none; font-weight: 600; margin-left: 15px; transition: var(--transition); display: inline-block; backdrop-filter: blur(5px); }
.btn-secondary-white:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.btn-primary { background: var(--secondary-color); color: #fff; padding: 14px 32px; border-radius: var(--radius-xl); text-decoration: none; font-weight: 600; border:none; display: inline-block; transition: var(--transition); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline-primary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); padding: 12px 30px; border-radius: var(--radius-xl); text-decoration: none; font-weight: 600; display:inline-block; transition: var(--transition); }
.btn-outline-primary:hover { background: var(--bg-secondary); }
.btn-full { width: 100%; text-align: center; }

/* --- AWARD (Image + Text) --- */
.section-award { padding: 80px 0; background: #fff; border-bottom: 1px solid #f1f5f9; }
.award-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.award-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.award-photo { width: 100%; height: auto; display: block; transition: transform 0.5s; }
.award-image:hover .award-photo { transform: scale(1.02); }
.award-overlay-badge { position: absolute; bottom: 20px; right: 20px; background: #fff; color: var(--accent-color); padding: 10px 20px; border-radius: 50px; font-weight: 800; text-transform: uppercase; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.award-content-box h3 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-color); }
.award-header { display: block; align-items: center; gap: 20px; margin-bottom: 20px; }
.cap-logo { height: 40px; }
.award-desc { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 20px; }
.award-quote { font-style: italic; color: var(--text-secondary); border-left: 4px solid var(--accent-color); padding-left: 20px; }
.award-quote span { font-weight: 600; font-style: normal; display: block; margin-top: 5px; color: var(--primary-color); }

/* --- SECTIONS --- */
.need-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat-card { text-align: center; padding: 40px 30px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); transition: var(--transition); }
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.stat-number { font-size: 3.5rem; font-weight: 800; color: var(--secondary-color); line-height: 1; }
.stat-label { font-size: 1.2rem; font-weight: 700; margin: 15px 0 15px; display: block; color: var(--primary-color); }
.stat-desc { font-size: 0.95rem; color: var(--text-secondary); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h3 { font-size: 2rem; margin-bottom: 25px; }
.about-text p { margin-bottom: 15px; color: var(--text-secondary); }
.about-img { width:50%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 10px; }

/* Offres */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.plan-card { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius-lg); padding: 40px 30px; display: flex; flex-direction: column; transition: var(--transition); }
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan-featured { border: 2px solid var(--primary-color); background: #fff; transform: scale(1.05); z-index: 2; box-shadow: var(--shadow-md); }
.plan-featured:hover { transform: scale(1.05) translateY(-8px); }
.plan-tag { display: inline-block; background: var(--bg-secondary); color: var(--text-secondary); padding: 6px 14px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; margin-bottom: 15px; }
.tag-featured { background: var(--primary-color); color: #fff; }
.plan-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.plan-desc { color: var(--text-secondary); margin-bottom: 30px; min-height: 60px; font-size: 0.95rem; }
.plan-features { list-style: none; padding: 0; margin-bottom: 30px; }
.plan-features li { margin-bottom: 12px; padding-left: 30px; position: relative; font-size: 0.95rem; color: var(--text-primary); }
.plan-features li::before { content: "✔"; color: var(--secondary-color); font-weight: 900; position: absolute; left: 0; top: 0; }
.plan-footer { margin-top: auto; }
.plan-footer-center {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

/* Impact & Chart FIX */
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.impact-list { list-style: none; margin-top: 20px; }
.impact-list li { margin-bottom: 10px; font-size: 1rem; }

/* FIX DU GRAPHIQUE QUI GRANDIT : Hauteur fixe + position relative */
.impact-chart-wrapper {
    background: #fff; padding: 60px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9;
    height: 400px; /* IMPORTANT: Fixe la hauteur */
    position: relative; /* IMPORTANT pour Chart.js */
    width: 100%;
}
.chart-caption { text-align: center; font-size: 0.85rem; color: #94a3b8; margin-top: 15px; }

/* Licence */
.licence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.licence-card { background: #fff; padding: 40px; border-radius: var(--radius-lg); border: 1px solid #e2e8f0; text-align: left; transition: var(--transition); }
.licence-card:hover { border-color: var(--secondary-color); box-shadow: var(--shadow-md); }
.licence-card.commercial { border-top: 4px solid var(--primary-color); }
.licence-icon { font-size: 2.5rem; margin-bottom: 15px; }
.licence-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.licence-desc { color: var(--text-secondary); margin-bottom: 20px; min-height: 40px; }
.licence-features { list-style: none; }
.licence-features li { padding-left: 25px; position: relative; margin-bottom: 8px; font-size: 0.95rem; }
.licence-features li::before { content: "•"; color: var(--secondary-color); font-weight: bold; position: absolute; left: 0; font-size: 1.2rem; line-height: 1; }
.licence-footer { text-align: center; margin-top: 40px; }
.licence-link { color: var(--primary-color); font-weight: 600; text-decoration: underline; }

/* Contact & Footer */
.contact-card-wrapper { background: var(--gradient-elegant); border-radius: var(--radius-lg); padding: 80px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 60px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.contact-card-wrapper::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.contact-content { flex: 1; position: relative; z-index: 2; }
.contact-content h2 { color: #fff; font-size: 2.5rem; margin-bottom: 20px; }
.contact-content p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 40px; max-width: 500px; }
.contact-details { display: flex; gap: 40px; }
.detail-label { display: block; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; opacity: 0.7; margin-bottom: 5px; }
.detail-link { color: #fff; font-size: 1.2rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; }
.btn-white-big { background: #fff; color: var(--primary-color); padding: 20px 40px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); position: relative; z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-white-big:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

.footer { background: #0f172a; color: #94a3b8; padding: 80px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 25px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #94a3b8; text-decoration: none; transition: 0.2s; }
.footer-col ul a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 30px; text-align: center; font-size: 0.85rem; }

.carousel-wrap { overflow: hidden; white-space: nowrap; padding: 60px 0; background: #fff; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; position: relative; }
.carousel-track { display: inline-block; animation: scroll 40s linear infinite; }
.partner-logo { height: 50px; margin: 0 50px; opacity: 0.5; filter: grayscale(100%); transition: 0.3s; vertical-align: middle; }
.partner-logo-text { font-weight: 700; font-size: 1.4rem; color: #94a3b8; margin: 0 50px; vertical-align: middle; transition:0.3s; }
.partner-logo:hover, .partner-logo-text:hover { opacity: 1; filter: grayscale(0); color: var(--primary-color); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Animations & Responsive */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .pricing-grid, .award-grid, .licence-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-card-wrapper { flex-direction: column; text-align: center; padding: 60px 30px; }
    .contact-details { justify-content: center; }
}
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .impact-grid, .need-stat-grid { grid-template-columns: 1fr; gap: 40px; }
    .pricing-grid { max-width: 450px; margin: 0 auto; }
    .about-grid { display: flex; flex-direction: column-reverse; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { justify-content: center; }
}
