/* ============================================
   PYXISLABS — Production CSS (Stitch V2)
   Static, no framework, no CDN dependency.
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Marque officielle */
  --color-black: #000000;
  --color-navy: #14213D;
  --color-orange: #FCA311;
  --color-neutral: #E5E5E5;
  --color-white: #FFFFFF;

  /* Variations navy approuvées (hiérarchie des fonds sombres) */
  --color-ink: #060B18;
  --color-deep: #0B1229;

  /* Neutres dérivés */
  --bg-soft: #F8F9FB;

  /* Sémantique */
  --bg-primary: var(--color-white);
  --text-primary: var(--color-navy);
  --text-on-dark: var(--color-white);
  --text-on-dark-muted: rgba(173, 198, 255, 0.75);
  --text-muted: #5B6575;
  --border: var(--color-neutral);
  --border-dark: rgba(255, 255, 255, 0.10);
  --accent: var(--color-orange);
  --accent-hover: #E5920A;
  --accent-ink: #B57406;
  --focus-ring: var(--color-orange);

  /* Typographie : Inter UI/corps, Space Grotesk display/titres */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Échelle Stitch V2 (valeurs fixes + paliers) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-hero: clamp(2rem, 1.4rem + 3vw, 3.25rem);

  /* Espacement */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Rayons sobres */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* Ombres sobres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;

  /* Z-index */
  --z-dropdown: 100;
  --z-fixed: 300;
  --z-modal: 400;

  /* Mise en page */
  --container-max: 1240px;
  --container-padding: var(--space-6);
  --header-height: 74px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(252, 163, 17, 0.25);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: var(--z-modal);
  padding: var(--space-2) var(--space-4);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-24) 0;
}

.section--white {
  background: var(--bg-primary);
}

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

.section--bordered {
  border-bottom: 1px solid var(--border);
}

.section--deep {
  background: var(--color-deep);
  color: var(--text-on-dark);
}

.eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

@media (min-width: 640px) {
  .section-title {
    font-size: var(--text-4xl);
  }
}

.section-title--light {
  color: var(--text-on-dark);
}

.section-lead {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  opacity: 0.9;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 760px;
}

.section-desc--light {
  color: var(--text-on-dark-muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-16);
}

.body-text {
  font-size: var(--text-base);
  line-height: 1.625;
  color: var(--text-muted);
}

.body-text p + p {
  margin-top: var(--space-6);
}

.body-text strong {
  color: var(--text-primary);
}

/* Split 2 colonnes (positionnement, contact) */
.split {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-16);
    align-items: start;
  }
  .split__intro {
    grid-column: span 6;
  }
  .split__body,
  .split__form {
    grid-column: span 6;
  }
  #contact .split__intro {
    grid-column: span 5;
  }
  #contact .split__form {
    grid-column: span 7;
  }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--accent {
  background: var(--accent);
  color: var(--color-navy);
}

.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-black);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn--outline:hover {
  background: var(--bg-soft);
  border-color: var(--text-primary);
}

.btn--ghost-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost-light:hover {
  border-color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.05);
}

.btn--nav {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  line-height: 1.35;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
}

.btn--nav:hover {
  background: var(--color-black);
}

.btn--full {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.brand__logo {
  height: 27px;
  width: auto;
}

.brand__slogan {
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2px;
  margin-left: 2px;
}

.header__actions {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .header__actions {
    display: flex;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__divider {
  width: 1px;
  height: var(--space-4);
  background: var(--border);
  flex-shrink: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.nav__link:hover {
  color: var(--accent);
}

.nav__dropdown-wrap {
  position: relative;
}

.nav__dropdown-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav__dropdown-toggle[aria-expanded="true"] .nav__dropdown-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav__dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + var(--space-2));
  width: 16rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    visibility var(--duration-fast);
  z-index: var(--z-dropdown);
}

.nav__dropdown-toggle[aria-expanded="true"] + .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}

.nav__dropdown-link:hover {
  background: var(--bg-soft);
}

.nav__dropdown-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.nav__dropdown-sub {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Sélecteur de langue */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.lang-switch__btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.lang-switch__btn.is-active {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.lang-switch__btn:not(.is-active):hover {
  color: var(--text-primary);
}

.lang-switch__sep {
  color: #8C909F;
  font-size: 10px;
  padding: 0 2px;
}

/* Bouton mobile : masqué par défaut, affiché sous 900px uniquement.
   La règle d'affichage est placée APRÈS la règle de base pour
   gagner en cascade à spécificité égale. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  color: var(--text-primary);
  border-radius: var(--radius-md);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
  }
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Tiroir mobile */
.drawer {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) var(--space-6) var(--space-6);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
}

.drawer__link--sub {
  padding-left: var(--space-2);
  border-left: 2px solid var(--accent);
  font-size: var(--text-sm);
}

.drawer__link--sub + .drawer__link--sub {
  border-left-color: var(--color-navy);
}

.drawer__lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.drawer__lang-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.drawer__lang-btns {
  display: flex;
  gap: var(--space-1);
}

.drawer__lang-btn {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-muted);
}

.drawer__lang-btn.is-active {
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-ink);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .hero {
    padding-bottom: 8rem;
  }
}

