/* ============================================================================
   NIPU-EJD — Custom overrides (optimized & consolidated)
   Loaded last (just before </body>) so it wins the cascade over Elementor
   ============================================================================ */

/* ============================================================================
   1. TYPOGRAPHIE GLOBALE
   ============================================================================ */
body {
  font-family: 'Nunito Sans', 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  color: #1b1d21;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.ot-heading .main-heading,
.octf-btn, .menu a, .elementor-button {
  font-family: 'Montserrat', 'Nunito Sans', system-ui, sans-serif !important;
  letter-spacing: -0.01em;
}

h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 38px; line-height: 1.2; font-weight: 800; }
h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 30px; line-height: 1.25; font-weight: 700; }
h3, .elementor-widget-heading h3.elementor-heading-title { font-size: 24px; line-height: 1.3; font-weight: 700; }
h4, .elementor-widget-heading h4.elementor-heading-title { font-size: 20px; line-height: 1.35; font-weight: 700; }
h5, .elementor-widget-heading h5.elementor-heading-title { font-size: 17px; line-height: 1.4; font-weight: 700; }
h6, .elementor-widget-heading h6.elementor-heading-title { font-size: 14px; line-height: 1.4; font-weight: 700; }

p, .elementor-text-editor, .elementor-widget-text-editor { font-size: 15px; line-height: 1.7; }

header .menu a, footer .menu a, header nav a, footer nav a { font-weight: 600; }

/* Texte justifié globalement — exclusions pour header/footer/menu/inputs */
body p, body .elementor-text-editor p, body .elementor-widget-text-editor p,
body .elementor-widget-text-editor div, body .content-box > div,
body .content-box p, body .ot-heading + p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
body header p, body footer p, body nav p, body .text-center p, body .center p,
body p.elementor-button-text, body button p, body a p, body th p, body td p,
body figcaption, body caption, body .widget-image-caption, body label p,
body input, body textarea, body small p, body .elementor-icon-list-text,
body .elementor-button p, body #nipu-top-bar p, body #nipu-top-bar div,
body h1, body h2, body h3, body h4, body h5, body h6, body .elementor-heading-title {
  text-align: inherit;
  hyphens: none;
}

/* ============================================================================
   2. TOP BANNER (project closed + email + LinkedIn)
   ============================================================================ */
#nipu-top-bar {
  background: #000;
  color: rgba(255,255,255,0.85);
  font: 500 13.5px/1.4 inherit;
  letter-spacing: 0.02em;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(0,218,97,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1001;
}
#nipu-top-bar .nipu-msg { flex: 1 1 auto; text-align: center; color: #00da61; }
#nipu-top-bar .nipu-msg strong { color: #00ff70; font-weight: 800; letter-spacing: 0.04em; }
#nipu-top-bar .nipu-msg a { color: #00da61; text-decoration: underline; text-decoration-color: rgba(0,218,97,0.4); text-underline-offset: 3px; }
#nipu-top-bar .nipu-msg a:hover { color: #fff; text-decoration-color: #fff; }
#nipu-top-bar .nipu-contact { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
#nipu-top-bar .nipu-contact > a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13px; transition: color 0.2s; }
#nipu-top-bar .nipu-contact > a:hover { color: #00da61; }
#nipu-top-bar .nipu-linkedin {
  background: #00da61; color: #002400 !important;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 italic 11px/1 Arial, sans-serif;
}
#nipu-top-bar .nipu-linkedin:hover { background: #00ff70; }

@media (max-width: 768px) {
  #nipu-top-bar { flex-direction: column; gap: 8px; font-size: 12px; padding: 8px 12px; }
}

/* Cacher l'ancien top-bar gris du thème + doublon banner */
.elementor-widget-text-editor p:where(:only-child)[class*="closed"],
.nipu-old-closed-banner,
.engitech-top-bar, .engitech-header-top,
header.site-header .header-desktop > .elementor > .elementor-inner > .elementor-section-wrap > section.elementor-top-section:first-of-type {
  display: none !important;
}

/* ============================================================================
   3. HEADER COMPACT
   ============================================================================ */
header.site-header,
header.site-header .header-desktop { padding: 0; }

header.site-header section.elementor-top-section { padding: 14px 0; min-height: 0; }

header .elementor-row, header .elementor-container,
header .elementor-column, header .elementor-column-wrap,
header .elementor-element-populated, header .elementor-widget-wrap { min-height: 0; }

header .elementor-row { align-items: center; }
header .elementor-column-wrap, header .elementor-widget-wrap {
  align-content: center;
  align-items: center;
}

header .elementor-widget, header .elementor-element { margin: 0; }
header .elementor-widget > .elementor-widget-container { padding: 0; }

header .elementor-widget-NavMenu .elementor-widget-container,
header .elementor-widget-wp-widget-nav_menu .elementor-widget-container { padding: 0 !important; }

header .elementor-widget-spacer { display: none !important; }

header .elementor-widget-wrap {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  align-content: center !important;
}

header .elementor-row > .elementor-column:last-child .elementor-widget-wrap {
  justify-content: flex-end !important;
}

/* Logo : préserver le ratio natif */
header img[src*="logo"],
header .the-logo img,
header .elementor-widget-image img {
  height: auto !important;
  max-height: none;
  width: 142px;
  object-fit: contain;
}

/* Menu compact */
header .elementor-nav-menu > li > a,
header nav .menu > li > a,
header .main-navigation > ul > li > a {
  padding: 8px 8px !important;
  font-size: 13px !important;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0;
}

/* Proportions colonnes du header (logo / menu / contact) */
@media (min-width: 768px) {
  header .elementor-2843 .elementor-element.elementor-element-1b4b73b { width: 16% !important; }
  header .elementor-2843 .elementor-element.elementor-element-b81bc3d { width: 72% !important; }
  header .elementor-2843 .elementor-element.elementor-element-9354e93 { width: 12% !important; }
}

@media (max-width: 1280px) {
  header .elementor-nav-menu > li > a,
  header nav .menu > li > a,
  header .main-navigation > ul > li > a {
    padding: 8px 5px !important;
    font-size: 12px !important;
  }
  header .octf-btn { padding: 9px 16px !important; font-size: 12px !important; }
}

