/* ==========================================================================
   SHUGO Multi Services -- shugo.css
   Design system layered on top of local Bootstrap 5.3.x. Never modify
   bootstrap.min.css directly -- all SHUGO customization lives here.
   Section order follows spec Section 31.
   ========================================================================== */

/* 1. Font faces */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora/Sora-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens */
:root {
  --shugo-navy: #071A2F;
  --shugo-blue: #1769E0;
  --shugo-gold: #D6A43C;
  --shugo-ice: #F5F7FA;
  --shugo-slate: #718096;
  --shugo-white: #FFFFFF;
  --shugo-border: #DDE3EA;
  --shugo-soft: #EDF1F5;
  --shugo-text-secondary: #566476;
  --shugo-border-strong: #C8D0DA;
  /* radius-xs/lg, shadow-md, transition-fast: carried from the authoritative
     shugo.tokens.css set, not yet used on this homepage -- reserved for
     services.html/a-propos.html/contact.html (Phase 2). */
  --shugo-radius-xs: 4px;
  --shugo-radius-sm: 8px;
  --shugo-radius-md: 12px;
  --shugo-radius-lg: 16px;
  --shugo-shadow-sm: 0 1px 2px rgba(7, 26, 47, .06);
  --shugo-shadow-md: 0 4px 12px rgba(7, 26, 47, .08);
  --shugo-transition-fast: 120ms;
  --shugo-transition-normal: 200ms;
}

/* 3. Base / typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--shugo-navy);
  background: var(--shugo-white);
  line-height: 1.5;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Sora", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
}

a {
  color: var(--shugo-blue);
}

/* 4. Utilities SHUGO */
/* Reserved -- Bootstrap's built-in .container, .visually-hidden-focusable, and
   .d-flex utilities cover every Phase 1 need. Add rules here only when a
   future phase needs something Bootstrap does not already provide. */

/* 5. Header / navigation */
.shugo-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--shugo-white);
  transition: background-color var(--shugo-transition-normal) ease, box-shadow var(--shugo-transition-normal) ease;
}

.shugo-header--scrolled {
  background: var(--shugo-navy);
  box-shadow: var(--shugo-shadow-sm);
}

.shugo-header .navbar-brand img {
  width: 180px;
  height: 54px;
}

.shugo-header-logo {
  position: relative;
  display: inline-block;
  width: 180px;
  height: 54px;
}

.shugo-header-logo img {
  position: absolute;
  inset: 0;
  transition: opacity var(--shugo-transition-normal) ease;
}

.shugo-header-logo__dark {
  opacity: 0;
}

.shugo-header--scrolled .shugo-header-logo__light {
  opacity: 0;
}

.shugo-header--scrolled .shugo-header-logo__dark {
  opacity: 1;
}

.shugo-header .navbar-nav .nav-link,
.shugo-header .navbar-nav .nav-link.active {
  color: var(--shugo-navy);
  transition: color var(--shugo-transition-normal) ease;
  padding-block: .75rem;
}

.shugo-header--scrolled .navbar-nav .nav-link,
.shugo-header--scrolled .navbar-nav .nav-link.active {
  color: #fff;
}

.shugo-header .navbar-nav .nav-link.active {
  font-weight: 600;
  position: relative;
}

.shugo-header .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--shugo-blue);
}

.shugo-header--scrolled .navbar-toggler {
  border-color: rgba(255, 255, 255, .35);
}

.shugo-header--scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
  min-width: 44px;
  min-height: 44px;
}

/* 6. Buttons */
.shugo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--shugo-radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-family: "Inter", system-ui, sans-serif;
  text-decoration: none;
  transition: var(--shugo-transition-normal) ease;
}

.shugo-btn--primary {
  background: var(--shugo-blue);
  color: #fff;
}

.shugo-btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(.96);
}

.shugo-btn--secondary {
  background: transparent;
  color: var(--shugo-navy);
  border-color: var(--shugo-navy);
}

.shugo-section-dark .shugo-btn--secondary {
  color: #fff;
  border-color: #fff;
}

/* 7. Hero */
.shugo-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
  min-height: 420px;
}

.shugo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--shugo-blue);
  font-weight: 600;
  font-size: .86rem;
}

