/* ========= Reset minimal & variables ========= */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b1220;
  /* fond global unique: gradient centré */
  background: radial-gradient(
      70% 70% at 50% 45%, rgba(0,224,255,0.06) 0%, rgba(0,0,0,0) 60%
    ),
    radial-gradient(circle at 50% 50%, #022c49 0%, #00121f 60%, #000 100%);
  line-height: 1.6;
}

/* Palette */
:root {
  --brand: #00284B;
  /* couleur phare */
  --brand-600: #00345F;
  --brand-700: #001E36;
  --text: #0b1220;
  --muted: #5b6472;
  --bg-soft: #f6f8fb;
  --border: #e5e9f0;
  --white: #ffffff;
  --accent: #00E0FF;
  /* accent lumineux */
  --nav-height: 88px;
}

/* Accessibilité */
:focus {
  outline: 3px solid rgba(0,40,75,.45);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}

/* ========= Layout utilitaires ========= */
.container {
  width: min(1100px, 94vw);
  margin-inline: auto;
}

.section {
  padding: clamp(48px, 6vw, 96px) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 4vw, 40px);
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ========= Navbar GLASS ========= */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* largeur plein écran : bords gérés par le padding de .navbar */
.glass-nav .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.glass-nav .navbar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  padding: 0 16px;
  /* espace visuel aux bords */;
}

/* Logo bord gauche */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.brand-text {
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: .2px;
}

/* Liens centrés géométriquement */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-center a {
  color: #f5f7fa;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 12px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}

.nav-center a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

/* Actions bord droit */
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Recherche : compacte -> ouverte vers la gauche */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 42px;
  /* était 40px -> cercle parfait */
  height: 42px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.28);
  transform-origin: right center;
  transition: width .25s ease, background .2s ease, border-color .2s ease;
}

.search .search-trigger,
.search .search-submit {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.search input {
  width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 0 12px;
  font-size: .95rem;
}

.search input::placeholder {
  color: rgba(255,255,255,.72);
}

.search.open {
  width: clamp(260px, 32vw, 420px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.38);
}

.search.open input {
  width: 100%;
}

/* Responsive : header épuré si manque de place */
@media (max-width: 1100px) {
}

/* ========= Hero (laisse apparaître le fond global) ========= */
.hero {
  position: relative;
  padding: clamp(120px, 12vw, 180px) 0 120px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: transparent;
  /* on utilise le fond du body */;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 14px 0;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.1;
  color: rgba(255,255,255,.96);
}

.hero p {
  margin: 0 0 28px 0;
  color: rgba(255,255,255,.85);
  max-width: 62ch;
  margin-inline: auto;
}

.hero .btn.btn-primary {
  background: var(--accent);
  color: #00121f;
  border-color: var(--accent);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
}

.hero .btn.btn-primary:hover {
  filter: brightness(0.9);
}

/* ===== Domaines d’activité ===== */
.domains-section {
  color: #fff;
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  margin: 0 0 8px 0;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: .2px;
}

.section-head p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.domains-grid {
  display: grid;
  gap: clamp(16px, 2.8vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(0,1fr));
}

@media (max-width: 1200px) {
  .domains-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 700px) {
  .domains-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 460px) {
  .domains-grid {
    grid-template-columns: 1fr;
  }
}

.domain-card {
  position: relative;
  border-radius: 16px;
  padding: 18px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.domain-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,224,255,.55);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.domain-card .icon-spot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,224,255,.12);
  color: #dffbff;
  margin-bottom: 10px;
}

.domain-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  color: #fff;
}

.domain-card p {
  margin: 0 0 12px 0;
  color: rgba(255,255,255,.78);
  font-size: .95rem;
}

.domain-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.domain-card .tags li {
  padding: 6px 10px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #eafcff;
  background: rgba(255,255,255,.04);
}