/* CTA Contact */
header .octf-btn,
header a.octf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  background: #00da61;
  color: #002400;
  border: none;
  line-height: 1;
  margin: 0;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0,218,97,0.3);
  vertical-align: middle;
}
header .octf-btn:hover,
header a.octf-btn-primary:hover {
  background: #00ff70;
  color: #002400;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,218,97,0.5);
}

header .elementor-widget-button {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}
header .elementor-widget-button .elementor-button-wrapper,
header .elementor-widget-button .ot-button { display: flex; align-items: center; }

/* ============================================================================
   4. SECTIONS GRISES → NOIR PUR
   ============================================================================ */
[style*="background-color:#1D1D1B"], [style*="background-color: #1D1D1B"],
[style*="background-color:#1d1d1b"], [style*="background-color: #1d1d1b"],
[style*="background-color:#1b1d21"], [style*="background-color: #1b1d21"] {
  background-color: #000 !important;
}
[style*="background:#1D1D1B"], [style*="background: #1D1D1B"],
[style*="background:#1d1d1b"], [style*="background: #1d1d1b"],
[style*="background:#1b1d21"], [style*="background: #1b1d21"] {
  background: #000 !important;
}
.elementor-3767 .elementor-element-d244d23,
.elementor-3767 .elementor-element-d244d23 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-3767 .elementor-element-104a608,
.elementor-3767 .elementor-element-104a608 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: #000 !important;
}

/* ============================================================================
   5. ESPACEMENT — HOME
   ============================================================================ */
body.home #content section.elementor-section.elementor-top-section,
body.page-id-3767 main section.elementor-section.elementor-top-section,
body.home main section.elementor-section.elementor-top-section,
body.home #primary section.elementor-section.elementor-top-section { padding: 70px 0; margin: 0; }

body.home #content section.elementor-section.elementor-top-section:first-of-type,
body.home main section.elementor-section.elementor-top-section:first-of-type,
body.page-id-3767 main section.elementor-section.elementor-top-section:first-of-type { padding: 0; }

/* Logos défilants — padding réduit */
body.home #content section.elementor-section.elementor-top-section:has(.elementor-image-carousel-wrapper),
body.home #content section.elementor-section.elementor-top-section:has(.swiper-container),
body.home #content section.elementor-section.elementor-top-section:has(.elementor-image-carousel),
body.home #content section.elementor-element-5df2e54 { padding: 12px 0 24px !important; }

/* Section "Academic Beneficiaries" header (juste un titre) */
body.home #content section.elementor-element-473b875,
body.home #content section[class*="elementor-element-473b875"] { padding: 20px 0 0 !important; min-height: 0 !important; }

@media (max-width: 767px) {
  body.home main section.elementor-section.elementor-top-section,
  body.home #content section.elementor-section.elementor-top-section { padding: 45px 0; }
}

/* ============================================================================
   6. ESPACEMENT — PAGES INTERNES
   ============================================================================ */
#content section.elementor-top-section:empty,
#content section.elementor-top-section:not(:has(.elementor-widget)),
#content section.elementor-top-section > .elementor-container > .elementor-row:not(:has(.elementor-widget)) {
  display: none !important;
}

body:not(.home) #content section.elementor-top-section.elementor-section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

body:not(.home) #content section.elementor-top-section:first-of-type {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body:not(.home) #content .elementor-widget-spacer .elementor-spacer-inner {
  height: 30px !important;
  max-height: 30px !important;
}

/* Centrer les titres principaux des pages internes */
body:not(.home) #content .ot-heading,
body:not(.home) #content .ot-heading .main-heading,
body:not(.home) #content .ot-heading > span,
body:not(.home) #content .elementor-widget-iheading {
  text-align: center !important;
  display: block !important;
  width: 100%;
}

/* ============================================================================
   7. SECTION WORK PACKAGES (HOME) — éliminer espace vide sous DISCOVER MORE
   ============================================================================ */
.elementor-3767 .elementor-element-fd28319 { padding: 40px 0 30px !important; }
.elementor-3767 .elementor-element-fd28319 .elementor-row { align-items: stretch !important; }

.elementor-3767 .elementor-element-fd28319 .elementor-element-c52e772 > .elementor-column-wrap,
.elementor-3767 .elementor-element-fd28319 .elementor-element-c52e772 > .elementor-column-wrap > .elementor-widget-wrap {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  height: 100% !important;
}

.elementor-3767 .elementor-element-fd28319 .elementor-element-1dc99fa img {
  max-height: 140px !important;
  width: auto !important;
  margin: 0 auto !important;
  object-fit: cover !important;
}
.elementor-3767 .elementor-element-fd28319 .elementor-element-1dc99fa .elementor-inner-section { padding: 0 !important; margin: 0 !important; }
.elementor-3767 .elementor-element-fd28319 .elementor-element-1dc99fa .elementor-inner-section + .elementor-inner-section { margin-top: 8px !important; }
.elementor-3767 .elementor-element-fd28319 .elementor-element-1dc99fa .widget-image-caption {
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin-top: 4px !important;
  padding: 0 4px !important;
}
.elementor-3767 .elementor-element-fd28319 .elementor-element-1dc99fa .elementor-widget-container { padding: 2px !important; }

/* Bouton DISCOVER MORE — modernisé */
body.home #content section.elementor-element-fd28319 .elementor-button-link,
body.home #content a.elementor-button[href*="consortium"],
body.home #content a.elementor-button {
  background: #00da61 !important;
  color: #002400 !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0,218,97,0.3);
  transition: all 0.2s ease !important;
}
body.home #content a.elementor-button:hover {
  background: #00ff70 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,218,97,0.5);
}

/* ============================================================================
   8. 4 BLOCS TRAINING (T01-T04)
   ============================================================================ */
