/* ==========================================================================
   EURNEO — charte : Horizon Blue #153F66, Graphite #23272A, Obsidian #0F1318,
   Steel Grey #B6B8BC, Slate Mist #7B7C86. Typographie : Lato.
   ========================================================================== */

:root {
  --horizon: #153F66;
  --graphite: #23272A;
  --obsidian: #0F1318;
  --steel: #B6B8BC;
  --mist: #7B7C86;
  --paper: #F7F7F5;
  --white: #FFFFFF;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typographie ---------- */

h1 {
  font-weight: 300;
  font-size: clamp(2.625rem, 6.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 em { font-style: normal; font-weight: 700; }

h2 {
  font-weight: 300;
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--graphite);
  margin-bottom: 1.5rem;
}

h2 strong { font-weight: 700; }

h3 {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--horizon);
  margin-bottom: 0.875rem;
}

p + p { margin-top: 1.25rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.75rem;
}

.eyebrow-light { color: var(--steel); }

a { color: inherit; }

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

.hero :focus-visible, .mission :focus-visible, .contact :focus-visible,
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--steel); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
}

.header-logo img { width: 150px; height: auto; }

.header-right { display: flex; align-items: center; gap: 2.25rem; }

.header-nav { display: flex; gap: 2.25rem; }

.header-nav a, .lang-switch a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.25s ease;
}

.header-nav a:hover, .lang-switch a:hover { color: var(--white); }

.lang-switch {
  border-left: 1px solid rgba(182, 184, 188, 0.35);
  padding-left: 1.5rem;
}

.lang-switch .lang-current { color: var(--white); font-weight: 700; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--obsidian) 0%, #122C47 62%, var(--horizon) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 6rem;
  width: 100%;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-sub {
  max-width: 32rem;
  margin-top: 2rem;
  color: var(--steel);
  font-size: 1.0625rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  margin-top: 3rem;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(182, 184, 188, 0.5);
  color: var(--white);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}

.hero-cta:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--steel); }
.hero-cta:active { transform: translateY(1px); }

/* Cascade d'entrée du texte */
.hero-copy > * { opacity: 0; transform: translateY(22px); animation: fadeUp 0.9s var(--ease-out) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.4s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* Le monogramme E : entrée en cascade puis dérive perpétuelle */
.hero-mark { justify-self: end; width: clamp(220px, 30vw, 420px); }

.hero-mark svg { width: 100%; overflow: visible; }

.mark-enter { opacity: 0; transform: translateX(70px); animation: markIn 1.1s var(--ease-out) forwards; }
.me-1 { animation-delay: 0.35s; }
.me-2 { animation-delay: 0.5s; }
.me-3 { animation-delay: 0.65s; }

@keyframes markIn {
  to { opacity: 1; transform: none; }
}

.mark-float { animation: markFloat 6s ease-in-out infinite alternate; }
.mf-1 { animation-duration: 5.2s; }
.mf-2 { animation-duration: 7.4s; animation-delay: -2.1s; }
.mf-3 { animation-duration: 6.3s; animation-delay: -3.7s; }

@keyframes markFloat {
  from { transform: translate(0, 0); }
  to   { transform: translate(-10px, 6px); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }

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

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section-inner + .section-inner { margin-top: clamp(3.5rem, 7vw, 6rem); }

.grid-2 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- À propos : verbes et repères ---------- */

.verb-list {
  list-style: none;
  margin-top: 1.75rem;
  border-top: 1px solid var(--steel);
}

.verb-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--steel);
  font-size: 0.9375rem;
  color: var(--mist);
}

.verb-list strong {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--horizon);
  margin-right: 0.5rem;
}

.keyfacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  background: var(--white);
  border: 1px solid var(--steel);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.keyfact-title {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--horizon);
  margin-bottom: 0.5rem;
}

.keyfact-text { display: block; font-size: 0.9375rem; color: var(--mist); }

/* ---------- Mission ---------- */

