/* =============================================================
   DMSCO Scientific Services — dmscoglobal.com
   Palette : blanc / gris bleuté clair / bleu marine / cyan
   ============================================================= */
:root {
  --white: #ffffff;
  --bg-light: #F2F6F8;
  --navy: #09273A;
  --navy-deep: #071E30;
  --blue: #07518A;
  --cyan: #29B9D0;
  --slate: #14283A;
  --text: #23384a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 11px;
  padding: 11px 22px;
  transition: filter .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn .arrow { font-weight: 400; font-size: 15px; line-height: 1; }

.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan.btn-dark-text { color: #072234; }

.btn-outline {
  background: var(--white);
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 15px;
}
.btn-outline:hover { background: #eef5fa; filter: none; }

.btn-header {
  background: var(--blue);
  color: var(--white);
  font-size: 12.5px;
  padding: 11px 18px;
  white-space: nowrap;
}
.btn-header svg { width: 15px; height: 15px; }

/* =============================================================
   En-tête
   ============================================================= */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(9, 39, 58, .06);
}
.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
  max-width: 1290px;
  margin: 0 auto;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 50px; height: 50px; }
.brand-text strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navy);
  line-height: 1;
}
.brand-text small {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: #24455c;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 4px;
  flex: 1;
}
.main-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  color: #12314a;
  white-space: nowrap;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  width: 35px;
  bottom: -4px;
  height: 2px;
  background: var(--blue);
}

.header-spacer { flex: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
}
.nav-toggle span {
  display: block;
  width: 30px;
  height: 3.5px;
  border-radius: 2px;
  background: var(--navy);
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--navy) url("assets/img/hero.jpg?v=4") no-repeat right center / cover;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(88deg,
      rgba(5, 25, 42, .96) 0%,
      rgba(6, 29, 48, .88) 36%,
      rgba(9, 39, 58, .50) 62%,
      rgba(8, 33, 54, .32) 100%),
    linear-gradient(rgba(9, 39, 58, .30), rgba(9, 39, 58, .30));
}
.hero-content {
  position: relative;
  width: 100%;
  padding-top: 34px;
  padding-bottom: 34px;
}