section.elementor-top-section:has(.serv-box-2) { padding: 70px 0 !important; background: #000 !important; }
section.elementor-inner-section:has(.serv-box-2) { padding: 6px 0 !important; margin: 0 !important; }
section.elementor-section:has(.serv-box-2) .ot-heading > span,
section.elementor-section:has(.serv-box-2) .ot-heading .main-heading { color: #fff !important; }

section.elementor-section:has(.serv-box-2) .elementor-row { align-items: stretch !important; }
section.elementor-section:has(.serv-box-2) .elementor-column .elementor-element-populated,
section.elementor-section:has(.serv-box-2) .elementor-widget-ot_service_box_two,
section.elementor-section:has(.serv-box-2) .elementor-widget-ot_service_box_two > .elementor-widget-container { height: 100% !important; }

section.elementor-section:has(.serv-box-2) .elementor-column.elementor-col-50 > .elementor-element-populated {
  margin: 0 !important;
  padding: 6px !important;
}

section.elementor-section:has(.serv-box-2) .elementor-widget-spacer,
section.elementor-section:has(.serv-box-2) .elementor-widget-spacer .elementor-widget-container,
section.elementor-section:has(.serv-box-2) .elementor-widget-spacer .elementor-spacer,
section.elementor-section:has(.serv-box-2) .elementor-widget-spacer .elementor-spacer-inner {
  height: 0 !important; min-height: 0 !important; max-height: 0 !important;
  padding: 0 !important; margin: 0 !important;
}

.elementor .serv-box-2,
.elementor-element .serv-box-2,
body .serv-box-2 {
  background: #0e0e0e !important;
  border: 1px solid rgba(0,218,97,0.12) !important;
  border-radius: 14px !important;
  padding: 22px 22px 20px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.35s cubic-bezier(.4,0,.2,1) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  height: 100% !important;
  min-height: 320px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.elementor .serv-box-2:hover,
.elementor-element .serv-box-2:hover,
body .serv-box-2:hover {
  background: #161616 !important;
  border-color: rgba(0,218,97,0.4) !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0,218,97,0.35) !important;
}

body .serv-box-2 .content-box,
.elementor .serv-box-2 .content-box { color: #fff !important; }
body .serv-box-2 .content-box > div,
body .serv-box-2 .content-box p,
.elementor .serv-box-2 .content-box > div,
.elementor .serv-box-2 .content-box p { color: rgba(255,255,255,0.85) !important; }

body .serv-box-2:hover .content-box,
body .serv-box-2:hover .content-box > div,
body .serv-box-2:hover .content-box p { color: rgba(255,255,255,0.9) !important; }
body .serv-box-2:hover .content-box h5 { color: #00ff70 !important; }

.serv-box-2::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00da61, #00ff70);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.serv-box-2:hover::before { transform: scaleX(1); }

.serv-box-2 .big-number { display: none; }

.serv-box-2 .icon-main {
  width: 48px; height: 48px; min-height: 48px;
  background: linear-gradient(135deg, #00da61, #00b050);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  margin: 0 0 4px;
  box-shadow: 0 6px 16px rgba(0,218,97,0.35);
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.serv-box-2:hover .icon-main {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 10px 24px rgba(0,218,97,0.45);
}
.serv-box-2 .icon-main span,
.serv-box-2 .icon-main i { color: #fff; font-size: 22px; }

.serv-box-2 .content-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  margin: 0;
  padding: 0;
}
.serv-box-2 .content-box h5 {
  font-size: 19px;
  font-weight: 800;
  color: #00da61;
  margin: 0 0 4px;
  padding: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}
.serv-box-2 .content-box > div,
.serv-box-2 .content-box p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0;
  padding: 0;
}

/* ============================================================================
   9. FOOTER (fond blanc)
   ============================================================================ */
footer.site-footer,
footer.engitech-footer,
.elementor-location-footer,
footer .elementor-section { background: #fff !important; color: #1b1d21; }

footer .elementor-top-section {
  padding: 36px 0 18px !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  border-bottom: none !important;
}

footer .elementor-inner-section,
footer .elementor-section.elementor-inner-section {
  padding: 8px 0 !important;
  margin: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
}

footer hr,
footer .elementor-divider,
footer .elementor-widget-divider { display: none !important; }

footer .elementor-col-25 .elementor-element-populated,
footer .elementor-column .elementor-element-populated { padding: 0 16px !important; }

footer .ilogo img,
footer img[src*="logo_nipu"],
footer img[src*="Proposition"] {
  filter: none !important;
  max-height: 90px !important;
  width: auto !important;
  margin-bottom: 14px;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
footer .elementor-heading-title {
  color: #002400 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #00da61 !important;
  display: inline-block !important;
}

footer p,
footer .elementor-text-editor,
footer .elementor-widget-text-editor p {
  color: #555b63 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

footer a {
  color: #1b1d21 !important;
  font-size: 14px !important;
  transition: all 0.2s !important;
  display: inline-block;
}
footer a:hover { color: #00b050 !important; transform: translateX(3px); }

footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
footer ul li { padding: 5px 0 !important; list-style: none !important; }

footer .elementor-social-icons-wrapper { display: flex; gap: 8px; margin-top: 12px; }
footer .elementor-social-icon {
  width: 36px !important; height: 36px !important;
  background: rgba(0,218,97,0.12) !important;
  border-radius: 50% !important;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s !important;
}
footer .elementor-social-icon:hover { background: #00da61 !important; transform: translateY(-3px); }
footer .elementor-social-icon i,
footer .elementor-social-icon svg { color: #00b050 !important; fill: #00b050 !important; font-size: 14px !important; }
footer .elementor-social-icon:hover i,
footer .elementor-social-icon:hover svg { color: #002400 !important; fill: #002400 !important; }

/* Drapeau européen — bien visible */
footer img[src*="eu_logo"],
footer img[alt*="EU" i],
footer img[alt*="Europe" i],
footer img[src*="eu_"],
footer img[src*="europe"] {
  background: transparent;
  padding: 0 !important;
  border-radius: 0 !important;
  max-height: 130px !important;
  width: auto !important;
  display: block !important;
  filter: none !important;
  opacity: 1 !important;
}

footer .copyright,
footer .site-info,
footer p:has(.js-current-year) {
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  padding-top: 20px !important;
  margin-top: 24px !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #6c757d !important;
}

/* ============================================================================
   10. PAGE ESR (/esrs.html) — fiches chercheurs en cards
   ============================================================================ */
body:not(.home) #content section.elementor-element-51a7afa7,
body:not(.home) #content section.elementor-element-51a7afa7.elementor-section { padding: 60px 0 40px !important; text-align: center !important; }

body:not(.home) #content section.elementor-inner-section[class*="elementor-element-"] {
  padding: 30px 24px !important;
  margin: 0 auto 20px !important;
  max-width: 1100px;
  border-radius: 14px;
  background: #fafbfc;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}
body:not(.home) #content section.elementor-inner-section[class*="elementor-element-"]:hover {
  border-color: rgba(0,218,97,0.25);
  box-shadow: 0 6px 24px rgba(0,218,97,0.1);
  transform: translateY(-2px);
}

body:not(.home) #content section.elementor-inner-section .elementor-row {
  align-items: center !important;
  gap: 24px;
}

body:not(.home) #content section.elementor-inner-section .elementor-widget-image img {
  max-width: 220px;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  margin: 0 auto;
  background: #fff;
  padding: 8px;
}
body:not(.home) #content section.elementor-inner-section img[src*="researcher"],
body:not(.home) #content section.elementor-inner-section img[data-src*="researcher"] {
  width: 220px !important;
  height: 220px !important;
  object-fit: cover;
  padding: 0;
  background: transparent;
}
body:not(.home) #content section.elementor-inner-section img:hover { transform: scale(1.04); }

body:not(.home) #content section.elementor-inner-section h1,
body:not(.home) #content section.elementor-inner-section h2,
body:not(.home) #content section.elementor-inner-section h3,
body:not(.home) #content section.elementor-inner-section h4,
body:not(.home) #content section.elementor-inner-section .elementor-heading-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #002400 !important;
  margin: 0 0 12px !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: none !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

body:not(.home) #content section.elementor-inner-section .elementor-text-editor,
body:not(.home) #content section.elementor-inner-section .elementor-widget-text-editor p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #555b63 !important;
  text-align: justify !important;
  margin-bottom: 10px !important;
}

body:not(.home) #content section.elementor-inner-section .elementor-text-editor p strong,
body:not(.home) #content section.elementor-inner-section .elementor-widget-text-editor p strong { color: #002400; font-weight: 700; }

body:not(.home) #content section.elementor-inner-section .elementor-column.elementor-col-25,
body:not(.home) #content section.elementor-inner-section .elementor-column.elementor-col-33 { text-align: center; }

body:not(.home) #content section.elementor-inner-section:last-of-type { margin-bottom: 60px !important; }

/* LinkedIn link sur ESR : moderne avec icône SVG inline */
body.page-id-5531 #content section.elementor-inner-section a[href*="linkedin"]:not(:has(img)) {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  background: transparent !important;
  color: #0077b5 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  position: relative;
  margin-top: 6px !important;
  font-size: 13px !important;
}
body.page-id-5531 #content section.elementor-inner-section a[href*="linkedin"]:not(:has(img))::before {
  content: '';
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}
body.page-id-5531 #content section.elementor-inner-section a[href*="linkedin"]:hover:not(:has(img)) { color: #00b050 !important; }

/* ============================================================================
   11. PAGE RESEARCH (/research.html) — 12 projets ESR
   ============================================================================ */
body.page-id-4158 #content section.elementor-inner-section .elementor-row { align-items: center !important; }

body.page-id-4158 #content section.elementor-inner-section img {
  max-width: 100%;
  max-height: 300px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

body.page-id-4158 #content .elementor-text-editor h4,
body.page-id-4158 #content .elementor-widget-text-editor h4,
body.page-id-4158 #content section.elementor-inner-section h1,
body.page-id-4158 #content section.elementor-inner-section h2,
body.page-id-4158 #content section.elementor-inner-section h3,
body.page-id-4158 #content section.elementor-inner-section h4,
body.page-id-4158 #content section.elementor-inner-section h5,
body.page-id-4158 #content section.elementor-inner-section .elementor-heading-title,
body.page-id-4158 #content section.elementor-inner-section .ot-heading .main-heading,
body.page-id-4158 #content section.elementor-inner-section .ot-heading > span {
  color: #00b050 !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 16px !important;
  display: inline-block !important;
  border: none !important;
  border-bottom: 3px solid #00da61 !important;
  padding: 0 0 6px 0 !important;
  text-align: left !important;
  text-transform: none !important;
  line-height: 1.2 !important;
}

body.page-id-4158 #content .elementor-text-editor h4 + p,
body.page-id-4158 #content .elementor-widget-text-editor h4 ~ p,
body.page-id-4158 #content section.elementor-inner-section .elementor-text-editor p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #2c3a4b !important;
  text-align: justify !important;
  margin-top: 0 !important;
}

body.page-id-4158 #content section.elementor-inner-section .widget-image-caption {
  font-size: 11px !important;
  color: #adb5bd !important;
  font-style: italic;
  margin-top: 6px !important;
  text-align: center !important;
}

/* ============================================================================
   12. PAGE PUBLICATIONS (/publications.html) — tables + cards chercheurs
   ============================================================================ */
/* Photo chercheur (lien LinkedIn cliquable) avec badge LinkedIn */
body.page-id-6320 #content section.elementor-inner-section a[href*="linkedin"] {
  display: inline-block !important;
  position: relative;
  width: 90px;
  height: 90px;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 50%;
}
body.page-id-6320 #content section.elementor-inner-section a[href*="linkedin"] img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #00da61 !important;
  box-shadow: 0 4px 14px rgba(0,218,97,0.2) !important;
  display: block !important;
  margin: 0 !important;
  transition: all 0.25s ease;
}
body.page-id-6320 #content section.elementor-inner-section a[href*="linkedin"]:hover img {
  border-color: #0077b5 !important;
  box-shadow: 0 8px 22px rgba(0,119,181,0.4) !important;
  transform: scale(1.04);
}
body.page-id-6320 #content section.elementor-inner-section a[href*="linkedin"]::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: #0077b5;
  border-radius: 50%;
  border: 3px solid #fff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
  pointer-events: none;
}
body.page-id-6320 #content section.elementor-inner-section a[href*="linkedin"]:hover::after { transform: scale(1.15); }