.mission {
  background: var(--horizon);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.mission-text {
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 50rem;
}

/* ---------- Secteurs ---------- */

.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.activity-marker {
  display: block;
  width: 2.75rem;
  height: auto;
  margin-bottom: 1.5rem;
  fill: var(--horizon);
  transition: transform 0.35s var(--ease-out);
}

.activity:hover .activity-marker { transform: translateX(8px); }

.activity p { font-size: 0.9375rem; color: var(--mist); }

/* ---------- Processus ---------- */

#process h2 { max-width: 40rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step {
  border-top: 1px solid var(--steel);
  padding-top: 1.5rem;
}

.step-num {
  display: block;
  font-size: 1.875rem;
  font-weight: 300;
  color: var(--steel);
  line-height: 1;
  margin-bottom: 1rem;
}

.step p { font-size: 0.9375rem; color: var(--mist); }

/* ---------- Contact ---------- */

.contact {
  background: linear-gradient(200deg, var(--graphite) 0%, var(--obsidian) 100%);
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact h2 { color: var(--white); }

.contact-sub { color: var(--steel); font-weight: 300; max-width: 26rem; }

/* Formulaire */

.contact-form { display: grid; gap: 1.375rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.375rem; }

.form-field { display: grid; gap: 0.5rem; }

.form-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(182, 184, 188, 0.35);
  padding: 0.875rem 1rem;
  border-radius: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--mist); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--steel);
  background: rgba(255, 255, 255, 0.08);
}

.form-field textarea { resize: vertical; min-height: 9rem; }

.form-submit {
  justify-self: start;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--white);
  border: 1px solid var(--white);
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}

.form-submit:hover { background: transparent; color: var(--white); }
.form-submit:active { transform: translateY(1px); }

/* Piège à robots : champ invisible pour les humains */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-notice {
  display: none;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  border: 1px solid var(--steel);
  color: var(--white);
}

.form-notice.is-shown { display: block; }
.form-notice.notice-ok { border-color: rgba(182, 184, 188, 0.6); background: rgba(255, 255, 255, 0.06); }
.form-notice.notice-error { border-color: rgba(255, 160, 160, 0.6); background: rgba(120, 40, 40, 0.25); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--obsidian);
  color: var(--mist);
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-baseline { max-width: 34rem; font-weight: 300; }

.footer-legal { display: flex; flex-direction: column; gap: 0.375rem; text-align: right; }

.footer-legal a { color: var(--steel); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

.footer-copy { margin-top: 0.25rem; font-size: 0.8125rem; }

/* ---------- Pages légales ---------- */

.legal-page { background: var(--paper); }

/* Header commun, version opaque pour les pages intérieures */
.site-header--page { position: static; background: var(--obsidian); }

.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 4.5rem clamp(1.5rem, 5vw, 4rem) 6rem;
}

.legal-main h1 {
  color: var(--graphite);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 3rem;
}

.legal-main h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 2.5rem 0 0.75rem;
}

.legal-main p, .legal-main li { font-size: 0.9375rem; color: var(--mist); }

.legal-main ul { padding-left: 1.25rem; }

.legal-main a { color: var(--horizon); }

/* ---------- Apparition au défilement ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Cascade dans les grilles */
.activities > *:nth-child(2), .steps > *:nth-child(2), .keyfacts > *:nth-child(2) { transition-delay: 0.12s; }
.activities > *:nth-child(3), .steps > *:nth-child(3), .keyfacts > *:nth-child(3) { transition-delay: 0.24s; }
.steps > *:nth-child(4) { transition-delay: 0.36s; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .mark-enter { animation: none; opacity: 1; transform: none; }
  .mark-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-2, .activities, .keyfacts, .steps, .contact-grid, .form-row { grid-template-columns: 1fr; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { justify-self: center; width: clamp(180px, 45vw, 300px); order: -1; margin-top: 2rem; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-legal { text-align: left; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 1.25rem; padding-top: 1.5rem; }
  .header-right { flex-direction: column; gap: 1rem; }
  .header-nav { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
  .lang-switch { border-left: none; padding-left: 0; }
  .hero-inner { padding-top: 13rem; }
}