/* ===== Ils nous font confiance ===== */
.trusted-section {
  color: #fff;
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.trusted-head {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.trusted-head h2 {
  margin: 0 0 8px 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: .2px;
}

.trusted-head p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

/* ===== Ils nous soutiennent ===== */
.soutien-section {
  color: #fff;
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.soutien-head {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.soutien-head h2 {
  margin: 0 0 8px 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: .2px;
}

.soutien-head p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

/* Grille responsive trusted*/
.logos-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(6, minmax(0,1fr));
  align-items: center;
}

@media (max-width: 1200px) {
  .logos-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 800px) {
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cartouches logo */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  min-height: 74px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, filter .18s ease;
}

.logo-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
}

/* Images logo (harmonisation visuelle) */
.logo-item img {
  max-width: 140px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%) brightness(1.2) contrast(0.9);
  opacity: 0.9;
}

.logo-item:hover img {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
}

/* ===== Actualités ===== */
.news-section {
  color: #fff;
  padding: clamp(64px, 9vw, 110px) 0;
}

.news-section .section-head {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.news-section .section-head h2 {
  margin: 0 0 8px 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: .2px;
}

.news-section .section-head p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.news-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(3, minmax(0,1fr));
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 620px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,224,255,.5), rgba(0,224,255,0));
  opacity: .65;
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,224,255,.5);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.news-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  color: #dffbff;
  font-weight: 600;
  font-size: .8rem;
}

.news-card h3 {
  margin: 6px 0 10px;
  font-size: 1.05rem;
}

.news-card h3 a {
  color: #fff;
  text-decoration: none;
}

.news-card h3 a:hover {
  text-decoration: underline;
}

.news-card p {
  margin: 0 0 14px 0;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
}

.news-link {
  color: #eafcff;
  text-decoration: none;
  font-weight: 700;
}

.news-link:hover {
  text-decoration: underline;
}

/* ========= Cartes, boutons génériques ========= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .04s ease;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: rgba(0,40,75,.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

/* ========= Footer (verre noir statique) ========= */
.site-footer {
  margin-top: 24px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,.10);
  color: #f1f5f9;
}

.footer-grid {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  padding: 14px 12px;
}

/* Footer glass overrides (scopé au footer) */
.site-footer .footer-grid {
  padding: 32px 0;
}

.site-footer .brand-inline {
  color: #ffffff;
}

.site-footer .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

.site-footer .footer-links a {
  color: rgba(255,255,255,.9);
}

.site-footer .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  background: transparent;
}

.site-footer .muted {
  color: rgba(255,255,255,.75);
}

/* ========= Petits helpers ========= */
.muted {
  color: var(--muted);
}

/* --- Centrer les logos de la section "Ils nous soutiennent" --- */
.soutien-section .logos-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* 3 colonnes */
  max-width: 920px;
  /* réduit la largeur pour pouvoir centrer */
  margin-inline: auto;
  /* centre la grille dans le container */
  justify-items: center;
  /* centre chaque carte dans sa colonne */;
}

@media (max-width: 800px) {
  .soutien-section .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
  }
}