/* Card ESR : layout centré */
body.page-id-6320 #content section.elementor-inner-section .elementor-widget-image,
body.page-id-6320 #content section.elementor-inner-section .elementor-widget-image .elementor-image {
  text-align: center !important;
  display: flex;
  justify-content: center;
}

body.page-id-6320 #content section.elementor-inner-section[class*="elementor-element-"]:has(a[href*="linkedin"]) {
  max-width: 100% !important;
  margin: 0 0 0 0 !important;
  padding: 24px !important;
  text-align: center !important;
}

body.page-id-6320 #content section.elementor-inner-section .elementor-row {
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column !important;
  gap: 0 !important;
}
body.page-id-6320 #content section.elementor-inner-section .elementor-column { text-align: center !important; width: 100% !important; }

/* Bloc nom du chercheur (injecté par JS) */
body.page-id-6320 #content .nipu-esr-name {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 12px auto 0 !important;
  padding: 0 !important;
  width: 100% !important;
  flex-basis: 100% !important;
  grid-column: 1 / -1;
}
body.page-id-6320 #content .nipu-esr-name .nipu-esr-num {
  display: inline-block;
  background: #00da61;
  color: #002400;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
body.page-id-6320 #content .nipu-esr-name h3,
body.page-id-6320 #content section .nipu-esr-name h3,
body.page-id-6320 #content section.elementor-inner-section .nipu-esr-name h3,
body.page-id-6320 #content .elementor-widget-wrap .nipu-esr-name h3 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #002400 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  text-align: center !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
  display: block !important;
  width: 100% !important;
}