.hero__constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* Mobile : cadrage volontaire sur le lodestar + trajectoires.
   La boîte SVG est élargie et ancrée à droite : le point focal
   (x=1060/1440) reste visible, le quadrant bas-gauche (vide)
   sort du cadre au lieu d'être écrasé par un zoom global. */
@media (max-width: 767px) {
  .hero__constellation {
    left: auto;
    right: 0;
    width: 1100px;
    max-width: none;
  }
  .hero__constellation .constellation-base {
    opacity: 0.16;
  }
}

/* Tablette : léger recentrage vers le point focal */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__constellation {
    left: auto;
    right: 0;
    width: 1300px;
    max-width: none;
  }
}

.lodestar-beacon {
  animation: lodestar-pulse 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes lodestar-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
  /* 920px de mesure texte + gouttières du container (Stitch : bloc interne sans padding) */
  max-width: calc(920px + var(--container-padding) * 2);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 14px;
  margin-bottom: var(--space-8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__badge-text {
  font-size: var(--text-xs);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--text-on-dark);
  margin-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  .hero__title {
    min-height: 130px;
  }
}

.hero__desc {
  font-size: var(--text-base);
  line-height: 1.625;
  color: rgba(173, 198, 255, 0.85);
  max-width: 760px;
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .hero__desc {
    font-size: var(--text-lg);
  }
}

@media (min-width: 1024px) {
  .hero__desc {
    font-size: 1.1875rem;
  }
}

@media (min-width: 1024px) {
  .hero__desc {
    min-height: 80px;
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.hero__cta .btn {
  padding: 12px var(--space-6);
}

.solution-card__cta .btn {
  padding: var(--space-3) var(--space-5);
}

.form .btn--full {
  padding: 14px var(--space-6);
}

/* ---------- Solutions ---------- */
.cards-2 {
  display: grid;
  gap: var(--space-8);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.solution-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-top-width: 4px;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--duration-base) var(--ease-out);
}

@media (min-width: 640px) {
  .solution-card {
    padding: var(--space-10);
  }
}

.solution-card--polaris {
  border-top-color: var(--accent);
}

.solution-card--polaris:hover {
  border-color: rgba(252, 163, 17, 0.55);
  border-top-color: var(--accent);
}

.solution-card--digifact {
  border-top-color: var(--color-navy);
}

.solution-card--digifact:hover {
  border-color: rgba(20, 33, 61, 0.4);
  border-top-color: var(--color-navy);
}

.solution-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Écrans étroits : empilement volontaire badge / segment */
@media (max-width: 480px) {
  .solution-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

.solution-card__segment {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.solution-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

@media (min-width: 640px) {
  .solution-card__title {
    font-size: var(--text-3xl);
  }
}

.solution-card__tagline {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: var(--space-4);
}

.solution-card__tagline--navy {
  color: var(--text-primary);
}

.solution-card__desc {
  font-size: var(--text-sm);
  line-height: 1.625;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  min-height: 72px;
}

/* Pastilles */
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.pill--orange {
  background: rgba(252, 163, 17, 0.15);
  color: var(--accent-ink);
  border-color: rgba(252, 163, 17, 0.3);
}

.pill--navy {
  background: rgba(20, 33, 61, 0.08);
  color: var(--color-navy);
  border-color: rgba(20, 33, 61, 0.2);
}

/* Checklists */
.checklist {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--text-primary);
}

.checklist svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- Expertise ---------- */
.pillars {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar {
  padding: var(--space-6) 0 var(--space-8);
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  transition: border-color var(--duration-base) var(--ease-out);
}

.pillar:hover {
  border-top-color: var(--color-navy);
}

.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(20, 33, 61, 0.22);
  margin-bottom: var(--space-6);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.pillar__desc {
  font-size: var(--text-sm);
  line-height: 1.625;
  color: var(--text-muted);
}

/* ---------- Principes d'ingénierie ---------- */
.principles {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-base) var(--ease-out);
}

.principle:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.principle__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
}

.principle__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.principle__desc {
  font-size: var(--text-sm);
  line-height: 1.625;
  color: var(--text-on-dark-muted);
}

/* ---------- Philosophie ---------- */
.philosophy {
  max-width: 840px;
  border-left: 4px solid var(--accent);
  padding-left: var(--space-8);
}

.philosophy__quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .philosophy__quote {
    font-size: var(--text-3xl);
  }
}

.philosophy .body-text {
  font-size: var(--text-lg);
}

/* ---------- Contact ---------- */
.contact-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.contact-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-point__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(20, 33, 61, 0.05);
  color: var(--text-primary);
  flex-shrink: 0;
}