@media (max-width: 520px) {
  .soutien-section .logos-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* === "Ils nous font confiance" : forcer exactement 2 lignes === */
.trusted-section .logos-grid {
  /* on remplit par colonnes, ce qui impose 2 lignes fixes */
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: minmax(120px, 1fr);
  justify-content: center;
  /* centre l'ensemble */
  justify-items: center;
  /* centre chaque carte */;
}

/* Responsif : on repasse à une grille classique sur écrans étroits */
@media (max-width: 900px) {
}

@media (max-width: 560px) {
  .trusted-section .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Page Mentions légales & Confidentialité === */
.legal-page .section {
  padding: 64px 20px;
}

.legal-page .container {
  max-width: 980px;
  margin: 0 auto;
}

.legal-page .section-title {
  color: var(--text-color, #e6edf3);
  margin: 0 0 8px;
}

.legal-page .section-subtitle {
  color: var(--text-secondary, #9aa7b2);
  margin: 0 0 24px;
}

/* Sommaire */
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.legal-toc a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #1f2a37);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text-color, #e6edf3);
  text-decoration: none;
}

.legal-toc a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
}

/* Corps */
.legal-content h2 {
  margin: 28px 0 10px;
  color: var(--text-color, #e6edf3);
  font-weight: 800;
}

.legal-content p {
  margin: 8px 0 14px;
  color: var(--text-secondary, #9aa7b2);
}

.legal-content strong {
  color: var(--text-color, #e6edf3);
}

/* Liens de la page légale (évite le bleu par défaut) */
.legal-page a {
  color: var(--text-color, #e6edf3);
  text-underline-offset: 3px;
}

/* === Page Contact === */
.contact-page .section {
  padding: 64px 20px;
}

.contact-page .container {
  max-width: 1080px;
  margin: 0 auto;
}

.contact-page .section-title {
  color: var(--text-color, #e6edf3);
  margin: 0 0 8px;
}

.contact-page .section-subtitle {
  color: var(--text-secondary, #9aa7b2);
  margin: 0 0 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-color, #1f2a37);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(16,24,40,.12);
  padding: 22px 22px 26px;
}

.contact-heading {
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--text-color, #e6edf3);
}

/* Infos */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.info-item {
  display: grid;
  gap: 2px;
}

.info-label {
  color: var(--text-secondary, #9aa7b2);
  font-size: .95rem;
}

.info-value {
  color: var(--text-color, #e6edf3);
}

/* Formulaire */
.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-label {
  color: var(--text-color, #e6edf3);
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-color, #243042);
  color: var(--text-color, #e6edf3);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #90a0ae66;
}

.form-input:focus-visible, .form-textarea:focus-visible {
  border-color: var(--brand, #00284B);
  box-shadow: 0 0 0 4px rgba(0,40,75,.25);
}

.form-consent {
  margin-top: 6px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary, #9aa7b2);
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.contact-actions {
  margin-top: 6px;
  display: flex;
  gap: 10px;
}

.contact-submit {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  color: #fff;
  background: var(--brand, #00284B);
  box-shadow: 0 10px 30px rgba(0,40,75,.35);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
}

.contact-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0,40,75,.4);
}

/* === Page Actualités === */
.news-page .section {
  padding: 64px 20px;
}

.news-page .container {
  max-width: 1160px;
  margin: 0 auto;
}

.news-page .section-title {
  color: var(--text-color, #e6edf3);
  margin: 0 0 8px;
}

.news-page .section-subtitle {
  color: var(--text-secondary, #9aa7b2);
  margin: 0 0 22px;
}

/* Toolbar */
.news-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .news-toolbar {
    grid-template-columns: 1fr;
  }
}

.news-search,
.news-select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #243042);
  background: rgba(255,255,255,.03);
  color: var(--text-color, #e6edf3);
  padding: 10px 12px;
  outline: none;
}

.news-search::placeholder {
  color: #90a0ae66;
}

.news-search:focus-visible,
.news-select:focus-visible {
  border-color: var(--brand, #00284B);
  box-shadow: 0 0 0 4px rgba(0,40,75,.25);
}

.news-btn {
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  color: #fff;
  background: var(--brand, #00284B);
  box-shadow: 0 10px 30px rgba(0,40,75,.35);
  cursor: pointer;
}

/* Grille d’actus */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1080px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-color, #1f2a37);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(16,24,40,.12);
  display: grid;
  grid-template-rows: 140px auto;
}

.news-cover {
  position: relative;
  display: block;
  height: 100%;
  background: radial-gradient(120% 120% at 50% 20%, rgba(0,40,75,.55), rgba(0,0,0,.25) 60%), #09141f;
}

.news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,40,75,.9);
  border: 1px solid rgba(255,255,255,.12);
}

.news-body {
  padding: 16px 16px 18px;
}

.news-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.news-title a {
  color: var(--text-color, #e6edf3);
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-excerpt {
  color: var(--text-secondary, #9aa7b2);
  margin: 0 0 10px;
}

.news-meta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #8fa1b0;
  font-size: .9rem;
}

.news-meta .dot {
  opacity: .6;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #1f2a37);
  background: rgba(255,255,255,.04);
  color: var(--text-color, #e6edf3);
  text-decoration: none;
}

.page-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
}

.page-btn.is-active {
  background: var(--brand, #00284B);
  border-color: transparent;
  color: #fff;
}

.page-btn.is-disabled {
  opacity: .5;
  pointer-events: none;
}

/* Accessibilité */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* === Page Projet (TAE Paris) === */
.project-page .section {
  padding: 64px 20px;
}

.project-page .container {
  max-width: 1160px;
  margin: 0 auto;
}

.project-hero {
  padding-top: 80px;
  background: radial-gradient(100% 140% at 50% 0%, rgba(0,40,75,.35), transparent 60%),
    transparent;
  text-align: center;
}

.project-title {
  color: var(--text-color, #e6edf3);
  margin: 0 0 6px;
}

.project-subtitle {
  color: var(--text-secondary, #9aa7b2);
  margin: 0 12px 14px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-badge {
  padding: 8px 12px;
  border: 1px solid var(--border-color, #1f2a37);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--text-color, #e6edf3);
  font-weight: 700;
  font-size: .9rem;
}

/* Layout */
.project-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 24px;
}

@media (max-width: 1040px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-main h2 {
  margin: 18px 0 10px;
  color: var(--text-color, #e6edf3);
  font-weight: 800;
}

.project-main p, .project-main li {
  color: var(--text-secondary, #9aa7b2);
}

.check-list {
  padding-left: 1.2rem;
}

.check-list li {
  margin: 6px 0;
}

.bullet {
  padding-left: 1.2rem;
}

.bullet li {
  margin: 6px 0;
}

.project-aside .project-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-color, #1f2a37);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(16,24,40,.12);
  padding: 18px 18px 20px;
}

.aside-title {
  margin: 0 0 10px;
  color: var(--text-color, #e6edf3);
  font-weight: 800;
}

.facts {
  display: grid;
  gap: 8px;
}

.facts dt {
  color: var(--text-secondary, #9aa7b2);
}

.facts dd {
  margin: 0;
  color: var(--text-color, #e6edf3);
}

.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.stats .n {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.stats span:last-child {
  color: var(--text-secondary,#9aa7b2);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}

@media (max-width: 740px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-color, #1f2a37);
  border-radius: 16px;
  padding: 16px 16px 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--text-color, #e6edf3);
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary, #9aa7b2);
}

/* Timeline */
.milestones {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  position: relative;
}

.milestones::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.12);
}

.milestone {
  position: relative;
  padding-left: 32px;
  margin: 18px 0;
}

.milestone::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand,#00284B);
  box-shadow: 0 0 0 3px rgba(0,40,75,.35);
}

.ms-time {
  display: block;
  color: #8fa1b0;
  font-size: .9rem;
  margin-bottom: 4px;
}

.ms-body h3 {
  margin: 0 0 4px;
  color: var(--text-color,#e6edf3);
}

.ms-body p {
  margin: 0;
  color: var(--text-secondary,#9aa7b2);
}

/* CTA */
.project-cta .cta-box {
  text-align: center;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient( to right, rgba(0,40,75,.55), rgba(0,0,0,.25) );
  border: 1px solid var(--border-color, #1f2a37);
  box-shadow: 0 12px 40px rgba(16,24,40,.12);
}

.project-cta h2 {
  margin: 0 0 8px;
  color: #fff;
}

.project-cta p {
  margin: 0 0 14px;
  color: var(--text-secondary,#9aa7b2);
}

/* Bouton primaire réutilisable */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: var(--brand, #00284B);
  border: 0;
  box-shadow: 0 10px 30px rgba(0,40,75,.35);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.w100 {
  width: 100%;
}


/* =========================================================
   MOBILE OPTIM — CENTRAGE & LAYOUT (≤ 900px)
   - Aucun changement HTML
   - Navbar/grille/footer centrés et fluides
   - Grilles → 1 colonne, containers centrés
========================================================= */

@media (max-width: 900px) {
  html, body { margin: 0; overflow-x: hidden; }

  :root { --nav-height: 64px; }

  /* ===== NAVBAR ===== */
  .glass-nav {
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 8px 12px;
    min-height: var(--nav-height);
    box-sizing: border-box;
    display: grid;                     /* left brand | center | right actions */
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .glass-nav .nav-brand {
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .glass-nav .nav-brand img { height: 28px; max-height: 28px; }

  /* Rail central scrollable & centré */
  .glass-nav .nav-center {
    display: flex;
    gap: 10px;
    justify-content: center;           /* centre les onglets */
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: auto;
  }
  .glass-nav .nav-center::-webkit-scrollbar { display: none; }
  .glass-nav .nav-center > * { flex: 0 0 auto; }

  .glass-nav .nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
  }

  /* Compense la nav fixe sur mobile */
  main { padding-top: calc(var(--nav-height) + env(safe-area-inset-top)); }

  /* ===== CONTAINERS GLOBAUX CENTRÉS ===== */
  .container, .inner, .wrap, .page-width,
  .section .container, .footer .container, .footer .inner {
    width: min(100% - 32px, 1100px);
    margin-inline: auto;               /* centre horizontalement */
    box-sizing: border-box;
  }

  /* ===== SECTIONS ===== */
  section, .section { padding-inline: 16px; }
  /* Titre de section centré (sans forcer le corps du texte) */
  section > :is(h1,h2,.section-title,.title),
  .section > :is(h1,h2,.section-title,.title) {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* ===== GRILLES / CARTES ===== */
  .news-grid, .features-grid, .domains-grid, .cards-grid, .grid,
  .trusted-section .logos-grid, .soutien-section .logos-grid {
    display: grid;
    grid-template-columns: 1fr !important; /* 1 colonne sur mobile */
    gap: 16px;
  }
  /* Cartes plus lisibles et centrées */
  .card { margin-inline: auto; }

  /* ===== HERO ===== */
  .hero, .hero .content, .hero .inner {
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .hero .actions { justify-content: center; }

  /* ===== FOOTER ===== */
  footer, .footer { width: 100%; }
  .footer { padding: 20px 0 24px; }
  .footer .columns, .footer .grid {
    display: grid;
    grid-template-columns: 1fr;        /* stack */
    gap: 8px;
  }
  .footer .brand, .footer .links, .footer .legal { text-align: center; }
  .footer .legal { margin-top: 12px; }

  /* ===== DIVERS ===== */
  img, svg { max-width: 100%; height: auto; }
  .btn, .button { width: auto; }       /* évite les boutons 100% si non voulu */
}

/* Resserre encore sous 560px : logos en 1 colonne */
@media (max-width: 560px) {
  .trusted-section .logos-grid,
  .soutien-section .logos-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================
   NAVBAR MOBILE — LISTE VERTICALE + DÉPLOIEMENT
   (≤ 900px) — sans changer le HTML/JS
========================================================= */
@media (max-width: 900px) {
  :root { --nav-height: 64px; }

  /* Barre toujours en haut */
  .site-header.glass-nav, .glass-nav.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1100;
  }

  /* Compense la hauteur de nav pour le contenu */
  main { padding-top: calc(var(--nav-height) + env(safe-area-inset-top)); }

  /* Panneau du menu (sous la barre), en LISTE VERTICALE */
  .nav-center {
    position: fixed;
    left: 0; right: 0;
    top: calc(var(--nav-height) + env(safe-area-inset-top));
    width: 100vw;
    padding: 10px 14px 14px;

    background: rgba(0,0,0,.92);
    border-bottom: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    z-index: 1099;

    /* Etat fermé */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease, visibility .2s linear;

    /* Forcer la colonne (même si styles existants diffèrent) */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    white-space: normal !important;
  }

  /* Etat ouvert (class .menu-open posée par le JS sur .site-header) */
  .site-header.menu-open .nav-center {
    visibility: visible;
    opacity: 1;
    max-height: calc(100vh - var(--nav-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  /* Items affichés en bloc, 100% largeur */
  .nav-center > li,
  .nav-center > a,
  .nav-center > * { display: block !important; margin: 0 !important; }

  .nav-center li { list-style: none; }

  .nav-center a,
  .nav-center button {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 14px 12px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
  }
  .nav-center a:hover { background: rgba(255,255,255,.06); }

  /* Animation top→bottom (légère cascade) */
  .nav-center > * { opacity: 0; transform: translateY(-8px); }
  .site-header.menu-open .nav-center > * { animation: menuDrop .22s ease both; }
  .site-header.menu-open .nav-center > *:nth-child(1){ animation-delay: 0s; }
  .site-header.menu-open .nav-center > *:nth-child(2){ animation-delay: .04s; }
  .site-header.menu-open .nav-center > *:nth-child(3){ animation-delay: .08s; }
  .site-header.menu-open .nav-center > *:nth-child(4){ animation-delay: .12s; }
  .site-header.menu-open .nav-center > *:nth-child(5){ animation-delay: .16s; }
  .site-header.menu-open .nav-center > *:nth-child(6){ animation-delay: .20s; }

  @keyframes menuDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* On masque les actions droites pour aérer sur mobile (optionnel) */
  .nav-actions { display: none !important; }
}

/* =========================================================
   NAVBAR MOBILE — PLEINE LARGEUR, COLONNE, DÉPLOIEMENT
   (≤ 900px) — aucun changement HTML/JS nécessaire
========================================================= */
@media (max-width: 900px) {
  :root { --nav-height: 64px; }

  /* Barre fixée tout en haut */
  .site-header.glass-nav, .glass-nav.site-header {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 1200;
    overflow: visible !important; /* évite tout clipping */
  }
  .glass-nav .navbar { position: relative; overflow: visible; }

  /* Décalage du contenu pour ne pas passer sous la nav */
  main { padding-top: calc(var(--nav-height) + env(safe-area-inset-top)); }

  /* Panneau du menu : pleine largeur sous la barre */
  .nav-center{
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(var(--nav-height) + env(safe-area-inset-top)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px 14px !important;

    background: rgba(0,0,0,.92) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    backdrop-filter: blur(10px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
    z-index: 1199 !important;

    /* état fermé */
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: max-height .28s ease, opacity .2s ease, visibility .2s linear !important;

    /* FORCER la colonne verticale lisible */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    white-space: normal !important;   /* annule tout nowrap hérité */
    transform: none !important;
    margin: 0 !important;
  }

  /* Ouverture (classe ajoutée par le JS) */
  .site-header.menu-open .nav-center{
    visibility: visible !important;
    opacity: 1 !important;
    max-height: calc(100vh - var(--nav-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
  }

  /* Un item par ligne, plein largeur */
  .nav-center > li,
  .nav-center > a,
  .nav-center > button,
  .nav-center > *{
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .nav-center li{ list-style: none !important; }
  .nav-center a,
  .nav-center button{
    text-align: left !important;
    padding: 14px 12px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
  }
  .nav-center a:hover{ background: rgba(255,255,255,.06) !important; }

  /* Animation haut→bas (cascade légère) */
  .nav-center > *{ opacity: 0; transform: translateY(-8px); }
  .site-header.menu-open .nav-center > *{ animation: menuDrop .22s ease both; }
  .site-header.menu-open .nav-center > *:nth-child(2){ animation-delay: .04s; }
  .site-header.menu-open .nav-center > *:nth-child(3){ animation-delay: .08s; }
  .site-header.menu-open .nav-center > *:nth-child(4){ animation-delay: .12s; }
  .site-header.menu-open .nav-center > *:nth-child(5){ animation-delay: .16s; }
  @keyframes menuDrop{ from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

  /* Optionnel : masquer les actions droites pour aérer */
  .nav-actions{ display: none !important; }
}

/* =========================================================
   NAVBAR MOBILE — HAMBURGER VISIBLE + LOUPE À DROITE
   (≤ 900px)
========================================================= */
@media (max-width: 900px) {
  /* Grille : logo | espace | hamburger | loupe */
  .glass-nav .navbar{
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    column-gap: 12px;
    min-height: var(--nav-height, 64px);
  }

  /* Hamburger : 3 barres bien visibles + plus d'espace avec le logo */
  .nav-toggle{
    grid-column: 3;
    margin-left: 8px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
  }
  .nav-toggle .bar{
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  /* Animation en X à l’ouverture */
  .nav-toggle[aria-expanded="true"]{ gap: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-4px) rotate(-45deg); }

  /* Loupe (actions) toujours visible à droite en mobile */
  .nav-actions{
    grid-column: 4;
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .search{ display: flex; align-items: center; }
  .search .search-trigger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 12px;
  }
  /* Le champ reste replié tant qu’on n’ouvre pas la recherche */
  .search .search-field{ display: none; }
  .search.open .search-field{ display: flex; }
}

/* ======= Patch 2025-09-18 — Remove search & loupe (desktop + mobile) ======= */
.nav-actions .search,
.nav-actions .search-trigger,
.search,
.search-field,
.search.open,
.mobile-search,
header .search,
form[role="search"],
button.search-trigger,
a.search-trigger {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Re-balance navbar spacing when actions right side loses the search */
.nav-actions {
  gap: 0 !important;
}

/* If the layout expected the search to grow, ensure the center stays centered */
.nav-center { justify-content: center; }