/* Tables modernes */
body.page-id-6320 #content table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff !important;
  margin: 16px 0 24px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
}
body.page-id-6320 #content table tr:first-child td {
  background: #002400 !important;
  color: #00ff70 !important;
  padding: 14px 18px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-align: left !important;
  border: none !important;
}
body.page-id-6320 #content table tr:first-child td strong { color: #00ff70 !important; font-weight: 800 !important; }
body.page-id-6320 #content table tr:not(:first-child) td {
  padding: 14px 18px !important;
  border-top: 1px solid #e8eaf0 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  vertical-align: top !important;
  color: #2c3a4b !important;
  background: #fff !important;
}
body.page-id-6320 #content table tr:not(:first-child):hover td { background: #f0fdf4 !important; }
body.page-id-6320 #content table tr:not(:first-child) td:first-child { font-weight: 600 !important; color: #1a1538 !important; }
body.page-id-6320 #content table a {
  color: #0079c4 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 2px 8px;
  background: rgba(0,121,196,0.08);
  border-radius: 4px;
  font-size: 11px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  margin: 2px 4px 2px 0;
  transition: all 0.2s ease !important;
}
body.page-id-6320 #content table a:hover { color: #fff !important; background: #00b050 !important; }

/* En-tête page Publications */
body.page-id-6320 #content section.elementor-top-section:nth-of-type(2) h1,
body.page-id-6320 #content section.elementor-top-section:nth-of-type(2) h2,
body.page-id-6320 #content section.elementor-top-section:nth-of-type(2) .elementor-heading-title,
body.page-id-6320 #content .ot-heading .main-heading,
body.page-id-6320 #content .ot-heading > span,
body.page-id-6320 #content section:not(.elementor-inner-section) h1.elementor-heading-title,
body.page-id-6320 #content section:not(.elementor-inner-section) h2.elementor-heading-title {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  text-align: center !important;
  letter-spacing: 0 !important;
}
body.page-id-6320 #content > .elementor section.elementor-top-section:nth-of-type(1) + section .elementor-text-editor,
body.page-id-6320 #content > .elementor section.elementor-top-section:nth-of-type(1) + section .elementor-text-editor p,
body.page-id-6320 #content section.elementor-top-section:not(:has(table)) .elementor-text-editor p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #555b63 !important;
  text-align: center !important;
  max-width: 800px;
  margin: 0 auto !important;
}

/* ============================================================================
   13. PAGE PAST EVENTS (/events.html) — cartes événements
   ============================================================================ */
body.page-id-5899 #content section.elementor-inner-section[class*="elementor-element-"],
body.page-id-5899 #content section.elementor-top-section.elementor-element-b5c61af {
  padding: 20px 28px !important;
  margin: 0 auto 6px !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
  transition: all 0.25s ease;
  max-width: 1100px !important;
}
body.page-id-5899 #content section.elementor-inner-section[class*="elementor-element-"]:hover,
body.page-id-5899 #content section.elementor-top-section.elementor-element-b5c61af:hover {
  border-color: rgba(0,218,97,0.25) !important;
  box-shadow: 0 6px 24px rgba(0,218,97,0.1) !important;
  transform: translateY(-2px);
}

body.page-id-5899 #content section.elementor-top-section { padding: 12px 0 !important; }
body.page-id-5899 #content > .elementor section.elementor-top-section:first-of-type { padding: 30px 0 20px !important; }
body.page-id-5899 #content section.elementor-inner-section + section.elementor-inner-section { margin-top: 0 !important; }

body.page-id-5899 #content section.elementor-inner-section .elementor-row,
body.page-id-5899 #content section.elementor-element-b5c61af .elementor-row {
  align-items: center !important;
  gap: 20px;
}

body.page-id-5899 #content section.elementor-inner-section img,
body.page-id-5899 #content section.elementor-element-b5c61af img {
  width: 100% !important;
  max-width: 320px !important;
  height: 240px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
  transition: transform 0.3s ease;
}
body.page-id-5899 #content section.elementor-inner-section:hover img,
body.page-id-5899 #content section.elementor-element-b5c61af:hover img { transform: scale(1.03); }

