/* =====================================================
   DITSERVICE — VITRINE PUBLIQUE
   Version 2

   Styles propres aux pages publiques.
   Aucun impact sur /home/ ou l'application privée.
   ===================================================== */


/* VARIABLES */

.vitrine {
  --bg: #10151c;
  --bg-alt: #151e2a;
  --surface: #192331;

  --text: #f1f5f9;
  --muted: #b8c3d1;

  --brand: #3266dc;
  --brand-light: #8fb9ff;

  --border: rgba(196, 211, 231, .14);

  --container: 1120px;

  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family:
    "Montserrat",
    system-ui,
    sans-serif;

  font-size: 16px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
}


/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family:
    "Manrope",
    system-ui,
    sans-serif;

  line-height: 1.2;
}

p {
  color: var(--muted);
}

a:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 4px;
}

.container {
  width: min(
    var(--container),
    calc(100% - 48px)
  );

  margin-inline: auto;
}


/* NAVIGATION */

.site-header {
  background: #142030;
  border-bottom: 1px solid var(--border);
}

.site-nav {
  width: min(
    1280px,
    calc(100% - 48px)
  );

  min-height: 80px;

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 160px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex-wrap: wrap;

  gap: 12px 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;

  color: #e2e8f0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-light);
}

.nav-links .nav-login {
  padding: 9px 16px;

  border: 1px solid
    rgba(143, 185, 255, .45);

  border-radius: 8px;
}


/* PREMIER ÉCRAN */

.hero {
  position: relative;

  min-height: 660px;

  display: flex;
  align-items: center;

  padding: 100px 0;

  background:
    linear-gradient(
      90deg,
      rgba(7, 15, 28, .90) 0%,
      rgba(7, 15, 28, .82) 38%,
      rgba(7, 15, 28, .45) 100%
    ),
    url("/static/user_home/assets/hero-bj.png");

  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(
    1120px,
    calc(100% - 48px)
  );

  margin-inline: auto;
}

