/* =============================================
   NOVA SINAÉ — Custom CSS
   Couleurs : #18545C (teal) | #E50E7E (rose)
   Police   : Jost (Futura-like)
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  --color-teal: #18545C;
  --color-rose: #E50E7E;
  --color-teal-light: #e8f2f3;
  --color-grey-bg: #f7f8f8;
  --color-text: #2c2c2c;
  --color-text-light: #666;
  --font-main: 'Jost', sans-serif;
}

/* ---- GLOBAL ---- */
body {
  font-family: var(--font-main) !important;
  color: var(--color-text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main) !important;
}
p, li, a, span, div {
  font-family: var(--font-main) !important;
}

/* ---- HEADER / NAV ---- */
.site-header.standard {
  border: none !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08) !important;
}
/* Remove any outline/box around nav */
#site-navigation,
.main-navigation,
.main-navigation ul,
#top-menu {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Logo sizing */
.logo-brand img.logo,
.logo-brand img.retina-logo {
  max-height: 56px;
  width: auto;
}

/* Nav links — teal by default */
#top-menu > li > a {
  color: var(--color-teal) !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#top-menu > li > a:hover {
  color: var(--color-rose) !important;
}
/* Active page — rose */
#top-menu > li.current-menu-item > a,
#top-menu > li.current-menu-parent > a {
  color: var(--color-rose) !important;
}

/* ---- HERO ---- */
.hero-section {
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(24, 84, 92, 0.45);
}
.hero-section .heading-block {
  position: relative;
  z-index: 2;
}
.hero-section h1,
.hero-section .block-size-3 {
  color: #fff !important;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.2;
  font-family: var(--font-main) !important;
}
.hero-section p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.15rem;
  font-weight: 300;
}

/* ---- SECTION TITLES ---- */
.ns-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}
.ns-section-subtitle {
  color: var(--color-text-light);
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.ns-title-accent {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--color-rose);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* ---- BUTTONS ---- */
.btn-ns-primary {
  display: inline-block;
  background: var(--color-teal);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid var(--color-teal);
}
.btn-ns-primary:hover {
  background: #0f3b42;
  border-color: #0f3b42;
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-ns-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-teal) !important;
  padding: 10px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all 0.2s;
  border: 2px solid var(--color-teal);
}
.btn-ns-outline:hover {
  background: var(--color-teal);
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-ns-rose {
  display: inline-block;
  background: var(--color-rose);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid var(--color-rose);
}
.btn-ns-rose:hover {
  background: #c00a6b;
  border-color: #c00a6b;
  color: #fff !important;
  transform: translateY(-1px);
}
.ns-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e8e9;
}

/* ---- ADN / 5 marqueurs ---- */
.adn-card {
  background: var(--color-teal-light);
  border-left: 4px solid var(--color-teal);
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}
.adn-card .adn-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: 6px;
}
.adn-card .adn-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: 4px;
}
.adn-card p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ---- SERVICE CARDS ---- */
.service-card {
  border: 1px solid #dde8e9;
  border-radius: 6px;
  padding: 28px 24px;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(24,84,92,0.12);
  transform: translateY(-3px);
}
.service-card .service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}
.service-card .btn-ns-outline {
  margin-top: 16px;
  font-size: 0.78rem;
  padding: 8px 18px;
}

/* ---- EXPERTISE ICONS GRID ---- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 2rem 0;
}
.expertise-item {
  text-align: center;
}
.expertise-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 10px;
}
.expertise-item span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- REPÈRES TIMELINE ---- */
.reperes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reperes-list li {
  padding: 10px 0 10px 20px;
  border-left: 3px solid var(--color-teal);
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}
.reperes-list li strong {
  color: var(--color-teal);
  font-weight: 600;
}

/* ---- PROFILE LAYOUT ---- */
.profile-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(24,84,92,0.15);
  display: block;
}
.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 4px;
}
.profile-role {
  font-size: 0.9rem;
  color: var(--color-rose);
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ---- ACCROCHE PAGE (Accueil) ---- */
.ns-intro-section {
  background: #fff;
  padding: 64px 0 48px;
}
.ns-intro-lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.7;
  max-width: 700px;
}
.ns-intro-lead strong {
  color: var(--color-teal);
  font-weight: 600;
}

/* ---- CONTACT PAGE ---- */
.contact-info-block {
  background: var(--color-teal-light);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 24px;
}
.contact-info-block p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--color-text);
}
.contact-info-block a {
  color: var(--color-teal);
  font-weight: 500;
}
.ns-form input,
.ns-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0dfe0;
  border-radius: 3px;
  font-family: var(--font-main) !important;
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}
.ns-form input:focus,
.ns-form textarea:focus {
  border-color: var(--color-teal);
}
.ns-form textarea {
  min-height: 140px;
  resize: vertical;
}
.ns-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.ns-gcal-btn-wrap {
  background: var(--color-grey-bg);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.ns-gcal-btn-wrap p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 14px;
}
.rdv-picto {
  width: 60px;
  margin-bottom: 12px;
}

/* ---- FOOTER ---- */
#footer.site-footer {
  background: var(--color-teal) !important;
  color: rgba(255,255,255,0.85) !important;
  padding: 48px 0 0 !important;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-col-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none;
  line-height: 1.8;
  display: block;
}
.footer-col a:hover {
  color: #fff !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p,
.footer-bottom a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55) !important;
  margin: 0;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: rgba(255,255,255,0.85) !important;
}
.footer-social-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.footer-social-links a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-social-links a:hover img {
  opacity: 1;
}

/* Hide default footer nav */
#footer .footer-menu,
#footer .footer-socials,
#footer .site-info {
  display: none !important;
}

/* ---- PAGE TITLE BANNER ---- */
.ns-page-banner {
  background: var(--color-teal-light);
  padding: 52px 0 40px;
  margin-bottom: 48px;
}
.ns-page-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 8px;
}
.ns-page-banner p {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 300;
  max-width: 620px;
}

/* ---- MODALS (mentions légales / confidentialité) ---- */
.ns-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  overflow-y: auto;
  padding: 40px 16px;
}
.ns-modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.ns-modal {
  background: #fff;
  border-radius: 6px;
  max-width: 700px;
  width: 100%;
  padding: 40px;
  position: relative;
}
.ns-modal h2 {
  font-size: 1.4rem;
  color: var(--color-teal);
  margin-bottom: 1.5rem;
}
.ns-modal h3 {
  font-size: 1rem;
  color: var(--color-teal);
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.ns-modal p, .ns-modal li {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}
.ns-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-teal);
  background: none;
  border: none;
  line-height: 1;
}
.ns-modal-close:hover { color: var(--color-rose); }

/* ---- NDA / certif badge ---- */
.ns-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.5;
  margin-top: 10px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section h1, .hero-section .block-size-3 { font-size: 1.8rem; }
  .ns-page-banner h1 { font-size: 1.6rem; }
  .ns-cta-bar { flex-direction: column; align-items: flex-start; }
  .profile-photo { max-width: 200px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
