/* =============================================
   OutilsIA.fr — Feuille de styles principale
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f2d5c;
  --blue-800: #1a3f7a;
  --blue-600: #1d5bbf;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --white:    #ffffff;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --radius:   0.75rem;
  --shadow:   0 4px 24px rgba(37,99,235,.10);
  --shadow-lg:0 8px 40px rgba(37,99,235,.16);
  --font:     'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-800); }
ul { list-style: none; }

/* --- Utilitaires --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

/* --- Typographie --- */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 800; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--gray-700); }

.lead {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 620px;
  margin: 1rem auto 0;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  border-color: var(--blue-500);
  color: var(--blue-500);
}
.btn-outline:hover {
  background: var(--blue-500);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--blue-600);
}
.btn-white:hover {
  background: var(--blue-100);
  color: var(--blue-800);
  transform: translateY(-2px);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--blue-600);
}
.nav-logo span { color: var(--gray-900); }
.nav-logo .dot { color: var(--blue-400); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--gray-700);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue-600); }

.nav-cta .btn { padding: .55rem 1.3rem; font-size: .9rem; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all var(--transition); }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content .badge {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--white); }
.hero-stat span   { font-size: .85rem; color: rgba(255,255,255,.7); }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tool-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition);
}
.tool-card:hover { transform: translateX(6px); }
.tool-card .icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tool-card .info strong { color: var(--white); font-size: .95rem; display: block; }
.tool-card .info span  { color: rgba(255,255,255,.65); font-size: .82rem; }
.tool-card .score {
  margin-left: auto;
  background: rgba(255,255,255,.25);
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  padding: .25rem .65rem;
  border-radius: 2rem;
}

/* =============================================
   FEATURES / SERVICES
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p  { font-size: .95rem; }

/* =============================================
   ARTICLES / BLOG CARDS
   ============================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.article-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
}
.article-thumb .cat-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,.9);
  color: var(--blue-600);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.article-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-meta {
  display: flex;
  gap: 1rem;
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: .75rem;
  align-items: center;
}
.article-meta span { display: flex; align-items: center; gap: .25rem; }
.article-body h3 { margin-bottom: .6rem; font-size: 1.1rem; }
.article-body p  { font-size: .9rem; flex: 1; }
.article-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--blue-500);
  font-weight: 700;
  font-size: .9rem;
  margin-top: 1.25rem;
}
.article-link:hover { gap: .6rem; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  padding: 4.5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1.1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color var(--transition);
  outline: none;
}
.newsletter-form input:focus { border-color: var(--blue-400); }
.newsletter-form input::placeholder { color: var(--gray-500); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; font-size: 1.3rem; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer h4 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer ul li { margin-bottom: .5rem; }
.footer ul a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }
.affiliation-notice {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 2rem;
  text-align: center;
}

/* =============================================
   PAGE HERO (sous-pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* =============================================
   PAGE BLOG — FILTRES & LAYOUT
   ============================================= */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-top: 3rem;
}
.filter-tabs {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: .45rem 1.1rem;
  border-radius: 2rem;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover,
.filter-tab.active {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: var(--white);
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-widget {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-widget h4 { margin-bottom: 1rem; font-size: 1rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: .3rem .75rem;
  border-radius: 2rem;
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tag:hover { background: var(--blue-500); color: var(--white); border-color: var(--blue-500); }
.tool-list { display: flex; flex-direction: column; gap: .75rem; }
.tool-list-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--gray-700);
}
.tool-list-item .emoji { font-size: 1.2rem; }

/* =============================================
   PAGE À PROPOS
   ============================================= */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.about-visual {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-500));
  border-radius: 1.5rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: var(--shadow-lg);
}
.about-text .badge { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p  { margin-bottom: 1rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value-card .icon { font-size: 1.8rem; margin-bottom: .75rem; }
.value-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.value-card p  { font-size: .9rem; }
.team-section { margin-top: 3rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 2rem; }
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.team-card h3 { margin-bottom: .25rem; }
.team-card .role { color: var(--blue-500); font-size: .9rem; font-weight: 600; margin-bottom: .75rem; }
.team-card p { font-size: .88rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .about-intro { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3.5rem 0; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat strong { font-size: 1.3rem; }
  .cta-actions { flex-direction: column; align-items: center; }
}