.hero-kicker {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-rule {
  display: block;
  width: 74px;
  height: 2px;
  background: var(--cyan);
  margin-top: 12px;
}

.hero-title {
  margin-top: 16px;
  font-size: 76px;
  font-weight: 800;
  line-height: .98;
  letter-spacing: .01em;
  color: var(--white);
}
.hero-title span {
  display: block;
  font-size: 53px;
}

.hero-sub {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 490px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 46px;
  margin-top: 30px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-points .ico-circle {
  width: 42px;
  height: 42px;
  border: 1.6px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-points .ico-circle svg {
  width: 21px;
  height: 21px;
  stroke: var(--cyan);
}
.hero-points span {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--white);
}

.hero .btn-cyan { margin-top: 30px; }

/* =============================================================
   Bandeau engagements (mobile uniquement)
   ============================================================= */
.advantages-mobile { display: none; }

/* =============================================================
   Barre de contact (mobile uniquement)
   ============================================================= */
.mobile-contact-bar { display: none; }

/* =============================================================
   Domaines d'intervention
   ============================================================= */
.services {
  background: #F3F7FA;
  padding: 52px 0 58px;
}
.services h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #0a2233;
}
.section-sub {
  text-align: center;
  font-size: 13px;
  color: #3f5464;
  margin-top: 9px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.card {
  background: var(--white);
  border: 1px solid #E8EEF2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(9, 39, 58, .05);
  display: flex;
  flex-direction: column;
}
.card > img {
  width: 100%;
  height: 114px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.card-title-row svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
  flex-shrink: 0;
  margin-top: 1px;
}
.card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #0d2436;
  line-height: 1.3;
}
.card-list {
  margin: 12px 0 0;
  padding-left: 18px;
}
.card-list li {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text);
  margin: 4.5px 0;
}
.card-list li::marker { color: #0d2436; }
.card-list { flex: 1; }
.card .btn-outline { margin-top: 16px; align-self: flex-start; }

/* =============================================================
   Bandeau des engagements (ordinateur)
   ============================================================= */
.advantages {
  background: var(--navy);
  padding: 24px 0;
}
.advantages-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.advantages-row .adv {
  display: flex;
  align-items: center;
  gap: 16px;
}
.advantages-row .adv svg {
  width: 42px;
  height: 42px;
  stroke: var(--cyan);
  flex-shrink: 0;
}
.advantages-row .adv p {
  color: var(--white);
  font-size: 13px;
  line-height: 1.4;
}

/* =============================================================
   À propos + contact
   ============================================================= */
.about-contact {
  background: var(--bg-light);
  display: grid;
  grid-template-columns: 23% minmax(0, 1fr) 38%;
}
.about-photo { position: relative; min-height: 340px; }
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-text {
  align-self: center;
  padding: 44px 48px;
}
.about-text h2 {
  font-size: 19px;
  font-weight: 700;
  color: #0a2233;
}
.about-text p {
  margin-top: 13px;
  font-size: 13px;
  line-height: 1.6;
  color: #2e4356;
  max-width: 490px;
}
.about-short { display: none; }
.about-text .btn-outline { margin-top: 20px; font-size: 12.5px; padding: 9px 16px; }

.contact-panel {
  position: relative;
  background: var(--navy);
  border-radius: 16px 0 0 0;
  color: var(--white);
  padding: 34px 42px 42px;
  overflow: hidden;
}
.contact-panel h2 {
  position: relative;
  font-size: 20px;
  font-weight: 800;
}
.contact-panel > p {
  position: relative;
  margin-top: 9px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
}
.contact-list {
  list-style: none;
  position: relative;
  margin-top: 24px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px 0;
}
.contact-list svg {
  width: 17px;
  height: 17px;
  stroke: var(--cyan);
  flex-shrink: 0;
}
.contact-list a:hover { text-decoration: underline; }
.contact-list a, .contact-list span { font-size: 13px; color: var(--white); }
.contact-panel .btn-cyan { position: relative; margin-top: 26px; }

.contact-deco {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 300px;
  height: 300px;
  opacity: .32;
  pointer-events: none;
}

/* =============================================================
   Pied de page
   ============================================================= */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a:hover { color: var(--cyan); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1180px) {
  .main-nav { gap: 14px; }
  .hero-title { font-size: 62px; }
  .hero-title span { font-size: 44px; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; margin-left: 6px; }
  .btn-header { font-size: 11.5px; padding: 9px 14px; }
  .header-inner.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 18px 24px;
    gap: 14px;
    box-shadow: 0 12px 24px rgba(9, 39, 58, .12);
    z-index: 60;
  }
  /* ----- Maquette mobile (structure dédiée) ----- */
  body { background: #F3F7FA; }

  /* Le hero ne contient plus les engagements : ils passent
     dans leur propre bandeau bleu marine, juste en dessous. */
  .hero-points { display: none; }
  .hero { min-height: 380px; }
  .hero-content { padding-top: 26px; padding-bottom: 26px; }
  .hero-kicker { font-size: 13px; line-height: 1.6; max-width: 340px; }
  .hero-title { font-size: 52px; }
  .hero-title span { font-size: 34px; }
  .hero-sub { font-size: 17px; max-width: 340px; }
  .hero .btn-cyan { font-size: 14px; padding: 13px 26px; margin-top: 24px; }

  .advantages { display: none; }
  .advantages-mobile {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    background: var(--navy);
    padding: 16px 18px;
  }
  .advantages-mobile .adv-m {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .advantages-mobile .ico-m {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1.6px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .advantages-mobile .ico-m svg { width: 16px; height: 16px; stroke: var(--cyan); }
  .advantages-mobile .ico-m.ico-plain { border: none; width: auto; height: auto; }
  .advantages-mobile .ico-m.ico-plain svg { width: 26px; height: 26px; }
  .advantages-mobile p { color: var(--white); font-size: 10.5px; line-height: 1.3; }

  /* Cartes en deux colonnes */
  .services { padding: 40px 0 26px; }
  .services h2 { font-size: 23px; }
  .section-sub { font-size: 12.5px; max-width: 430px; margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }

  /* Bloc à propos : carte arrondie, photo à gauche, texte à droite */
  .about-contact {
    grid-template-columns: 42% minmax(0, 1fr);
    margin: 14px 16px 0;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(9, 39, 58, .08);
  }
  .about-photo { min-height: 195px; }
  .about-text { padding: 20px 18px; align-self: center; }
  .about-text h2 { font-size: 16.5px; }
  .about-text p { font-size: 12.5px; margin-top: 10px; }
  .about-long { display: none; }
  .about-short { display: block; }
  .about-text .btn-outline { margin-top: 14px; font-size: 11.5px; padding: 8px 13px; }

  /* Le grand panneau de contact laisse place à la barre du bas */
  .contact-panel { display: none; }
  .mobile-contact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    background: var(--navy);
    padding: 16px 20px;
    margin-top: 20px;
  }
  .mcb-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--white);
    font-size: 11.5px;
    line-height: 1.35;
    min-width: 0;
  }
  .mcb-item svg { width: 22px; height: 22px; stroke: var(--cyan); flex-shrink: 0; }
  a.mcb-item:hover { text-decoration: underline; }
  .mcb-email { max-width: 150px; }
  .mcb-btn {
    font-size: 12.5px;
    padding: 10px 16px;
    border-radius: 12px;
    text-align: center;
    max-width: 132px;
    white-space: normal;
    line-height: 1.3;
    margin-left: auto;
  }
  .mcb-btn .arrow { font-size: 13px; }
}

@media (max-width: 560px) {
  .brand { gap: 8px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-text strong { font-size: 19px; }
  .brand-text small { font-size: 8.5px; margin-top: 2px; }
  .header-inner { gap: 12px; padding: 0 16px; }
  .btn-header { font-size: 10.5px; padding: 8px 12px; }
  .nav-toggle span { width: 26px; height: 3px; }

  .cards { grid-template-columns: 1fr; }
  .hero-title { font-size: 46px; }
  .hero-title span { font-size: 30px; }

  .advantages-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .advantages-mobile p { font-size: 11px; }

  .mobile-contact-bar { gap: 14px; }
  .mcb-email { max-width: none; }
  .mcb-btn { margin-left: 0; }
}
