/* StructOrga Solutions — styles.css (Corporate / Pro / Stable)
   Objectif : on rattrape, on met en cadence, on stabilise.

   Basé sur le logo (navy + orange + bleu clair) :
   - Navy (principal) : #0D1C44
   - Orange (CTA / accents) : #E2741D
   - Bleu clair (soft / focus) : #75A6D0
*/

:root {
  --bg-body: #f6f8fb;
  --bg-card: #ffffff;
  --bg-soft: #f3f7fb;

  /* Palette logo */
  --brand-navy: #0D1C44;
  --brand-navy-strong: #081536;
  --brand-navy-900: #10142F;
  --brand-orange: #E2741D;
  --brand-orange-strong: #C86116;
  --brand-sky: #75A6D0;

  /* Rôles */
  --accent: var(--brand-navy);
  --accent-soft: rgba(117, 166, 208, 0.18); /* bleu clair */
  --accent-strong: var(--brand-navy-strong);
  --accent-alt: var(--brand-navy);

  --cta: var(--brand-orange);
  --cta-strong: var(--brand-orange-strong);
  --cta-soft: rgba(226, 116, 29, 0.14);

  --text-main: #0b1220;
  --text-muted: #556579;

  --border-subtle: #D6E2EE;
  --shadow-strong: 0 12px 28px rgba(13, 28, 68, 0.12);

  --radius-lg: 14px;
  --radius-xl: 18px;
  --max-width: 1120px;
  --transition-fast: 140ms ease-out;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ CADENCE / RESET LÉGER ============ */
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.1rem; }

/* Focus visible (pro + accessibilité) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(117, 166, 208, 0.60);
  outline-offset: 2px;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  position: relative;
}

.logo { display: flex; align-items: center; gap: 0.6rem; }

.logo-icon img {
  height: 40px; /* ajuste selon ton header */
  width: auto;
  display: block;
}

.logo-text { display: flex; flex-direction: column; }

.logo-main {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 550;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--cta);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.active {
  color: var(--text-main);
  font-weight: 650;
}
.nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: none;
}

.btn-primary {
  background: var(--cta);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(226, 116, 29, 0.22);
}
.btn-primary:hover {
  background: var(--cta-strong);
  box-shadow: 0 10px 22px rgba(226, 116, 29, 0.26);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.btn-ghost:hover {
  border-color: rgba(117, 166, 208, 0.65);
  background: #ffffff;
}

/* BURGER MOBILE */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* HERO */

.hero { padding: 3.0rem 0 2.6rem; }
.hero.compact { padding: 2.2rem 0 1.9rem; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.8fr);
  gap: 3rem;
  align-items: start; /* stabilité */
}

.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cta);
  box-shadow: 0 0 0 5px var(--cta-soft);
}

.hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 0.9rem;
  letter-spacing: 0.01em;
}
.hero-title span {
  color: var(--cta);
  background: none;
  -webkit-background-clip: initial;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 36rem;
  margin-bottom: 1.6rem;
}
.hero-subtitle strong { color: var(--text-main); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.3rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.95);
}

/* On coupe l’effet pulse pour un rendu corporate */
.badge-pulse { position: relative; }
.badge-pulse::before { display: none; }

/* HERO RIGHT SIDE */

.hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  align-content: start;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #111827;

  /* stabilité image */
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hero-image-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 20, 47, 0.80);
  color: #e5e7eb;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(214, 226, 238, 0.35);
  backdrop-filter: blur(8px);
}
.hero-image-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cta);
}

.hero-card {
  position: relative;
  background: var(--brand-navy-900);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid rgba(214, 226, 238, 0.18);
  box-shadow: 0 14px 32px rgba(16, 20, 47, 0.38);
  overflow: hidden;
  isolation: isolate;
  animation: none; /* stable */
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(117, 166, 208, 0.22), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(226, 116, 29, 0.16), transparent 60%);
  opacity: 0.40;
  z-index: -1;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.hero-card-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 226, 238, 0.18);
  color: #cbd5f5;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: stretch;
}

.metric {
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 226, 238, 0.18);
}
.metric-label {
  font-size: 0.7rem;
  color: #aab3c2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}
.metric-value {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.15rem;
  color: #f9fafb;
}
.metric-value span { font-size: 0.8rem; color: #aab3c2; }

.hero-card-list {
  font-size: 0.86rem;
  color: #d7deea;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.hero-card-list-item { display: flex; align-items: center; gap: 0.4rem; }
.hero-card-list-item span:first-child {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(226, 116, 29, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #ffd7b5;
  flex-shrink: 0;
}

/* SECTION GENERIC */

section { scroll-margin-top: 5rem; }

.section-header {
  text-align: left;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.55rem;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-alt);
}

.section-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.5rem;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 40rem;
  line-height: 1.65;
}

/* CARDS / GRIDS REUSED */

.why { padding: 1.2rem 0 2.6rem; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.mini-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 8px 20px rgba(13, 28, 68, 0.08);
}

.mini-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

.mini-card:hover {
  box-shadow: 0 10px 26px rgba(13, 28, 68, 0.10);
  border-color: rgba(214, 226, 238, 1);
}

.mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.mini-title { font-size: 0.96rem; font-weight: 650; }
.mini-text { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; }

/* SERVICES PAGE */

.service-groups { padding: 1.2rem 0 2.8rem; }

.service-group {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 22px rgba(13, 28, 68, 0.08);
  padding: 1.3rem 1.3rem 1.4rem;
  margin-bottom: 1.2rem;
}

.service-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.service-group-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.1rem;
}
.service-group-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 48rem;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.service-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 20px rgba(13, 28, 68, 0.08);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;

  /* alignement interne (cadence) */
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 160px;
}

