:root {
  --navy: #232048;
  --blue-night: #394170;
  --green: #00a882;
  --green-deep: #00795d;
  --grey-light: #E6EBF2;
  --grey-mid: #CCD6E0;
  --red-accent: #D6544C;
  --white: #FFFFFF;
  --accent: #00a882;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(35, 32, 72, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(204, 214, 224, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 168, 130, 0.2);
}
.brand em { color: var(--green); font-style: normal; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--grey-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(180deg, #232048 0%, #394170 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 80% -10%, rgba(0,168,130,0.16), transparent 60%),
    radial-gradient(500px 260px at 0% 120%, rgba(0,168,130,0.12), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 860px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0,168,130,0.4);
  background: rgba(0,168,130,0.1);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--green); }
.hero p.lead {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--grey-mid);
  max-width: 660px;
  margin-bottom: 34px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
  display: inline-block;
}
.btn-primary { background: var(--green); color: var(--white); border: none; }
.btn-primary:hover { transform: translateY(-2px); background: var(--green-deep); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: rgba(0,168,130,0.12); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat .num { font-size: 1.9rem; font-weight: 600; color: var(--white); }
.stat .lbl { font-size: 0.82rem; color: var(--grey-mid); letter-spacing: 0.02em; }

/* ---------- SECTION GENERIC ---------- */
section { padding: 88px 0; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  display: block;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 16px; }
.section-head p { color: var(--blue-night); font-size: 1.05rem; }

/* ---------- SOUVERAINETÉ / VISIONSOFT ---------- */
.about { background: var(--grey-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-grid h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 20px; }
.about-grid p { color: var(--blue-night); margin-bottom: 18px; }
.pillars { display: grid; gap: 16px; }
.pillar {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--green);
  padding: 22px 24px;
}
.pillar h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--white); }
.pillar p { color: var(--grey-mid); font-size: 0.92rem; margin: 0; }

/* ---------- CARDS (articles / blog) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(35, 32, 72, 0.12);
  border-color: var(--green);
}
.card-media {
  height: 150px;
  background: linear-gradient(135deg, #232048 0%, #00a882 100%);
  position: relative;
  display: block;
}
.card-media.alt2 { background: linear-gradient(135deg, #394170 0%, #00795d 100%); }
.card-media.alt3 { background: linear-gradient(135deg, #00795d 0%, #232048 100%); }
.card-media.edi1 { background: linear-gradient(135deg, #232048 0%, #394170 100%); }
.card-media.edi2 { background: linear-gradient(135deg, #00795d 0%, #232048 100%); }
.card-media.edi3 { background: linear-gradient(135deg, #394170 0%, #00a882 100%); }
.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(35,32,72,0.55);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 0.76rem; color: var(--green); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 10px; text-transform: uppercase; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--navy); }
.card-body p { font-size: 0.92rem; color: var(--blue-night); margin-bottom: 18px; flex: 1; }
.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }
.source { font-size: 0.72rem; color: var(--blue-night); opacity: .7; margin-top: 4px; }

/* ---------- EDITO band ---------- */
.edito { background: var(--navy); color: var(--white); }
.edito .section-head p { color: var(--grey-mid); }
.edito .card { background: var(--blue-night); border-color: rgba(204,214,224,0.15); }
.edito .card-body h3 { color: var(--white); }
.edito .card-body p { color: var(--grey-mid); }
.edito .card-meta { color: var(--green); }