body.page-id-5899 #content section.elementor-inner-section .elementor-heading-title,
body.page-id-5899 #content section.elementor-inner-section h1,
body.page-id-5899 #content section.elementor-inner-section h2,
body.page-id-5899 #content section.elementor-inner-section h3,
body.page-id-5899 #content section.elementor-inner-section h4,
body.page-id-5899 #content section.elementor-element-b5c61af h2.elementor-heading-title {
  font-size: 20px !important;
  color: #002400 !important;
  margin-bottom: 12px !important;
  text-align: left !important;
  border: none !important;
  display: block !important;
  padding: 0 !important;
}

body.page-id-5899 #content section.elementor-inner-section .elementor-text-editor p,
body.page-id-5899 #content section.elementor-element-b5c61af .elementor-text-editor {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #555b63 !important;
  margin-bottom: 12px !important;
  text-align: justify !important;
}

/* Bouton "More information" — moderne */
body.page-id-5899 #content section.elementor-inner-section a.elementor-button-link,
body.page-id-5899 #content section.elementor-inner-section .elementor-button-link {
  background: #00da61 !important;
  color: #002400 !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 10px rgba(0,218,97,0.25);
}
body.page-id-5899 #content section.elementor-inner-section a.elementor-button-link:hover {
  background: #00ff70 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,218,97,0.35);
}
body.page-id-5899 #content section.elementor-inner-section a.elementor-button-link::after {
  content: '→';
  font-weight: 800;
  transition: transform 0.2s ease;
}
body.page-id-5899 #content section.elementor-inner-section a.elementor-button-link:hover::after { transform: translateX(3px); }

/* ============================================================================
   14. PAGES ÉVÉNEMENTS DÉTAILLÉS (sub-pages de Past Events)
   ============================================================================ */
body.page-id-5585 #content section.elementor-top-section,
body.page-id-5993 #content section.elementor-top-section,
body.page-id-6035 #content section.elementor-top-section,
body.page-id-5958 #content section.elementor-top-section,
body.page-id-5928 #content section.elementor-top-section { padding: 30px 0 !important; }

body.page-id-5585 #content section.elementor-top-section:first-of-type,
body.page-id-5993 #content section.elementor-top-section:first-of-type,
body.page-id-6035 #content section.elementor-top-section:first-of-type,
body.page-id-5958 #content section.elementor-top-section:first-of-type,
body.page-id-5928 #content section.elementor-top-section:first-of-type { padding: 0 !important; }

body.page-id-5585 #content h1.elementor-heading-title,
body.page-id-5993 #content h1.elementor-heading-title,
body.page-id-6035 #content h1.elementor-heading-title,
body.page-id-5958 #content h1.elementor-heading-title,
body.page-id-5928 #content h1.elementor-heading-title {
  font-size: 32px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #00b050 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  margin: 24px auto 16px !important;
  max-width: 900px;
}

body.page-id-5585 #content h2.elementor-heading-title,
body.page-id-5993 #content h2.elementor-heading-title,
body.page-id-6035 #content h2.elementor-heading-title,
body.page-id-5958 #content h2.elementor-heading-title,
body.page-id-5928 #content h2.elementor-heading-title,
body.page-id-5585 #content h3.elementor-heading-title,
body.page-id-5993 #content h3.elementor-heading-title,
body.page-id-6035 #content h3.elementor-heading-title,
body.page-id-5958 #content h3.elementor-heading-title,
body.page-id-5928 #content h3.elementor-heading-title {
  color: #002400 !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #00da61;
  display: inline-block;
  padding-bottom: 6px !important;
  margin: 24px 0 12px !important;
}

body.page-id-5585 #content section.elementor-top-section img,
body.page-id-5993 #content section.elementor-top-section img,
body.page-id-6035 #content section.elementor-top-section img,
body.page-id-5958 #content section.elementor-top-section img,
body.page-id-5928 #content section.elementor-top-section img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-width: 100%;
  height: auto;
}

body.page-id-5585 #content .elementor-text-editor p,
body.page-id-5993 #content .elementor-text-editor p,
body.page-id-6035 #content .elementor-text-editor p,
body.page-id-5958 #content .elementor-text-editor p,
body.page-id-5928 #content .elementor-text-editor p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #2c3a4b !important;
  text-align: left !important;
  margin-bottom: 8px !important;
}

body.page-id-5585 #content .elementor-text-editor p strong,
body.page-id-5993 #content .elementor-text-editor p strong,
body.page-id-6035 #content .elementor-text-editor p strong,
body.page-id-5958 #content .elementor-text-editor p strong,
body.page-id-5928 #content .elementor-text-editor p strong { color: #00b050 !important; font-weight: 700 !important; }

/* ============================================================================
   15. PAGE NEWS (/news.html)
   ============================================================================ */
body.page-id-4615 #content section.elementor-inner-section[class*="elementor-element-"] {
  padding: 24px !important;
  margin-bottom: 16px !important;
}
body.page-id-4615 #content section.elementor-inner-section .elementor-row { align-items: center !important; }

body.page-id-4615 #content section.elementor-inner-section img {
  width: 180px !important;
  max-width: 180px !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
  border: 3px solid #fff !important;
  outline: 1px solid rgba(0,0,0,0.06) !important;
  transition: transform 0.3s ease;
}
body.page-id-4615 #content section.elementor-inner-section:hover img { transform: scale(1.04); }

body.page-id-4615 #content > .elementor > .elementor-inner > .elementor-section-wrap > section.elementor-top-section > .elementor-container .elementor-heading-title {
  text-align: center;
  font-size: 28px !important;
  color: #002400 !important;
  margin: 30px 0 20px !important;
}

body.page-id-4615 #content section.elementor-inner-section .elementor-text-editor p,
body.page-id-4615 #content section.elementor-inner-section .elementor-widget-text-editor p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #2c3a4b !important;
  text-align: justify !important;
}

body.page-id-4615 #content a[href*="spotify"],
body.page-id-4615 #content a[href*="linkedin"] { color: #0079c4 !important; font-weight: 600; }
body.page-id-4615 #content a[href*="spotify"]:hover,
body.page-id-4615 #content a[href*="linkedin"]:hover { color: #00b050 !important; }

