/* =====================================================================
   NETWORK ORIGIN DEV — thème moderne
   Couleurs tirées du logo : bleu électrique, bleu ciel, bleu nuit.
   ===================================================================== */
:root {
  --nod-primary: #1f6bff;        /* bleu électrique du logo */
  --nod-primary-dark: #0b4fd6;
  --nod-sky: #3fa9ff;            /* bleu ciel du logo */
  --nod-cyan: #22d3ee;           /* accent lumineux */
  --nod-navy: #0a1633;           /* bleu nuit (fonds sombres) */
  --nod-navy-2: #11214a;
  --nod-ink: #0f172a;            /* texte principal */
  --nod-muted: #5b6b86;          /* texte secondaire */
  --nod-bg: #f5f8ff;             /* fond clair bleuté */
  --nod-line: #e3e9f6;
  --nod-gradient: linear-gradient(135deg, #1f6bff 0%, #3fa9ff 55%, #22d3ee 100%);
  --nod-radius: 18px;
  --nod-shadow: 0 10px 30px rgba(15, 35, 90, .08);
  --nod-shadow-lg: 0 24px 60px rgba(15, 35, 90, .16);

  --bs-primary: #1f6bff;
  --bs-primary-rgb: 31, 107, 255;
  --bs-link-color: #1f6bff;
  --bs-link-hover-color: #0b4fd6;
  --bs-body-color: #0f172a;
  --bs-body-font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--nod-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body.app-body {
  background: var(--nod-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, .display-6 {
  font-weight: 700;
  letter-spacing: -.01em;
}

.text-muted { color: var(--nod-muted) !important; }
.text-primary { color: var(--nod-primary) !important; }
.text-gradient {
  background: var(--nod-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Barre de navigation ---------- */
.nod-navbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(227, 233, 246, .8);
  transition: box-shadow .25s ease, background .25s ease;
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.nod-navbar.is-scrolled {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 6px 24px rgba(15, 35, 90, .08);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: var(--nod-ink) !important;
  letter-spacing: .02em;
}
.navbar-brand img {
  height: 38px;
  width: auto;
}
.navbar-brand span b { color: var(--nod-primary); }
.navbar .nav-link {
  white-space: nowrap;
  font-weight: 500;
  color: #33415c;
  border-radius: 999px;
  padding: .45rem .9rem !important;
  transition: color .2s, background .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--nod-primary);
  background: rgba(31, 107, 255, .08);
}
.navbar .nav-link.nav-cta {
  color: #fff !important;
  background: var(--nod-gradient);
  box-shadow: 0 6px 18px rgba(31, 107, 255, .35);
}
.navbar .nav-link.nav-cta:hover { filter: brightness(1.05); }

/* ---------- Boutons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; }
.btn-sm { padding: .35rem .9rem; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.02rem; }
.btn-primary {
  background: var(--nod-gradient);
  border: 0;
  box-shadow: 0 8px 22px rgba(31, 107, 255, .32);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--nod-gradient);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 107, 255, .42);
}
.btn-outline-primary {
  color: var(--nod-primary);
  border: 1.5px solid rgba(31, 107, 255, .45);
}
.btn-outline-primary:hover { background: var(--nod-primary); border-color: var(--nod-primary); color: #fff; }
.btn-light { color: var(--nod-navy); }
.btn-glass {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(34, 211, 238, .28), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(63, 169, 255, .30), transparent 60%),
    linear-gradient(160deg, var(--nod-navy) 0%, var(--nod-navy-2) 55%, #0d3a9e 100%);
  padding: 6rem 0 7rem;
}
.hero::after {               /* grille discrète */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nod-cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .25);
}
.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 1.2rem 0 1rem;
}
.hero-title .text-gradient {
  background: linear-gradient(90deg, #7cc4ff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .85); }
.hero-text { color: rgba(255, 255, 255, .68); }
.hero-visual {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 10px rgba(255, 255, 255, .06);
  animation: float 6s ease-in-out infinite;
}
.hero-logo { width: 100%; max-height: 260px; object-fit: contain; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats .num { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stats .lbl { font-size: .85rem; color: rgba(255, 255, 255, .65); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 70px; width: 100%; z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--nod-bg); }
.section-dark {
  background: linear-gradient(160deg, var(--nod-navy) 0%, var(--nod-navy-2) 100%);
  color: #fff;
}
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nod-primary);
  background: rgba(31, 107, 255, .08);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.section-dark .eyebrow { color: var(--nod-cyan); background: rgba(34, 211, 238, .12); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .8rem; }
.section-sub { color: var(--nod-muted); font-size: 1.05rem; }
.section-dark .section-sub { color: rgba(255, 255, 255, .7); }
.sub-title { font-size: 1.35rem; text-align: center; margin: 4rem 0 2rem; }

/* ---------- Cartes ---------- */
.card {
  border: 1px solid var(--nod-line);
  border-radius: var(--nod-radius);
  box-shadow: var(--nod-shadow);
}
.card-img-top {
  height: 190px;
  object-fit: cover;
  border-top-left-radius: var(--nod-radius);
  border-top-right-radius: var(--nod-radius);
}
.feature-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--nod-line);
  border-radius: var(--nod-radius);
  padding: 1.8rem;
  box-shadow: var(--nod-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nod-shadow-lg);
  border-color: rgba(31, 107, 255, .35);
}
.feature-card h5 { margin: 1rem 0 .5rem; }
.feature-card p { margin: 0; }
.icon-badge {
  width: 52px; height: 52px;
  display: inline-grid; place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  color: #fff;
  background: var(--nod-gradient);
  box-shadow: 0 10px 22px rgba(31, 107, 255, .3);
}
.icon-badge.soft {
  color: var(--nod-primary);
  background: rgba(31, 107, 255, .1);
  box-shadow: none;
}
.service-pill {
  height: 100%;
  display: flex; align-items: center; gap: .85rem;
  background: #fff;
  border: 1px solid var(--nod-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-pill i { color: var(--nod-primary); font-size: 1.3rem; }
.service-pill:hover { border-color: var(--nod-primary); box-shadow: var(--nod-shadow); transform: translateY(-2px); }

.value-card {
  height: 100%;
  border-radius: var(--nod-radius);
  padding: 1.6rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.value-card i { font-size: 1.6rem; color: var(--nod-cyan); }
.value-card p { margin: .8rem 0 0; font-weight: 600; }

/* Projets */
.project-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--nod-line);
  border-radius: var(--nod-radius);
  box-shadow: var(--nod-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--nod-shadow-lg); }
.project-media {
  height: 190px;
  overflow: hidden;
  background: var(--nod-gradient);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .9);
  font-size: 2.6rem;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-body { padding: 1.4rem; flex: 1; }
.project-body h5 { margin-bottom: .5rem; }
.tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  vertical-align: middle;
}
.tag-ds { color: #0e7490; background: rgba(34, 211, 238, .15); }
.tag-soon { color: var(--nod-muted); background: #eef2fa; }

/* Équipe */
.team-card { text-align: center; padding: 2rem 1.5rem; }
.avatar {
  width: 84px; height: 84px; margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  background: var(--nod-gradient);
  box-shadow: 0 0 0 6px rgba(31, 107, 255, .12);
}

/* Dons */
.donate-card { text-align: center; padding: 2rem 1.5rem; }
.donate-number {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: .04em;
  margin: .6rem 0 1rem;
}
.op-mtn .icon-badge { background: linear-gradient(135deg, #ffcc00, #f59e0b); box-shadow: 0 10px 22px rgba(245, 158, 11, .3); color: #1f2937; }
.op-airtel .icon-badge { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 10px 22px rgba(239, 68, 68, .3); }

/* Contact */
.contact-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--nod-shadow-lg);
  overflow: hidden;
}
.contact-aside {
  background: linear-gradient(160deg, var(--nod-navy) 0%, #0d3a9e 100%);
  color: #fff;
  padding: 2.5rem;
  height: 100%;
}
.contact-aside .item { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.4rem; }
.contact-aside .item i { font-size: 1.2rem; color: var(--nod-cyan); }
.contact-aside .item small { color: rgba(255, 255, 255, .6); display: block; }

/* ---------- Formulaires ---------- */
.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid var(--nod-line);
  padding: .7rem .95rem;
  background-color: #fbfcff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--nod-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 107, 255, .14);
}
.form-label { font-weight: 600; font-size: .92rem; color: #33415c; }
.form-check-input:checked { background-color: var(--nod-primary); border-color: var(--nod-primary); }

/* ---------- Pages internes (connexion, admin, téléchargements) ---------- */
.app-main { flex: 1; padding: 2.5rem 0 3rem; }
.page-title { font-weight: 800; margin-bottom: 1.5rem; }
.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; }
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 24px;
  padding: 2.4rem 2.2rem;
  box-shadow: var(--nod-shadow-lg);
  border: 1px solid var(--nod-line);
}
.auth-card .auth-icon { margin: 0 auto 1rem; display: grid; }
.auth-card h1 { text-align: center; font-size: 1.6rem; margin-bottom: .3rem; }
.auth-card .auth-sub { text-align: center; color: var(--nod-muted); margin-bottom: 1.8rem; }

.nav-pills .nav-link {
  border-radius: 999px;
  font-weight: 600;
  color: #33415c;
  padding: .5rem 1.1rem;
}
.nav-pills .nav-link:hover { background: rgba(31, 107, 255, .08); color: var(--nod-primary); }
.nav-pills .nav-link.active { background: var(--nod-gradient); }

.table { --bs-table-bg: transparent; }
.table thead th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--nod-muted); border-bottom-width: 1px;
}
.list-group { border-radius: var(--nod-radius); box-shadow: var(--nod-shadow); }
.list-group-item { border-color: var(--nod-line); padding: 1rem 1.25rem; }
.alert { border-radius: 14px; border: 0; }
.badge.text-bg-primary { background: var(--nod-gradient) !important; }

/* ---------- Pied de page ---------- */
.nod-footer {
  background: var(--nod-navy);
  color: rgba(255, 255, 255, .65);
  padding: 3.5rem 0 1.5rem;
}
.nod-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; overflow-wrap: anywhere; }
.nod-footer a:hover { color: #fff; }
.nod-footer .brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.nod-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-size: .85rem;
}
.nod-footer.compact { padding: 1.4rem 0; }