/* ---------- QUOTE ---------- */
.quote-band {
  background: linear-gradient(135deg, #232048 0%, #00795d 100%);
  color: var(--white);
  text-align: center;
}
.quote-band blockquote {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  max-width: 820px;
  margin: 0 auto 20px;
  line-height: 1.4;
}
.quote-band cite { font-style: normal; font-size: 0.9rem; color: rgba(255,255,255,0.85); letter-spacing: 0.03em; }

/* ---------- ARTICLE PAGE ---------- */
.article-hero {
  background: linear-gradient(180deg, #232048 0%, #394170 100%);
  color: var(--white);
  padding: 64px 0 72px;
}
.article-hero .container { max-width: 820px; }
.breadcrumb { font-size: 0.82rem; color: var(--grey-mid); margin-bottom: 24px; }
.breadcrumb a { color: var(--grey-mid); transition: color .2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: rgba(204,214,224,0.5); margin: 0 8px; }
.article-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0,168,130,0.4);
  background: rgba(0,168,130,0.1);
  border-radius: 20px;
  padding: 4px 13px;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--grey-mid);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.article-meta .sep { color: rgba(204,214,224,0.4); }

.article-body { padding: 64px 0 80px; }
.article-body .container { max-width: 720px; }
.article-body .lead {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 32px;
}
.article-body h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 38px 0 14px;
}
.article-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 28px 0 10px;
}
.article-body p { color: var(--blue-night); margin-bottom: 18px; font-size: 1.02rem; }
.article-body ul { margin: 0 0 20px 22px; color: var(--blue-night); }
.article-body li { margin-bottom: 9px; }
.article-body a.inline { color: var(--green-deep); text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--green);
  background: var(--grey-light);
  padding: 20px 26px;
  margin: 28px 0;
  font-family: 'Roboto Slab', serif;
  font-size: 1.12rem;
  color: var(--navy);
  border-radius: 0 8px 8px 0;
}
.article-source-note {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-mid);
  font-size: 0.82rem;
  color: var(--blue-night);
  opacity: .8;
  font-style: italic;
}
.article-cta-back {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--green-deep);
}
.article-cta-back::before { content: "←"; }

/* ---------- RELATED ---------- */
.related { background: var(--grey-light); padding: 64px 0; }
.related h2 { font-size: 1.5rem; margin-bottom: 28px; color: var(--navy); }

/* ---------- FOOTER ---------- */
footer {
  background: #1b1938;
  color: var(--grey-mid);
  padding: 54px 0 30px;
  font-size: 0.9rem;
}
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.foot-brand { max-width: 340px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--grey-mid); font-size: 0.9rem; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--grey-mid); margin-bottom: 9px; font-size: 0.88rem; transition: color .2s; cursor: pointer; }
.foot-col a:hover { color: var(--green); }
.foot-bottom {
  border-top: 1px solid rgba(204,214,224,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(204,214,224,0.6);
}
.flag { color: var(--green); font-weight: 600; }

/* ---------- COOKIE / RGPD BANNER ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--grey-mid);
  border-top: 3px solid var(--green);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.35);
  transform: translateY(120%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 280px; font-size: 0.9rem; line-height: 1.55; }
.cookie-text strong { color: var(--white); display: block; margin-bottom: 4px; font-size: 0.98rem; }
.cookie-text a { color: var(--green); text-decoration: underline; cursor: pointer; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions button {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 11px 22px;
  cursor: pointer;
  border: 2px solid var(--green);
  transition: background .2s, color .2s;
}
.cookie-refuse { background: transparent; color: var(--green); }
.cookie-refuse:hover { background: rgba(0,168,130,0.12); }
.cookie-accept { background: var(--green); color: var(--white); }
.cookie-accept:hover { background: var(--green-deep); border-color: var(--green-deep); }

/* ---------- PRIVACY MODAL ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,18,40,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  color: var(--navy);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 36px;
}
.modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal .modal-sub { color: var(--green); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 18px; }
.modal p { color: var(--blue-night); font-size: 0.92rem; margin-bottom: 14px; }
.modal h4 { font-size: 1rem; margin: 20px 0 6px; }
.modal-close {
  margin-top: 22px;
  background: var(--green); color: var(--white);
  border: none; border-radius: 4px;
  padding: 11px 24px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.8rem; cursor: pointer;
}
.modal-close:hover { background: var(--green-deep); }