/* ============================================================================
   16. PAGE CONSORTIUM (/consortium.html)
   ============================================================================ */
body:not(.home) #content section.elementor-element-7bbdb42 {
  padding-top: 0 !important;
  padding-bottom: 60px !important;
}
body:not(.home) #content section.elementor-element-7bbdb42 > .elementor-container { padding-top: 50px !important; }

body:not(.home) #content section.elementor-element-3194b30 {
  padding: 80px 0 20px !important;
  min-height: 0 !important;
}

/* Sections vides masquées */
body:not(.home) #content section.elementor-element-3647cd5,
body:not(.home) #content section.elementor-element-c1d026c { display: none !important; }

/* Filtres portfolio (All/Academic/Industrial/Innovation) */
body:not(.home) #content ul.project_filters,
body:not(.home) #content ul.filter,
body:not(.home) #content .portfolio-filter ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 10px;
  margin: 20px 0 30px !important;
  padding: 0 !important;
  list-style: none !important;
}
body:not(.home) #content ul.project_filters li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body:not(.home) #content ul.project_filters li a {
  display: inline-block;
  padding: 8px 18px !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555b63 !important;
  background: #f6f7fb;
  border: 2px solid transparent;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}
body:not(.home) #content ul.project_filters li a:hover {
  background: rgba(0,218,97,0.1);
  color: #00b050 !important;
  border-color: rgba(0,218,97,0.2);
}
body:not(.home) #content ul.project_filters li a.selected,
body:not(.home) #content ul.project_filters li a.active {
  background: #00da61 !important;
  color: #002400 !important;
  border-color: #00da61 !important;
  box-shadow: 0 4px 12px rgba(0,218,97,0.3);
}

/* Hover sur logos partenaires : taille de texte raisonnable */
.elementor-portfolio-item__title,
.portfolio-item__title,
.eltdf-pl-item-title,
.engitech-portfolio-title,
.portfolio-overlay h3, .portfolio-overlay h4, .portfolio-overlay span,
.elementor-portfolio__filter,
.engitech-portfolio-overlay-text,
[class*="portfolio"] .info,
[class*="portfolio"] .info h3,
[class*="portfolio"] .info h4,
[class*="portfolio"] .info span,
[class*="portfolio"] .overlay h3,
[class*="portfolio"] .overlay h4,
[class*="portfolio"] .item-title,
[class*="portfolio"] .item-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  padding: 6px !important;
}
.elementor-portfolio-item .elementor-portfolio-item__overlay h2,
.elementor-portfolio-item .elementor-portfolio-item__overlay h3,
.elementor-portfolio-item .elementor-portfolio-item__overlay h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 8px !important;
}

/* ============================================================================
   17. PAGE CONTACT (/contact.html)
   ============================================================================ */
body.page-id-1370 #content .elementor-heading-title { text-align: center !important; }

body.page-id-1370 #content ul.elementor-icon-list-items li,
body.page-id-1370 #content .elementor-icon-list-item { padding: 12px 0 !important; }
body.page-id-1370 #content .elementor-icon-list-text { font-size: 15px !important; line-height: 1.5 !important; }

body.page-id-1370 #content input[type="text"],
body.page-id-1370 #content input[type="email"],
body.page-id-1370 #content input[type="tel"],
body.page-id-1370 #content textarea,

 {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  color: #1a1538 !important;
  width: 100% !important;
  margin-bottom: 14px !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
}
body.page-id-1370 #content input::placeholder,
body.page-id-1370 #content textarea::placeholder { color: #6c757d !important; }
body.page-id-1370 #content input:focus,
body.page-id-1370 #content textarea:focus {
  outline: none !important;
  border-color: #00da61 !important;
  box-shadow: 0 0 0 3px rgba(0,218,97,0.2) !important;
  background: #fff !important;
}
body.page-id-1370 #content textarea { min-height: 120px !important; resize: vertical !important; }

body.page-id-1370 #content button[type="submit"],
body.page-id-1370 #content input[type="submit"] {
  background: #002400 !important;
  color: #00ff70 !important;
  border: 2px solid #00ff70 !important;
  padding: 14px 32px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(0,218,97,0.25);
}
body.page-id-1370 #content button[type="submit"]:hover,
body.page-id-1370 #content input[type="submit"]:hover {
  background: #00ff70 !important;
  color: #002400 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,218,97,0.45);
}

/* ============================================================================
   18. PRELOADER OFF (sécurité)
   ============================================================================ */
#royal_preloader,
.royal_preloader_outer,
.royal_preloader_inner { display: none !important; }
body { opacity: 1 !important; visibility: visible !important; }

/* ============================================================================
   EVENTS — tighten vertical spacing between event blocks
   ============================================================================ */
body.page-id-5899 #content section.elementor-section.elementor-top-section {
  padding: 24px 0 !important;
}
body.page-id-5899 #content .elementor-widget-spacer .elementor-spacer-inner {
  height: 16px !important;
}
body.page-id-5899 #content section.elementor-inner-section {
  padding: 0 !important;
}

/* ============================================================================
   PUBLICATIONS — section title + intro paragraph (was wrongly styled as h1/h2)
   ============================================================================ */
/* Page section title — uniform across all internal pages
   Reference visual: "Conferences, Workshops and Schools" on events.html */