/* ---------- Pages intérieures du site vitrine ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(34, 211, 238, .25), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(63, 169, 255, .28), transparent 60%),
    linear-gradient(160deg, var(--nod-navy) 0%, var(--nod-navy-2) 60%, #0d3a9e 100%);
  padding: 4.5rem 0 5.5rem;
}
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 1.1rem 0 .8rem;
}
.navbar .nav-link.active {
  color: var(--nod-primary) !important;
  background: rgba(31, 107, 255, .1);
  font-weight: 600;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #fff;
  border-radius: 24px;
  padding: 2.4rem 2.6rem;
  background: var(--nod-gradient);
  box-shadow: 0 20px 50px rgba(31, 107, 255, .3);
}
.cta-band h3 { color: #fff; font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .88); }
.cta-band .btn-light { color: var(--nod-primary-dark); }
@media (max-width: 767.98px) {
  .cta-band { text-align: center; justify-content: center; padding: 2rem 1.5rem; }
}

/* Équipe avec photos */
.team-card-photo {
  height: 100%;
  overflow: hidden;
  text-align: center;
  background: #fff;
  border: 1px solid var(--nod-line);
  border-radius: var(--nod-radius);
  box-shadow: var(--nod-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card-photo:hover { transform: translateY(-6px); box-shadow: var(--nod-shadow-lg); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--nod-bg); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.team-card-photo:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 1.4rem 1.2rem 1.6rem; border-top: 4px solid transparent; border-image: var(--nod-gradient) 1; }

/* Photo de la page Présentation */
.about-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--nod-shadow-lg);
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; display: block; }
.about-photo figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  padding: .7rem 1rem;
  border-radius: 14px;
  font-size: .88rem; font-weight: 600; color: #fff;
  background: rgba(10, 22, 51, .72);
  backdrop-filter: blur(6px);
}