.shugo-value-point {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--shugo-gold);
  transform: rotate(45deg);
  display: inline-block;
}

.shugo-hero h1 {
  font-size: 36px;
  max-width: 750px;
}

.shugo-lead {
  font-size: 1.15rem;
  color: var(--shugo-text-secondary);
  max-width: 650px;
}

.shugo-section-dark .shugo-lead {
  color: var(--shugo-border);
}

.shugo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.shugo-hero-visual {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--shugo-white), var(--shugo-ice));
  border: 1px solid var(--shugo-border);
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.shugo-hero-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 8. Sections */
.shugo-section {
  padding: 72px 0;
}

.shugo-section-light {
  background: var(--shugo-white);
}

.shugo-section-soft {
  background: var(--shugo-ice);
}

.shugo-section-dark {
  background: var(--shugo-navy);
  color: #fff;
}

/* 9. Service cards */
.shugo-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a a a"
    "b c d";
  gap: 24px;
}

.shugo-service-grid > .shugo-service-card:nth-child(1) { grid-area: a; }
.shugo-service-grid > .shugo-service-card:nth-child(2) { grid-area: b; }
.shugo-service-grid > .shugo-service-card:nth-child(3) { grid-area: c; }
.shugo-service-grid > .shugo-service-card:nth-child(4) { grid-area: d; }

.shugo-service-card {
  background: #fff;
  border: 1px solid var(--shugo-border);
  border-radius: var(--shugo-radius-md);
  padding: 24px;
}

.shugo-service-card h3 {
  font-size: 1.15rem;
  font-family: "Sora", "Inter", sans-serif;
}

.shugo-service-card p {
  margin-bottom: 0;
  color: var(--shugo-text-secondary);
}

.shugo-icon-tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--shugo-radius-sm);
  background: var(--shugo-ice);
  color: var(--shugo-blue);
  margin-bottom: 18px;
}

.shugo-icon-tile svg {
  width: 24px;
  height: 24px;
}

/* Pourquoi SHUGO */
.shugo-why-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}

.shugo-why-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.shugo-why-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--shugo-blue);
  flex-shrink: 0;
}

/* 10. Value Path */
.shugo-value-path {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  list-style: none;
  margin: 48px 0 0;
  padding: 8px 0 0;
}

.shugo-value-path__line {
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--shugo-blue);
  z-index: 0;
  transform-origin: left center;
}

.js-pending .shugo-value-path__line {
  transform: scaleX(0);
}

.js-pending.is-visible .shugo-value-path__line {
  animation: shugo-draw-in 900ms ease-out;
}

@keyframes shugo-draw-in {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.shugo-value-path__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.shugo-value-path__node {
  width: 36px;
  height: 36px;
}

.shugo-value-path__node svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shugo-value-path__label {
  font-weight: 600;
  font-size: .9rem;
}

/* 11. CTA */
.shugo-cta-final {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.shugo-cta-final .shugo-btn {
  margin-top: 24px;
}

/* 12. Footer */
.shugo-footer {
  background: var(--shugo-navy);
  color: #fff;
  padding: 56px 0 32px;
}

.shugo-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.shugo-footer-grid a {
  color: #fff;
  display: inline-block;
  padding-block: .75rem;
}

.shugo-footer small {
  color: var(--shugo-border-strong);
  display: block;
  margin-top: 24px;
}

.shugo-footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.shugo-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--shugo-radius-sm);
  color: #fff;
  transition: color var(--shugo-transition-normal) ease;
}

/* `.shugo-footer-grid a` (specificity 0,1,1) outranks the base `.shugo-social-link`
   rule above (specificity 0,1,0) once the social icon row is nested inside
   `.shugo-footer-grid` -- the natural placement per SOCIAL-SETUP.md's integration
   instructions -- silently overriding color/display/padding back to the generic
   footer-link styles. Same cascade-bug class already fixed for
   `.navbar-nav .nav-link:focus-visible` above; restate at matching/higher
   specificity so the resting styles hold no matter which footer column contains
   the icon row. */
.shugo-footer-social .shugo-social-link {
  display: inline-flex;
  color: #fff;
  padding: 0;
}

.shugo-social-link:hover,
.shugo-social-link:focus-visible {
  color: var(--shugo-blue);
}