body:not(.home) #content section.elementor-top-section .elementor-widget-heading > .elementor-widget-container h2.elementor-heading-title,
body:not(.home) #content section.elementor-top-section .elementor-widget-text-editor h1,
body:not(.home) #content section.elementor-top-section .elementor-widget-text-editor h2,
body:not(.home) #content section.elementor-top-section .ot-heading .main-heading {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #002400 !important;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}
body.page-id-6320 #content h2 small {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  margin-left: 6px;
  letter-spacing: 0;
}
body.page-id-6320 #content .publications-intro {
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
  color: #4a4a4a !important;
  max-width: 860px;
  margin: 0 auto 12px !important;
  text-align: center !important;
}
/* Title section: keep breathing room ABOVE title, none below */
body.page-id-6320 #content section.elementor-element-544e052 {
  padding-top: 30px !important;
  padding-bottom: 0 !important;
}
/* Spacer ABOVE title — restore some height for whitespace */
body.page-id-6320 #content .elementor-element-5cdaf7d .elementor-spacer-inner {
  height: 12px !important;
}
/* Spacer BELOW title — collapse */
body.page-id-6320 #content .elementor-element-eec7478 .elementor-spacer-inner {
  height: 0 !important;
}
/* Empty section between title and intro — hidden */
body.page-id-6320 #content section.elementor-element-8c22908 {
  display: none !important;
}
/* Intro section: zero top padding so it sits close to title */
body.page-id-6320 #content section.elementor-element-42fff30 {
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}
body.page-id-6320 #content .elementor-element-5a206f6 .elementor-spacer-inner {
  height: 0 !important;
}
/* h2 own margin */
body.page-id-6320 #content .elementor-widget-text-editor h2 {
  margin: 0 0 6px !important;
}

/* ============================================================================
   PARTNER PAGE — Google Maps homogenization
   ============================================================================ */
.elementor-widget-google_maps .elementor-custom-embed,
.elementor-widget-google_maps .elementor-custom-embed iframe {
  width: 100%;
}
.elementor-widget-google_maps iframe {
  height: 500px;
  border: 0;
  display: block;
  filter: grayscale(100%);
}

/* ============================================================================
   NEWS — tutorial section (clean grid replacing Elementor double-row)
   ============================================================================ */
.nipu-tutorial-section { padding: 30px 0 60px; }
.nipu-tutorial-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nipu-tutorial-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: #002400;
  margin: 0 0 28px;
  text-align: center;
}
.nipu-tutorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.nipu-tutorial-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  display: block;
}
.nipu-tutorial-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #002400;
  margin: 0 0 12px;
}
.nipu-tutorial-text p {
  font-size: 16px;
  line-height: 1.65;
  color: #1b1d21;
  margin: 0;
}
@media (max-width: 880px) {
  .nipu-tutorial-grid { grid-template-columns: 1fr; }
  .nipu-tutorial-title { font-size: 24px; }
}

/* ============================================================================
   HERO HOME (replaces slider revolution)
   ============================================================================ */
.nipu-hero {
  position: relative;
  width: 100%;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 5vw;
}
.nipu-hero-inner {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  align-items: start;
}
.nipu-hero-eyebrow {
  grid-column: 1;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 900;
  color: #002400;
}
.nipu-hero-title {
  grid-column: 2;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #002400;
  text-align: right;
}
.nipu-hero-subtitle {
  grid-column: 1 / -1;
  justify-self: end;
  max-width: 640px;
  margin: 0;
  padding: 12px 16px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: #002400;
  background-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 880px) {
  .nipu-hero { min-height: 400px; padding: 60px 24px; }
  .nipu-hero-inner { grid-template-columns: 1fr; }
  .nipu-hero-eyebrow { grid-column: 1; font-size: 28px; }
  .nipu-hero-title { grid-column: 1; font-size: 22px; text-align: left; }
  .nipu-hero-subtitle { justify-self: start; font-size: 18px; }
}

/* ============================================================================
   GLOBAL RESPONSIVE LAYER
   Forces sane stacking on tablet (≤1024px) and mobile (≤640px) for all
   Elementor multi-column rows. Targets the most common breakage patterns.
   ============================================================================ */

/* All screens: max-width media + smooth horizontal containment */
img, video, iframe { max-width: 100%; height: auto; }
body { overflow-x: hidden; }

/* TABLET — 1024px and below */
@media (max-width: 1024px) {
  /* Multi-column rows that don't already use Elementor's tablet handling */
  body:not(.home) #content section.elementor-section .elementor-column.elementor-col-25,
  body:not(.home) #content section.elementor-section .elementor-column.elementor-col-33 {
    width: 50% !important;
  }
  /* Hero home — title + eyebrow side-by-side becomes stacked */
  .nipu-hero { padding: 60px 40px; min-height: 380px; }
  .nipu-hero-title { font-size: 24px; }
  .nipu-hero-eyebrow { font-size: 32px; }
}

/* MOBILE — 768px and below */
@media (max-width: 768px) {
  /* Stack everything in a column: 50/50, 33/33/33, 25/25/25/25 → full width */
  body #content section.elementor-section .elementor-column.elementor-col-50,
  body #content section.elementor-section .elementor-column.elementor-col-33,
  body #content section.elementor-section .elementor-column.elementor-col-25 {
    width: 100% !important;
    margin-bottom: 16px;
  }
  /* Section padding shrinks */
  body #content section.elementor-section.elementor-top-section {
    padding: 28px 16px !important;
  }
  /* Footer — 4 columns become full width stacked */
  footer .elementor-column { width: 100% !important; text-align: center; }
  footer .the-logo img { margin: 0 auto; }
  /* Page header (breadcrumbs) */
  .page-header { padding: 40px 16px !important; min-height: 200px; }
  .page-title { font-size: 28px !important; }
  /* News tutorial already responsive at 880px */
  /* Publications intro already responsive */
  /* Top banner */
  #nipu-top-bar { flex-direction: column; gap: 8px; padding: 8px 12px !important; text-align: center; }
  #nipu-top-bar .nipu-msg { font-size: 12px; }
  /* Heading sizes */
  h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 28px !important; }
  h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 22px !important; }
  h3, .elementor-widget-heading h3.elementor-heading-title { font-size: 19px !important; }
  /* Map iframe */
  .elementor-widget-google_maps iframe { height: 320px !important; }
}

/* SMALL MOBILE — 480px and below */
@media (max-width: 480px) {
  body #content section.elementor-section.elementor-top-section { padding: 20px 12px !important; }
  .nipu-hero { padding: 40px 16px; min-height: 320px; }
  .nipu-hero-eyebrow { font-size: 24px; }
  .nipu-hero-title { font-size: 18px; text-align: left; }
  .nipu-hero-subtitle { font-size: 16px; padding: 8px 12px; }
  h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 24px !important; }
  h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 20px !important; }
  .page-title { font-size: 24px !important; }
  body { font-size: 15px; }
}