/* ---------- Apparition au défilement ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 991.98px) {
  .hero { padding: 4rem 0 5.5rem; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 3rem; }
  .navbar .nav-link { display: inline-block; }
}

/* =====================================================================
   ADAPTATION À TOUTES LES TAILLES D'ÉCRAN
   Téléphone (< 576 px) · grand téléphone / petite tablette (576–767)
   Tablette (768–991) · portable (992–1399) · grand écran (≥ 1400)
   ===================================================================== */

/* Typographie et espacements fluides : ils grandissent avec l'écran */
html { font-size: clamp(15px, 14px + .25vw, 17px); }
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section.pt-0 { padding-top: 0; }
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.sub-title { margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 clamp(1.5rem, 1rem + 1vw, 2rem); }
img { max-width: 100%; height: auto; }

/* Images de projets : proportion fixe plutôt qu'une hauteur fixe */
.project-media { height: auto; aspect-ratio: 16 / 10; }
.card-img-top { height: auto; aspect-ratio: 16 / 10; }

/* ---------- Grands écrans (≥ 1400 px) : contenu plus large, mieux réparti ---------- */
@media (min-width: 1400px) {
  .container, .container-lg, .container-xl, .container-xxl { max-width: 1320px; }
  .hero { padding: 7rem 0 8rem; }
  .hero-visual { padding: 2.5rem; }
}
@media (min-width: 1800px) {
  .container, .container-lg, .container-xl, .container-xxl { max-width: 1520px; }
  .hero { min-height: 78vh; display: flex; align-items: center; }
  .hero > .container { width: 100%; }
}