.eyebrow,
.section-label {
  display: block;

  margin-bottom: 18px;

  color: var(--brand-light);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.hero h1 {
  max-width: 780px;

  margin-bottom: 26px;

  font-size: clamp(
    34px,
    4.1vw,
    54px
  );

  letter-spacing: -.035em;
}

.hero-description {
  max-width: 690px;

  font-size: 17px;
  line-height: 1.85;

  color: #d9e2ee;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 34px;
}


/* BOUTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 12px 22px;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 700;

  text-align: center;

  transition:
    background .2s ease,
    border-color .2s ease;
}

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

.button-primary:hover {
  background: #4479ee;
}

.button-secondary {
  border: 1px solid
    rgba(226, 232, 240, .45);

  color: #fff;
}

.button-secondary:hover {
  background: rgba(255,255,255,.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--brand-light);

  font-size: 14px;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* SECTIONS */

.section {
  padding: 100px 0;

  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 780px;

  margin-bottom: 46px;
}

.section-heading h2 {
  margin-bottom: 18px;

  font-size: clamp(
    27px,
    3vw,
    36px
  );

  letter-spacing: -.025em;
}

.section-heading p {
  max-width: 720px;

  font-size: 16px;
  line-height: 1.85;
}


/* EXPERTISE */

.expertise {
  background: var(--bg);
}

.expertise-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.service-card {
  min-width: 0;

  padding: 30px 26px;

  background: var(--bg-alt);

  border: 1px solid var(--border);
  border-radius: 12px;
}

.service-number {
  margin-bottom: 30px;

  color: var(--brand-light);

  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.service-card h3 {
  margin-bottom: 18px;

  font-size: 19px;
}

.service-card p {
  margin-bottom: 0;

  font-size: 14px;
  line-height: 1.8;
}


/* PLATEFORME */

.plateforme {
  background: var(--bg-alt);
}

.capabilities {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  border-top: 1px solid var(--border);
}

.capability {
  display: grid;

  grid-template-columns: 40px 1fr;

  gap: 20px;

  padding: 30px 24px 30px 0;

  border-bottom: 1px solid var(--border);
}

.capability:nth-child(even) {
  padding-left: 24px;
}

.capability-index {
  color: var(--brand-light);

  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.capability h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.capability p {
  max-width: 390px;

  margin-bottom: 0;

  font-size: 14px;
  line-height: 1.8;
}


/* DOMAINES */

.domaines {
  background: var(--bg);
}

.domain-list {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

.domain-list span {
  display: inline-block;

  padding: 12px 20px;

  background: var(--bg-alt);

  border: 1px solid var(--border);
  border-radius: 8px;

  color: #e2e8f0;

  font-size: 14px;
  font-weight: 600;
}


/* PUBLICATIONS SUR L'ACCUEIL */

.publications {
  background: var(--bg-alt);
}

.publication-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  align-items: center;

  gap: 64px;
}

.publication-intro h2 {
  margin-bottom: 22px;

  font-size: clamp(
    27px,
    3vw,
    36px
  );
}

.publication-intro p {
  font-size: 15px;
  line-height: 1.85;
}

.publication-intro .text-link {
  margin-top: 18px;
}

.publication-preview {
  padding: 34px;

  background: #121a25;

  border: 1px solid var(--border);
  border-radius: 12px;
}

.publication-status {
  display: block;

  margin-bottom: 20px;

  color: var(--brand-light);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.publication-preview h3 {
  margin-bottom: 18px;

  font-size: 22px;
}

.publication-preview p {
  margin-bottom: 0;

  font-size: 14px;
  line-height: 1.8;
}


/* CONTACT */

.contact {
  background: #142030;
}

.contact-inner {
  max-width: 760px;
}

.contact h2 {
  margin-bottom: 24px;

  font-size: clamp(
    27px,
    3vw,
    36px
  );
}

.contact p {
  font-size: 15px;
  line-height: 1.85;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 24px;

  margin-top: 30px;
}


/* PIED DE PAGE */

.site-footer {
  padding: 42px 0;

  background: #0e151f;
}

.footer-inner {
  display: flex;

  justify-content: space-between;

  gap: 32px;
}

.footer-brand strong {
  font-size: 16px;
}

.footer-brand p {
  max-width: 340px;

  margin-top: 10px;
  margin-bottom: 0;

  font-size: 13px;
}

.footer-info {
  display: flex;
  flex-direction: column;

  gap: 8px;

  color: var(--muted);

  font-size: 13px;
}

.footer-info a:hover {
  color: var(--brand-light);
}


/* PAGE PUBLICATIONS */

.publications-page {
  min-height: 65vh;

  background: var(--bg);
}

.publications-heading {
  max-width: 780px;
  margin-bottom: 65px;
}

.publications-heading h1 {
  margin-bottom: 24px;

  font-size: clamp(
    32px,
    4vw,
    48px
  );
}

.publications-heading p {
  font-size: 16px;
  line-height: 1.85;
}

.publication-list {
  border-top: 1px solid var(--border);
}

.publication-entry {
  max-width: 780px;

  padding: 36px 0;

  border-bottom: 1px solid var(--border);
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-bottom: 22px;

  color: var(--brand-light);

  font-size: 12px;
  font-weight: 700;
}

.publication-entry h2 {
  margin-bottom: 20px;

  font-size: 25px;
}

.publication-entry p {
  max-width: 690px;

  font-size: 15px;
  line-height: 1.85;
}

.publication-note {
  margin-top: 24px;

  color: var(--brand-light);
}


/* RESPONSIVE */

@media (max-width: 960px) {

  .site-nav {
    flex-direction: column;
    align-items: flex-start;

    padding: 18px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .publication-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

}


@media (max-width: 640px) {

  .container,
  .hero-inner,
  .site-nav {
    width: calc(100% - 36px);
  }

  .nav-links {
    gap: 12px 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    min-height: auto;

    padding: 76px 0;

    background-position: 60% center;
  }

  .hero h1 {
    font-size: clamp(
      30px,
      8vw,
      40px
    );
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .capability,
  .capability:nth-child(even) {
    padding: 24px 0;
  }

  .service-card {
    padding: 26px 22px;
  }

  .publication-preview {
    padding: 26px;
  }

  .footer-inner {
    flex-direction: column;
  }

}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

}
