/* ============================================
   WORLD NEWS – Design moderne
   Charte : bleu, typo soignée, animations
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --wn-blue: #0d47a1;
  --wn-blue-light: #1565c0;
  --wn-blue-dark: #0a1942;
  --wn-blue-mid: #0c2d6e;
  --wn-accent: #42a5f5;
  --wn-cyan: #4dd0e1;
  --wn-bg: #f8fafc;
  --wn-bg-alt: #ffffff;
  --wn-text: #0f172a;
  --wn-text-muted: #475569;
  --wn-text-soft: #64748b;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 0 60px -12px rgba(13, 71, 161, 0.35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--wn-text);
  background: var(--wn-bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--wn-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--wn-blue-mid);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(13, 71, 161, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-fallback {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wn-blue);
  letter-spacing: -0.02em;
}

/* Nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-main a {
  padding: 0.6rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--wn-text);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0.35rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--wn-blue);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-main a:hover::after,
.nav-main a.active::after {
  transform: scaleX(1);
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--wn-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--wn-blue);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-main {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-main a::after {
    display: none;
  }
  .nav-main.is-open {
    display: flex;
  }
}

/* ----- Spacer for fixed header ----- */
.main-content {
  padding-top: var(--header-height);
  min-height: 60vh;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Hero (bandeau image + overlay, texte centré) ----- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--wn-blue-dark) 0%, var(--wn-blue-mid) 40%, var(--wn-blue) 70%, var(--wn-blue-light) 100%);
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(10, 25, 66, 0.92) 0%, rgba(13, 71, 161, 0.88) 50%, rgba(21, 101, 192, 0.75) 100%);
}

.hero:has(.hero-bg-img) .container {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(66, 165, 245, 0.2) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-weight: 500;
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--wn-blue) !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Sections ----- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--wn-bg-alt);
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wn-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--wn-blue-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--wn-text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ----- Cards ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--wn-blue), var(--wn-accent));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 71, 161, 0.12);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(66, 165, 245, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wn-blue-dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--wn-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Cartes avec image en en-tête */
.card-with-img {
  padding: 0;
}

.card-with-img .card-img {
  height: 180px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--wn-bg);
}

.card-with-img .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card-with-img:hover .card-img img {
  transform: scale(1.05);
}

.card-with-img .card-icon {
  margin: 1.25rem 2rem 0;
}

.card-with-img h3,
.card-with-img p {
  padding: 0 2rem;
}

.card-with-img p {
  padding-bottom: 2rem;
}

/* Bloc image + texte (split) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

.split-section .split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-section .split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.split-section .split-content {
  padding: 0 0.5rem;
}

.split-section .split-content .section-badge {
  margin-bottom: 0.5rem;
}

.split-section .split-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--wn-blue-dark);
  margin-bottom: 1rem;
  text-align: left;
}

.split-section .split-content p {
  color: var(--wn-text-muted);
  margin-bottom: 1rem;
  text-align: left;
}

@media (max-width: 900px) {
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  .split-section .split-img img {
    min-height: 260px;
  }
}

/* À propos : bloc image */
.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
}

.about-visual img {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
}

/* Contact : colonne image */
.contact-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-visual img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

/* Page solutions : image en bandeau */
.solutions-hero-img {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.solutions-hero-img img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

/* Reveal animation (scroll) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.animate-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--wn-blue), var(--wn-blue-light));
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--wn-blue) !important;
  border: 2px solid var(--wn-blue);
}

.btn-outline:hover {
  background: var(--wn-blue);
  color: var(--white) !important;
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.25);
}

.cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--wn-blue-dark);
  color: var(--white);
  padding: 4rem 1.5rem 2.5rem;
  margin-top: 4rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer .logo-link {
  display: inline-flex;
  margin-bottom: 1rem;
}

.site-footer .site-logo {
  filter: brightness(0) invert(1);
  height: 40px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .footer-links p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ----- Page internes ----- */
.page-hero {
  position: relative;
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--wn-blue-dark), var(--wn-blue));
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 60%);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.content-block {
  padding: 3.5rem 0;
}

.content-block .container {
  max-width: 720px;
}

.content-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wn-blue);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  margin-bottom: 1.25rem;
  color: var(--wn-text);
  line-height: 1.75;
}

.content-block ul {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--wn-text);
  line-height: 1.8;
}

.content-block ul li {
  margin-bottom: 0.5rem;
}

.content-block ul li::marker {
  color: var(--wn-blue);
}

/* Stats / chiffres clés */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 2.5rem 0;
}

.stats-grid .stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--wn-blue);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stats-grid .stat-item span {
  font-size: 0.95rem;
  color: var(--wn-text-muted);
}

/* Bloc CTA final */
.cta-block {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(145deg, var(--wn-blue-dark), var(--wn-blue));
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.cta-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.cta-block p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Formulaire contact ----- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--wn-text);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wn-blue);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition);
}

.contact-info:hover {
  box-shadow: var(--shadow-lg);
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wn-blue);
  margin-bottom: 0.75rem;
}

.contact-info p {
  margin-bottom: 0.4rem;
  color: var(--wn-text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