/* ---------- Portables (992–1199 px) : la barre de menu tient sur une ligne ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .nav-link { padding: .4rem .6rem !important; font-size: .92rem; }
  .navbar-brand { font-size: 1rem; gap: .45rem; }
  .navbar-brand img { height: 32px; }
  .hero-title { font-size: clamp(2rem, 3.6vw, 2.8rem); }
}

/* ---------- Tablettes et téléphones (< 992 px) : menu déroulant ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: .6rem;
    padding: .6rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--nod-shadow);
  }
  .navbar-collapse .navbar-nav { gap: .15rem; }
  .navbar .nav-link { display: block; padding: .65rem 1rem !important; }
  .navbar .nav-link.nav-cta { text-align: center; margin-top: .3rem; }
  .hero-visual { max-width: 380px; margin-left: auto; margin-right: auto; padding: 1.5rem; }
  .hero-logo { max-height: 200px; }
  .hero-lead, .hero-text { margin-left: auto; margin-right: auto; }
  .page-hero { padding: 3.5rem 0 4.5rem; }
  .about-photo { max-width: 460px; margin: 0 auto; }
  .contact-aside { padding: 2rem; }
  .contact-aside .item { margin-top: 1rem; }
}

/* ---------- Téléphones (< 576 px) ---------- */
@media (max-width: 575.98px) {
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .navbar-brand span { font-size: .95rem; }
  .navbar-brand img { height: 32px; }

  .hero { padding: 3rem 0 4.5rem; }
  .hero-title { font-size: 2rem; margin: 1rem 0 .8rem; }
  .hero-lead { font-size: 1.02rem; }
  .hero-text { font-size: .92rem; }
  .hero .btn-lg { width: 100%; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 2rem;
  }
  .hero-stats .num { font-size: 1.5rem; }
  .hero-stats .lbl { font-size: .75rem; }
  .hero-visual { max-width: 300px; border-radius: 22px; }
  .hero-wave { height: 40px; }

  .page-hero { padding: 2.8rem 0 3.8rem; }
  .page-hero-title { font-size: 1.8rem; }

  .section-title { font-size: 1.6rem; }
  .section-sub { font-size: .98rem; }
  .feature-card, .donate-card { padding: 1.4rem; }
  .service-pill { padding: .85rem 1rem; }
  .team-card-photo { max-width: 360px; margin: 0 auto; }
  .project-body { padding: 1.15rem; }

  .cta-band { padding: 1.8rem 1.25rem; border-radius: 20px; }
  .cta-band h3 { font-size: 1.3rem; }
  .cta-band .btn { width: 100%; }

  .contact-card { border-radius: 20px; }
  .contact-aside { padding: 1.6rem; }
  .contact-card .p-4 { padding: 1.4rem !important; }
  .contact-card .btn-lg { width: 100%; }

  .auth-card { padding: 1.8rem 1.3rem; border-radius: 20px; }
  .app-main { padding: 1.5rem 0 2rem; }

  .nod-footer { text-align: center; padding-top: 2.5rem; }
  .nod-footer .row > div { display: flex; flex-direction: column; align-items: center; }

  /* Champs à 16 px : évite le zoom automatique sur iPhone */
  .form-control, .form-select { font-size: 16px; }
}

/* ---------- Téléphones en mode paysage (peu de hauteur) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero, .page-hero { padding: 2rem 0 3rem; min-height: 0; }
  .hero-visual { display: none; }
}

/* ---------- Pages d'administration : tableaux défilants sur petit écran ---------- */
@media (max-width: 767.98px) {
  .app-main .table { display: block; overflow-x: auto; white-space: nowrap; }
  .app-main .list-group-item { flex-wrap: wrap; gap: .75rem; }
  .app-main .nav-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  .app-main .nav-pills .nav-link { white-space: nowrap; }
}