.contact-point__icon svg {
  width: 16px;
  height: 16px;
}

.contact-point__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-point__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.contact-point__value--link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.contact-point__value--link:hover {
  color: var(--accent);
}

.ext-icon {
  width: 14px;
  height: 14px;
}

/* Formulaire */
.form {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

@media (min-width: 640px) {
  .form {
    padding: var(--space-10);
  }
}

.form__row {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form__group {
  margin-bottom: var(--space-5);
}

.form__row .form__group {
  margin-bottom: 0;
}

.form__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form__input {
  width: 100%;
  padding: 10px var(--space-4);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.form__input::placeholder {
  color: var(--text-muted);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6575' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form__textarea {
  resize: vertical;
  min-height: 110px;
}

.form__helper {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-ink);
  color: var(--text-on-dark);
  padding: var(--space-20) 0 var(--space-12);
  border-top: 1px solid var(--border-dark);
}

.footer__grid {
  display: grid;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 4fr 2fr 3fr 3fr;
  }
}

.footer__logo {
  height: 24px;
  width: auto;
  margin-bottom: var(--space-2);
}

.footer__slogan {
  font-size: var(--text-xs);
  line-height: 1.35;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.footer__heading {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.35;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--text-xs);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
}

.footer__presence {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
}

.footer__presence .footer__email {
  margin-top: var(--space-2);
}

.footer__presence .footer__social {
  margin-top: var(--space-1);
}

.footer__list a:hover {
  color: var(--text-on-dark);
}

.footer__link-strong {
  color: var(--text-on-dark);
}

.footer__link-strong:hover {
  color: var(--accent);
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.footer__linkedin svg {
  width: 14px;
  height: 14px;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__bottom span:last-child {
  letter-spacing: 0.05em;
}

/* ---------- Retour en haut ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--duration-base) var(--ease-out),
    visibility var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  z-index: var(--z-fixed);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--color-navy);
}

/* ---------- Révélation au défilement ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.pillars .pillar:nth-child(2) { transition-delay: 0.08s; }
.pillars .pillar:nth-child(3) { transition-delay: 0.16s; }
.pillars .pillar:nth-child(4) { transition-delay: 0.24s; }
.principles .principle:nth-child(2) { transition-delay: 0.06s; }
.principles .principle:nth-child(3) { transition-delay: 0.12s; }
.principles .principle:nth-child(4) { transition-delay: 0.08s; }
.principles .principle:nth-child(5) { transition-delay: 0.14s; }
.principles .principle:nth-child(6) { transition-delay: 0.2s; }
.cards-2 .solution-card:nth-child(2) { transition-delay: 0.1s; }
.contact-points .contact-point:nth-child(2) { transition-delay: 0.08s; }
.contact-points .contact-point:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lodestar-beacon {
    animation: none;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Impression ---------- */
@media print {
  .header,
  .back-to-top,
  .hero__cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero {
    padding: 2rem 0;
  }

  .section {
    padding: 1.5rem 0;
  }
}