.shugo-footer-social .shugo-social-link:hover,
.shugo-footer-social .shugo-social-link:focus-visible {
  color: var(--shugo-blue);
}

.shugo-social-link svg {
  width: 26px;
  height: 26px;
}

/* 13. Page-specific */
.shugo-page-hero {
  max-width: 750px;
}

.shugo-page-hero h1 {
  font-size: 36px;
  max-width: 750px;
}

.shugo-page-title {
  font-size: 28px;
}

.shugo-domain-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.shugo-domain-header .shugo-icon-tile {
  margin-bottom: 0;
  flex-shrink: 0;
}

.shugo-domain-header h2 {
  margin: 0;
}

.shugo-subservice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shugo-domain-text {
  max-width: 680px;
  color: var(--shugo-text-secondary);
}

.shugo-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.shugo-legal-block {
  max-width: 680px;
}

.shugo-legal-block dt {
  font-weight: 600;
  margin-top: 16px;
}

.shugo-legal-block dt:first-child {
  margin-top: 0;
}

.shugo-legal-block dd {
  margin: 4px 0 0;
  color: var(--shugo-text-secondary);
}

.shugo-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

/* 14. Accessibility */
.shugo-skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  background: var(--shugo-navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--shugo-radius-sm);
}

a:focus-visible,
button:focus-visible,
.shugo-btn:focus-visible,
.navbar-toggler:focus-visible {
  outline: 2px solid var(--shugo-blue);
  outline-offset: 2px;
}

.shugo-header--scrolled a:focus-visible,
.shugo-header--scrolled button:focus-visible,
.shugo-header--scrolled .navbar-toggler:focus-visible {
  outline-color: #fff;
}

/* Bootstrap's own .nav-link:focus-visible rule (outline:0 plus a faint
   rgba(13,110,253,.25) box-shadow) has higher selector specificity than the
   a:focus-visible rule above and silently wins the cascade for header
   nav-links, leaving no visible SHUGO focus ring. Restate the same outline
   pattern at matching specificity so keyboard focus stays visible here too. */
.navbar-nav .nav-link:focus-visible {
  outline: 2px solid var(--shugo-blue);
  outline-offset: 2px;
  box-shadow: none;
}

.shugo-header--scrolled .navbar-nav .nav-link:focus-visible {
  outline-color: #fff;
}

/* 15. Motion */
/* Visible by default -- this is the JS-disabled baseline (spec Section 34
   checklist item 15: the page must render without JavaScript). shugo.js only
   opts an element into the hidden-until-scrolled-into-view state by adding
   .js-pending once it has confirmed it can animate and observe. */
.shugo-reveal {
  opacity: 1;
  transform: none;
}

.shugo-reveal.js-pending {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--shugo-transition-normal) ease, transform var(--shugo-transition-normal) ease;
}

.shugo-reveal.js-pending.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .shugo-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .shugo-header {
    transition: none;
  }

  .shugo-header-logo img {
    transition: none;
  }

  .shugo-btn:hover {
    transform: none;
  }

  .shugo-value-path__line {
    animation: none;
  }
}

/* 16. Responsive overrides */
@media (min-width: 521px) {
  .shugo-hero h1 {
    font-size: 42px;
  }
}

@media (min-width: 851px) {
  .shugo-hero h1 {
    font-size: 56px;
  }
}

@media (max-width: 850px) {
  .shugo-hero {
    grid-template-columns: 1fr;
  }

  .shugo-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shugo-section {
    padding: 52px 0;
  }
}

@media (max-width: 991px) {
  .shugo-service-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a a"
      "b c"
      "d d";
  }
}

@media (max-width: 575px) {
  .shugo-service-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .shugo-why-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .shugo-value-path {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .shugo-value-path__line {
    left: 17px;
    top: 0;
    bottom: 0;
    right: auto;
    width: 2px;
    height: auto;
  }

  .shugo-value-path__step {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 521px) {
  .shugo-page-hero h1 {
    font-size: 42px;
  }
}

@media (min-width: 851px) {
  .shugo-page-hero h1 {
    font-size: 56px;
  }
}

@media (max-width: 991px) {
  .shugo-subservice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .shugo-subservice-grid {
    grid-template-columns: 1fr;
  }

  .shugo-contact-grid {
    grid-template-columns: 1fr;
  }
}