/* ---------- Impression ---------- */
@media print {
  .nod-navbar, .nod-footer, .cta-band, .hero-wave { display: none !important; }
  .hero, .page-hero, .section-dark { background: #fff !important; color: #000 !important; }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   PAGES « PLEIN ÉCRAN » : sur ordinateur, chaque page tient dans l'écran
   ===================================================================== */

/* En-tête compact des pages intérieures (toutes tailles) */
.page-hero { padding: clamp(1.4rem, 3.5vh, 2.6rem) 0 clamp(1.6rem, 4vh, 2.8rem); }
.page-hero-title { font-size: clamp(1.7rem, 2.2rem + .6vw, 2.6rem); margin: .7rem 0 .4rem; }
.page-hero .hero-lead { font-size: 1rem; max-width: 760px; margin: 0 auto; }
.page-body { padding: clamp(1.5rem, 4vh, 3rem) 0; }

/* Pied de page fin */
.nod-footer.slim { padding: .9rem 0; font-size: .85rem; }
.nod-footer.slim a { color: rgba(255, 255, 255, .8); }

/* Onglets de la page Présentation */
.tabs-pro { gap: .5rem; flex-wrap: wrap; }
.tabs-pro .nav-link {
  border: 1.5px solid var(--nod-line);
  background: #fff;
  color: #33415c;
  font-weight: 600;
}
.tabs-pro .nav-link.active { border-color: transparent; color: #fff; background: var(--nod-gradient); box-shadow: 0 8px 20px rgba(31, 107, 255, .3); }
.panel-dark {
  border-radius: 22px;
  padding: clamp(1.2rem, 3vh, 2rem);
  color: #fff;
  background: linear-gradient(160deg, var(--nod-navy) 0%, var(--nod-navy-2) 100%);
}
.panel-dark .panel-title { font-size: 1.05rem; color: #fff; margin-bottom: .9rem; }
.panel-dark .value-card { padding: 1.1rem; }
.panel-dark .value-card p { margin-top: .5rem; }

/* Carrousel des réalisations */
.carousel-pro { position: relative; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem .25rem 1rem;
  scrollbar-width: thin;
}
.carousel-track:focus-visible { outline: 3px solid rgba(31, 107, 255, .35); border-radius: 12px; }
.carousel-item-pro { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: 40%; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; display: grid; place-items: center;
  color: #fff; background: var(--nod-gradient);
  box-shadow: 0 8px 20px rgba(31, 107, 255, .35);
  transition: opacity .2s, transform .2s;
}
.carousel-btn:hover { transform: scale(1.06); }
.carousel-btn:disabled { opacity: .35; cursor: default; transform: none; }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }
@media (max-width: 991.98px) { .carousel-item-pro { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 575.98px) {
  .carousel-item-pro { flex-basis: 86%; }
  .carousel-btn { display: none; }
}

/* Descriptions de projets repliables */
.project-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card.is-open .project-desc { -webkit-line-clamp: unset; display: block; }
.project-more { font-weight: 600; text-decoration: none; }

/* ---------- Ordinateurs et portables : une page = un écran ---------- */
@media (min-width: 992px) and (min-height: 640px) {
  body.landing {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.landing > .nod-navbar { flex: 0 0 auto; }
  body.landing > .nod-footer { flex: 0 0 auto; }
  .landing-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;          /* sécurité : défilement interne seulement si la fenêtre est très petite */
  }
  .landing-main > .page-hero { flex: 0 0 auto; padding: clamp(1rem, 2.6vh, 2rem) 0 clamp(1.1rem, 2.8vh, 2.1rem); }
  .landing-main > .page-hero .hero-badge { padding: .25rem .75rem; font-size: .8rem; }
  .landing-main > .page-hero .page-hero-title { font-size: clamp(1.5rem, 4.4vh, 2.4rem); margin: clamp(.35rem, 1.2vh, .7rem) 0 clamp(.2rem, .8vh, .4rem); }
  .landing-main > .page-hero .hero-lead { font-size: clamp(.88rem, 2vh, 1rem); }
  .landing-main > .page-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: clamp(1rem, 3vh, 2.5rem) 0;
  }
  .landing-main > .page-body > .container { width: 100%; }

  /* Accueil : le bandeau occupe tout l'espace */
  .hero-home {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 0;
    padding: clamp(1.5rem, 4vh, 3rem) 0;
  }
  .hero-home > .container { width: 100%; }
  .hero-home .hero-title { font-size: clamp(2rem, 5.6vh, 3.5rem); margin: clamp(.6rem, 2vh, 1.2rem) 0 clamp(.5rem, 1.5vh, 1rem); }
  .hero-home .hero-lead { font-size: clamp(1rem, 2.2vh, 1.15rem); }
  .hero-home .hero-stats { margin-top: clamp(1.2rem, 3.5vh, 2.5rem); }
  .hero-home .hero-visual { padding: clamp(1rem, 3vh, 2rem); }
  .hero-home .hero-logo { max-height: clamp(160px, 34vh, 300px); }

  /* Équipe : photos dimensionnées sur la hauteur disponible */
  .team-photo { aspect-ratio: auto; height: clamp(200px, 42vh, 420px); }
  .team-body { padding: clamp(.8rem, 2vh, 1.4rem) 1rem; }

  /* Réalisations : images moins hautes */
  .project-media { aspect-ratio: auto; height: clamp(120px, 22vh, 220px); }
  .project-card.is-open .project-media { height: clamp(80px, 12vh, 140px); }

  /* Présentation */
  .feature-card { padding: clamp(1.1rem, 2.6vh, 1.8rem); }
  .about-photo img { aspect-ratio: auto; height: clamp(240px, 48vh, 460px); }
  .tabs-pro { margin-bottom: clamp(1rem, 3vh, 1.5rem) !important; }

  /* Présentation : onglets Expertise et Formation plus compacts */
  .panel-dark .value-card { padding: clamp(.7rem, 1.8vh, 1.1rem) 1rem; }
  .panel-dark .value-card i { font-size: 1.3rem; }
  .panel-dark .value-card small { display: block; line-height: 1.35; }
  .panel-dark .row.text-center .value-card { display: flex; align-items: center; gap: .75rem; text-align: left; }
  .panel-dark .row.text-center .value-card p { margin: 0; }
  .panel-dark .panel-title { margin-bottom: clamp(.5rem, 1.5vh, .9rem); }
  .tab-pane .section-title { font-size: clamp(1.35rem, 3.6vh, 2rem); }
  .tab-pane .section-sub { font-size: clamp(.92rem, 2vh, 1.05rem); }
  .tab-pane .d-grid.gap-3 { gap: clamp(.4rem, 1.4vh, 1rem) !important; margin-top: clamp(.6rem, 2vh, 1.5rem) !important; }
  .tab-pane .about-photo img { height: clamp(200px, 40vh, 440px); }

  /* Réalisations : la description dépliée défile dans sa carte */
  .project-card.is-open .project-desc { max-height: clamp(90px, 20vh, 260px); overflow-y: auto; }

  /* Contact */
  .contact-aside { padding: clamp(1.4rem, 3.5vh, 2.5rem); }
  .contact-card .row.g-3 { --bs-gutter-y: clamp(.5rem, 1.6vh, 1rem); }
  .contact-card .form-control { padding-top: clamp(.45rem, 1.2vh, .7rem); padding-bottom: clamp(.45rem, 1.2vh, .7rem); }
  .contact-card textarea.form-control { height: clamp(70px, 14vh, 150px); min-height: 0; }
  .contact-card .form-label { margin-bottom: .3rem; }
  .contact-card .p-lg-5 { padding: clamp(1.4rem, 3.5vh, 3rem) !important; }
}

/* Écrans d'ordinateur peu hauts (portables 1366×768, 1280×720…) : en-têtes réduits au titre */
@media (min-width: 992px) and (min-height: 640px) and (max-height: 820px) {
  .landing-main > .page-hero { padding: .9rem 0 1rem; }
  .landing-main > .page-hero .hero-badge,
  .landing-main > .page-hero .hero-lead { display: none; }
  .landing-main > .page-hero .page-hero-title { margin: 0; font-size: clamp(1.5rem, 4vh, 2rem); }
  .landing-main > .page-body { padding: clamp(.75rem, 2vh, 1.5rem) 0; }
  .team-photo { height: clamp(180px, 38vh, 380px); }
  .project-media { height: clamp(110px, 19vh, 200px); }
  .tab-pane .about-photo img { height: clamp(190px, 36vh, 400px); }
  .tab-pane > .section-sub, .tab-pane > p.section-sub { margin-bottom: 1rem !important; }
  .feature-card h5 { margin: .6rem 0 .35rem; }
  .feature-card .icon-badge { width: 44px; height: 44px; font-size: 1.2rem; }
  .panel-dark { padding: 1rem 1.2rem; }
  .panel-dark .value-card small { font-size: .78rem; }
  .contact-aside .item { margin-top: .8rem; }
}

/* ---------- Équipe : photos plus petites pour voir toute la page à l'écran ---------- */
.landing-main .team-card-photo { max-width: 280px; margin-left: auto; margin-right: auto; }
.landing-main .team-photo img { object-position: center 18%; }
@media (min-width: 992px) {
  .landing-main .team-photo { aspect-ratio: auto; height: clamp(180px, 34vh, 320px); }
  .landing-main .team-body { padding: .85rem 1rem 1rem; }
  .landing-main .team-body h5 { font-size: 1.05rem; }
}
@media (min-width: 992px) and (max-height: 820px) {
  .landing-main .team-photo { height: clamp(160px, 34vh, 280px); }
}

/* ---------- Équipe : photos affichées en entier (format 4:5, sans recadrage) ---------- */
.landing-main .team-photo { aspect-ratio: 4 / 5; height: auto; }
.landing-main .team-photo img { object-fit: contain; object-position: center; }
@media (min-width: 992px) {
  .landing-main .team-photo { height: auto; }
  /* la largeur de la carte suit la hauteur de l'écran pour que la photo entière reste visible */
  .landing-main .team-card-photo { max-width: clamp(170px, 28vh, 280px); }
}
@media (min-width: 992px) and (max-height: 820px) {
  .landing-main .team-photo { height: auto; }
  .landing-main .team-card-photo { max-width: clamp(160px, 27vh, 240px); }
}

/* Équipe : carte plus large pour le texte, photo entière centrée sur un fond doux */
.landing-main .team-photo { background: linear-gradient(160deg, #eef4ff, #f8fbff); }
@media (min-width: 992px) {
  .landing-main .team-card-photo { max-width: 300px; }
  .landing-main .team-photo { aspect-ratio: auto; height: clamp(180px, 34vh, 330px); padding-top: 10px; }
  .landing-main .team-photo img { object-fit: contain; object-position: center bottom; }
}
@media (min-width: 992px) and (max-height: 820px) {
  .landing-main .team-card-photo { max-width: 290px; }
  .landing-main .team-photo { height: clamp(170px, 33vh, 270px); }
}
@media (min-width: 992px) { .landing-main .team-photo img { border-radius: 12px 12px 0 0; } }

/* Présentation › Formation : la photo s'affiche en entier */
.about-photo { background: linear-gradient(160deg, #eef4ff, #f8fbff); }
.about-photo img { object-fit: contain; object-position: center; }
@media (min-width: 992px) {
  .tab-pane .about-photo { max-width: 360px; margin: 0 auto; }
  .tab-pane .about-photo img { aspect-ratio: 2 / 3; height: auto; max-height: 48vh; width: auto; margin: 0 auto; }
}
@media (min-width: 992px) and (max-height: 820px) {
  .tab-pane .about-photo img { max-height: 48vh; }
}
/* Légende sous la photo (et non par-dessus) pour voir la photo entière */
.tab-pane .about-photo { width: fit-content; max-width: 100%; background: #fff; }
.tab-pane .about-photo img { border-radius: 24px 24px 0 0; }
.tab-pane .about-photo figcaption { position: static; border-radius: 0 0 24px 24px; backdrop-filter: none; background: var(--nod-navy); font-size: .82rem; }
@media (min-width: 992px) and (min-height: 821px) { .tab-pane .about-photo img { max-height: 44vh; } }
.tab-pane .col-lg-5:has(.about-photo) { text-align: center; }
.tab-pane .about-photo { display: inline-block; width: auto; text-align: left; vertical-align: top; }
.tab-pane .about-photo img { display: block; width: auto; max-width: 100%; }
/* Le cadre prend exactement la largeur de la photo (format 2:3) ; la légende passe dessous */
.tab-pane .about-photo { --ph: clamp(260px, 52vh, 440px); display: block; width: calc(var(--ph) * 2 / 3); max-width: 100%; margin: 0 auto; }
.tab-pane .about-photo img { height: var(--ph); width: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; }
.tab-pane .about-photo figcaption { display: block; text-align: center; }
@media (min-width: 992px) and (max-height: 820px) { .tab-pane .about-photo { --ph: clamp(240px, 44vh, 380px); } }
@media (min-width: 992px) and (min-height: 821px) { .tab-pane .about-photo { --ph: clamp(280px, 42vh, 440px); } }
@media (max-width: 991.98px) { .tab-pane .about-photo { --ph: 420px; } }
@media (max-width: 575.98px) { .tab-pane .about-photo { --ph: 360px; } }

/* =====================================================================
   ADMINISTRATION : indicateurs, utilisateurs, connexions
   ===================================================================== */
.stat-card { border-radius: 16px; transition: transform .2s, box-shadow .2s; color: inherit; }
a.stat-card:hover { transform: translateY(-3px); box-shadow: var(--nod-shadow-lg); }
.stat-card .card-body { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; }
.stat-icon {
  grid-row: span 2;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  color: var(--nod-primary); background: rgba(31, 107, 255, .1);
}
.stat-icon.ok { color: #0f9d58; background: rgba(15, 157, 88, .12); }
.stat-icon.bad { color: #d93025; background: rgba(217, 48, 37, .1); }
.stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--nod-ink); }
.stat-lbl { font-size: .82rem; color: var(--nod-muted); }

.users-table td, .users-table th { white-space: nowrap; }
.users-table td:first-child { white-space: normal; min-width: 220px; }
.dropdown-menu { border-radius: 14px; border: 1px solid var(--nod-line); padding: .4rem; }
.dropdown-item { border-radius: 8px; font-size: .92rem; }
.dropdown-menu form { margin: 0; }

.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: .3rem; }
.legend-dot.ok { background: #1f6bff; }
.legend-dot.bad { background: #f28b82; }
.login-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: .45rem; align-items: end; height: 180px; }
.login-col { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.login-val { font-size: .7rem; color: var(--nod-muted); height: 16px; }
.login-bar { flex: 1; width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; background: #f1f5fd; border-radius: 6px; overflow: hidden; }
.login-bar .ok { background: var(--nod-gradient); display: block; }
.login-bar .bad { background: #f28b82; display: block; }
.login-day { font-size: .66rem; color: var(--nod-muted); margin-top: .3rem; white-space: nowrap; }
@media (max-width: 575.98px) { .login-day { writing-mode: vertical-rl; transform: rotate(180deg); } .login-chart { height: 200px; } }

/* Cadenas sur les pages réservées aux membres */
.nav-lock { font-size: .7rem; margin-left: .3rem; opacity: .55; vertical-align: 1px; }


/* Présentation › L'entreprise : informations légales */
.legal-badge {
  display: inline-flex; align-items: center;
  padding: .35rem .9rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: #fff;
  background: var(--nod-gradient);
  box-shadow: 0 6px 16px rgba(31, 107, 255, .28);
}
.legal-card {
  border-radius: 20px;
  padding: clamp(1.1rem, 3vh, 1.8rem);
  background: linear-gradient(160deg, var(--nod-navy) 0%, var(--nod-navy-2) 100%);
  color: #fff;
  box-shadow: var(--nod-shadow-lg);
}
.legal-title { font-size: 1.05rem; color: #fff; margin-bottom: clamp(.6rem, 2vh, 1rem); }
.legal-list { margin: 0; display: grid; gap: clamp(.45rem, 1.4vh, .8rem); }
.legal-list > div { display: grid; grid-template-columns: 11.5rem 1fr; gap: .75rem; padding-bottom: clamp(.45rem, 1.4vh, .8rem); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.legal-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-list dt { font-weight: 500; color: rgba(255, 255, 255, .6); font-size: .86rem; }
.legal-list dd { margin: 0; font-weight: 600; font-size: .92rem; }
@media (max-width: 575.98px) {
  .legal-list > div { grid-template-columns: 1fr; gap: .1rem; }
}


/* ===================== Page d'erreur ===================== */
.error-page { flex: 1 0 auto; display: grid; place-items: center; padding: 3rem 0; background:
    radial-gradient(900px 400px at 15% 0%, rgba(31,107,255,.10), transparent 60%),
    radial-gradient(700px 360px at 90% 100%, rgba(10,22,51,.08), transparent 60%); }
.error-card { position: relative; max-width: 620px; margin: 0 auto; text-align: center; background: #fff;
    border-radius: 24px; padding: 2.6rem 2rem 2.2rem; box-shadow: 0 24px 60px -24px rgba(10,22,51,.35); overflow: hidden; }
.error-code { position: absolute; top: -.6rem; right: 1rem; font-size: 7rem; font-weight: 800; line-height: 1;
    background: var(--nod-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .14; pointer-events: none; }
.error-card .error-icon { margin: 0 auto 1rem; display: grid; }
.error-card h1 { font-size: 1.7rem; margin-bottom: .5rem; }
.error-msg { color: var(--nod-muted); margin-bottom: .6rem; }
.error-path { font-size: .85rem; color: var(--nod-muted); word-break: break-all; }
.error-links { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(10,22,51,.08); display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; font-size: .92rem; }
.error-links span { color: var(--nod-muted); }
.error-ref { margin: 1.4rem 0 0; font-size: .8rem; color: var(--nod-muted); }
.error-ref code { font-size: .78rem; word-break: break-all; }
@media (max-width: 575.98px) { .error-card { padding: 2rem 1.2rem; border-radius: 18px; } .error-code { font-size: 5rem; } }

/* ===================== Messages de confirmation ===================== */
.nod-toast-zone { z-index: 1090; margin-top: 70px; }
.nod-toast { background: #fff; color: var(--nod-navy); border-left: 4px solid #16a34a !important; box-shadow: 0 12px 30px -12px rgba(10,22,51,.35); }
.nod-toast .bi-check-circle { color: #16a34a; }
.nod-toast.is-error { border-left-color: #dc2626 !important; }
.nod-toast.is-error .bi-exclamation-circle { color: #dc2626; }


/* ===================== Démos vidéo des réalisations ===================== */
button.project-media { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; position: relative; font: inherit; color: inherit; }
button.project-media:focus-visible { outline: 3px solid rgba(31, 107, 255, .55); outline-offset: -3px; }
.demo-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
    background: linear-gradient(180deg, rgba(10, 22, 51, .25), rgba(10, 22, 51, .78));
    color: #fff; opacity: 0; transition: opacity .25s ease;
}
.demo-play {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: var(--nod-gradient); box-shadow: 0 10px 30px -8px rgba(31, 107, 255, .8);
    font-size: 2rem; transform: scale(.85); transition: transform .25s ease;
}
.demo-play .bi { margin-left: 4px; }
.demo-text { font-weight: 600; font-size: 1rem; letter-spacing: .2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.project-media.has-demo:hover .demo-overlay,
.project-media.has-demo:focus-visible .demo-overlay { opacity: 1; }
.project-media.has-demo:hover .demo-play { transform: scale(1); }
/* Écrans tactiles (pas de survol) : le bouton de lecture reste visible */
@media (hover: none) {
    .demo-overlay { opacity: 1; background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 51, .7)); justify-content: flex-end; padding-bottom: .9rem; }
    .demo-play { width: 48px; height: 48px; font-size: 1.5rem; transform: none; }
    .demo-text { font-size: .9rem; }
}
.tag-demo { background: rgba(31, 107, 255, .12); color: var(--nod-primary); }
.demo-modal { background: var(--nod-navy); color: #fff; border: 0; border-radius: 18px; overflow: hidden; }
.demo-modal .modal-header { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.demo-video { display: block; width: 100%; max-height: 78vh; background: #000; }