.service-card:hover {
  box-shadow: 0 12px 26px rgba(13, 28, 68, 0.10);
  border-color: rgba(214, 226, 238, 1);
}

.service-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--accent-alt);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.service-card-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cta);
  display: inline-block;
}

.service-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0.4rem 0 0.2rem;
}

.service-card-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card-hint {
  margin-top: auto; /* aligne toutes les cartes */
  font-size: 0.78rem;
  color: #66768b;
}
.service-card-hint strong { color: var(--text-main); }

/* CONTACT PAGE */

.contact-block { padding: 1.2rem 0 2.8rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 1.4rem;
  align-items: start;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 22px rgba(13, 28, 68, 0.08);
  padding: 1.3rem 1.3rem 1.4rem;
}

.card-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 0.6rem;
}

.small-muted { font-size: 0.82rem; color: #6b7280; }

/* FORM (light theme) */
.form-light label { color: var(--text-main); font-weight: 650; }

.form-light input, .form-light textarea {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(214, 226, 238, 1);
}

.form-light input::placeholder, .form-light textarea::placeholder { color: rgba(100, 116, 139, 0.8); }

.form-light input:focus, .form-light textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(117, 166, 208, 0.22);
}

/* MODALS */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 47, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 60;
}
.modal-overlay.open { display: flex; }

.modal-dialog { width: 100%; max-width: 540px; position: relative; }

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(214, 226, 238, 0.35);
  background: rgba(16, 20, 47, 0.88);
  color: #e5e7eb;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover { background: rgba(16, 20, 47, 1); }

.callback-form {
  background: var(--brand-navy-900);
  padding: 1.8rem 1.6rem 1.6rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(214, 226, 238, 0.18);
  box-shadow: 0 14px 32px rgba(16, 20, 47, 0.45);
  position: relative;
  overflow: hidden;
}

.callback-form::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(117, 166, 208, 0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(226, 116, 29, 0.16), transparent 55%);
  opacity: 0.40;
  z-index: -1;
}

.callback-form-title { font-size: 0.98rem; font-weight: 650; margin-bottom: 0.4rem; color: #f9fafb; }
.callback-form-subtitle { font-size: 0.8rem; color: #cbd5f5; margin-bottom: 1rem; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.form-group { margin-bottom: 0.85rem; }

label { display: block; font-size: 0.8rem; font-weight: 550; margin-bottom: 0.25rem; color: #e5e7eb; }

input, textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(214, 226, 238, 0.22);
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #f9fafb;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input::placeholder, textarea::placeholder { color: rgba(214, 226, 238, 0.55); }

input:focus, textarea:focus {
  border-color: rgba(117, 166, 208, 0.70);
  box-shadow: 0 0 0 1px rgba(117, 166, 208, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

textarea { min-height: 90px; resize: vertical; }

.form-helper { font-size: 0.78rem; color: #cbd5f5; margin-top: 0.45rem; }

/* Honeypot */
.honeypot {
  position: absolute; left: -9999px; opacity: 0; visibility: hidden;
  height: 0; width: 0; overflow: hidden;
}

/* MODAL DÉTAIL */

.detail-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 14px 32px rgba(16, 20, 47, 0.22);
  max-height: 80vh;
  overflow-y: auto;
}

.detail-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-alt);
  margin-bottom: 0.35rem;
}

.detail-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.detail-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.detail-body p { margin: 0 0 0.7rem; }
.detail-body ul { margin: 0.2rem 0 0.6rem 1.1rem; padding: 0; }
.detail-body li { margin-bottom: 0.25rem; }

/* CTA FINAL */

.cta-final { padding: 2.4rem 0 2.8rem; }

.cta-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.8rem 1.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-strong);
}

.cta-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.cta-text { font-size: 0.9rem; color: var(--text-muted); max-width: 32rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* FOOTER */

.site-footer{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
  border-top: 1px solid var(--border-subtle);
  padding: 1.1rem 0;
}

.site-footer .footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-side { order: -1; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 1rem;
    left: 1rem;
    padding: 0.9rem 1.1rem 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 28px rgba(13, 28, 68, 0.14);
    flex-direction: column;
    gap: 0.75rem;
    display: none;
    z-index: 55;
  }

  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; justify-content: center; }

  .hero { padding-top: 2.3rem; }
  .why-grid, .service-grid, .form-row { grid-template-columns: minmax(0, 1fr); }
  .cta-card { padding: 1.4rem 1.3rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
