/* ==========================================================================
   Volune — refonte « Signal technique »
   Palette : #084051 (pétrole) · #5D7582 (ardoise) · #80A0B0 (bleu-gris) · #EDEDED
   ========================================================================== */

:root {
  --deep: #084051;
  --slate: #5D7582;
  --soft: #80A0B0;
  --grey: #EDEDED;
  --night: #062B36;
  --night-2: #04222B;
  --line-dark: #0F4A5C;
  --line-dark-2: #2A5F70;
  --line-light: #C6D2D8;
  --line-lighter: #DDE4E8;
  --paper: #F4F6F7;
  --ink: #133440;
  --ink-inverse: #E8EFF2;
  --muted-dark: #9FB8C3;
  --sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--night);
  color: var(--ink-inverse);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* --- Animations ------------------------------------------------------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes glow-drift { from { transform: translate(0, 0); } to { transform: translate(-150px, 70px); } }
@keyframes float-a {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.5; }
  80% { opacity: 0.3; }
  100% { transform: translate(36px, -110vh); opacity: 0; }
}
@keyframes float-b {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.4; }
  80% { opacity: 0.25; }
  100% { transform: translate(-48px, -110vh); opacity: 0; }
}

.hero-in { animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hd-1 { animation-delay: 0.05s; }
.hd-2 { animation-delay: 0.15s; }
.hd-3 { animation-delay: 0.28s; }
.hd-4 { animation-delay: 0.4s; }
.card-in { animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; }

/* Révélation au défilement : .rv démarre masqué, .in (posé par main.js) révèle.
   Sans JavaScript, la classe no-js n'est jamais retirée et tout reste visible. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }

.lift { transition: transform 0.2s ease, border-color 0.2s ease; }
.lift:hover { transform: translateY(-3px); border-color: var(--soft); }

.btn { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(4, 34, 43, 0.35); }

/* --- Halo souris ------------------------------------------------------- */

#cursor-halo {
  position: fixed;
  left: -190px;
  top: -190px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 160, 176, 0.13) 0%, rgba(128, 160, 176, 0) 60%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.4s ease;
  z-index: 60;
}
@media (pointer: coarse) { #cursor-halo { display: none; } }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 80px;
  background: var(--night);
  border-bottom: 1px solid var(--line-dark);
}
.header-logo img { display: block; width: 124px; height: 62px; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 40px; }
.header-nav a { font-size: 15px; font-weight: 500; color: var(--muted-dark); transition: color 0.15s ease; }
.header-nav a:hover { color: var(--ink-inverse); }
.header-nav a.btn-accent { color: var(--night); }
.burger { display: none; }

/* --- Boutons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn-accent { background: var(--soft); color: var(--night); font-weight: 700; }
.btn-ghost { border: 1px solid var(--line-dark-2); color: var(--ink-inverse); font-weight: 600; }
.btn-primary { background: var(--deep); color: #FFFFFF; font-weight: 600; min-height: 52px; padding: 0 40px; font-size: 16px; }

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

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 80px;
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
}
.hero-copy { flex: 1; display: flex; flex-direction: column; gap: 32px; max-width: 760px; }
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--muted-dark); max-width: 600px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; }
.hero-ctas .btn { min-height: 56px; padding: 0 36px; font-size: 16px; }

.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.p { position: absolute; bottom: -10px; border-radius: 50%; background: var(--soft); opacity: 0; }
.pa { animation: float-a linear infinite; }
.pb { animation: float-b linear infinite; }

.hero-glow {
  position: absolute;
  top: -220px;
  right: -140px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 160, 176, 0.16) 0%, rgba(128, 160, 176, 0) 65%);
  animation: glow-drift 14s ease-in-out infinite alternate;
}

/* Visuel du hero : écrans en fil de fer, intérieur animé */
.hero-visual { width: 500px; flex-shrink: 0; }
.hero-visual svg { display: block; width: 100%; height: auto; }

.sv { opacity: 0; transform-box: fill-box; animation: sv-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.sv1 { animation-delay: 0.9s; }
.sv2 { animation-delay: 1.7s; }
.sv3 { animation-delay: 1.9s; }
.sv4 { animation-delay: 2.1s; }
.sv5 { animation-delay: 2.5s; }
.sv6 { animation-delay: 2.7s; }
.sv7 { animation-delay: 3s; }
@keyframes sv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.grow { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; animation: grow-x 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.g1 { animation-delay: 1.1s; }
.g2 { animation-delay: 1.3s; }
.g3 { animation-delay: 1.5s; }
.g4 { animation-delay: 1.7s; }
@keyframes grow-x { to { transform: scaleX(1); } }

.caret { opacity: 0; animation: caret-blink 1.1s steps(1) 2.2s infinite; }
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.pulse-soft { animation-name: sv-in, soft-breathe; animation-duration: 0.6s, 3.6s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1), ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
.sv2.pulse-soft { animation-delay: 1.7s, 2.6s; }
.sv7.pulse-soft { animation-delay: 3s, 4s; }
@keyframes soft-breathe { 0%, 100% { fill-opacity: 0.5; } 50% { fill-opacity: 0.95; } }

.hl-a rect:first-child, .hl-b rect:first-child { animation: hl-cycle 6s ease-in-out infinite; }
.hl-b rect:first-child { animation-delay: 3s; }
@keyframes hl-cycle { 0%, 45%, 100% { stroke: #0F4A5C; } 12%, 30% { stroke: #80A0B0; } }

/* Cartouche de document (formulaire) */
.fiche-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-light);
}
.fiche-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.fiche-fig { font-family: var(--mono); font-size: 11px; color: var(--soft); }
/* --- Sections ------------------------------------------------------------ */

.section-inner { max-width: 1440px; margin: 0 auto; padding: 96px 80px; }
.section-light { background: var(--grey); color: var(--ink); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-dark { background: var(--night); color: var(--ink-inverse); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-label { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 13px; color: var(--slate); }
.section-label .num { color: var(--slate); }
.section-label .rule { width: 40px; height: 1px; background: var(--soft); }
.section-label span:last-child { letter-spacing: 0.12em; text-transform: uppercase; }
.section-head h2, .section-dark h2, .contact-intro h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.01em; }
.section-sub { font-size: 17px; line-height: 1.6; color: var(--slate); max-width: 680px; }

/* --- Expertises ------------------------------------------------------------ */

.expertise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line-light);
}
.expertise:last-child { border-bottom: 1px solid var(--line-light); }
.expertise-title { display: flex; flex-direction: column; gap: 10px; }
.expertise-title h3 { font-size: 26px; font-weight: 600; }
.tags { font-family: var(--mono); font-size: 12px; color: var(--soft); }
.expertise-desc { font-size: 15px; line-height: 1.65; color: var(--slate); }
.expertise-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.expertise-list li { display: flex; gap: 12px; align-items: baseline; }
.expertise-list .idx { font-family: var(--mono); font-size: 11px; color: var(--soft); }

/* --- Méthode ------------------------------------------------------------ */

.phases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 2px solid var(--line-light);
  padding-top: 28px;
}
.dot { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; }
.dot-deep { background: var(--deep); }
.dot-mid { background: var(--slate); }
.dot-soft { background: var(--soft); }
.phase-num { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.phase h3 { font-size: 19px; font-weight: 600; }
.phase p:last-child { font-size: 14px; line-height: 1.6; color: var(--slate); }

/* --- Équipe ------------------------------------------------------------ */

.section-dark .section-label, .section-dark .section-label .num { color: var(--soft); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.team-item { display: flex; gap: 32px; padding: 40px; border: 1px solid var(--line-dark); align-items: flex-start; }
.team-num { font-family: var(--mono); font-size: 72px; font-weight: 500; line-height: 1; color: var(--soft); }
.team-item > div { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.team-item h3 { font-size: 22px; font-weight: 600; }
.team-item p { font-size: 15px; line-height: 1.65; color: var(--muted-dark); }
.team-note { display: flex; align-items: center; gap: 20px; margin-top: 40px; font-size: 15px; color: var(--muted-dark); }
.team-note::before { content: ''; width: 40px; height: 1px; background: var(--line-dark-2); flex-shrink: 0; }

/* --- Engagements ------------------------------------------------------------ */

.section-dark h2 { max-width: 760px; }
.pledges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.pledge { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line-dark); }
.pledge h3 { font-size: 20px; font-weight: 600; }
.pledge p:last-child { font-size: 14px; line-height: 1.65; color: var(--muted-dark); }

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

.contact-grid { display: flex; gap: 72px; }
.contact-intro { width: 520px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-details { margin-top: 16px; }
.contact-details div {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line-light);
}
.contact-details div:last-child { border-bottom: 1px solid var(--line-light); }
.contact-details dt { width: 90px; flex-shrink: 0; font-family: var(--mono); font-size: 12px; color: var(--slate); padding-top: 2px; }
.contact-details dd { font-size: 15px; font-weight: 500; }
.contact-details a:hover { color: var(--slate); }

.form-card { flex: 1; background: #FFFFFF; border: 1px solid var(--line-light); align-self: flex-start; }
.form-card form { display: flex; flex-direction: column; gap: 22px; padding: 32px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.field input, .field textarea {
  padding: 0 16px;
  height: 48px;
  border: 1px solid var(--line-light);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.field textarea { height: 140px; padding: 14px 16px; resize: none; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--soft); outline-offset: -1px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--slate); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 6px; }
.form-hint { font-size: 12px; color: var(--soft); }

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 80px;
  background: var(--night-2);
  color: var(--slate);
  font-size: 13px;
}
.footer-id { display: flex; align-items: center; gap: 20px; }
.footer-id img { display: block; width: 88px; height: 44px; object-fit: contain; }
.footer-links { display: flex; gap: 24px; }
.site-footer a:hover { color: var(--muted-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .hero-inner { flex-direction: column; align-items: stretch; gap: 48px; min-height: 0; }
  .hero-visual { width: 100%; max-width: 520px; }
  .expertise { grid-template-columns: 1fr; gap: 16px; padding: 28px 0 32px; }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pledges { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .contact-grid { flex-direction: column; gap: 40px; }
  .contact-intro { width: auto; }
}

@media (max-width: 720px) {
  .site-header { padding: 12px 20px; }
  .header-logo img { width: 96px; height: 48px; }
  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid var(--line-dark-2);
    color: var(--ink-inverse);
    cursor: pointer;
  }
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--night);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 20px 20px;
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 14px 0; font-size: 16px; }
  .header-nav a.btn-accent { margin-top: 8px; justify-content: center; }

  .hero-inner { padding: 48px 20px 56px; gap: 22px; }
  .hero-copy { gap: 22px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { min-height: 54px; }
  .hero-glow { top: -160px; right: -120px; width: 460px; height: 460px; }
  .hero-visual { margin-top: 8px; }
  .fiche-head { padding: 14px 18px; }

  .section-inner { padding: 56px 20px; }
  .section-head { margin-bottom: 32px; }
  .phases { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .phase { flex-direction: column; border-top: 1px solid var(--line-light); padding: 22px 0 22px 30px; }
  .phase:last-child { border-bottom: 1px solid var(--line-light); }
  .dot { top: 27px; }
  .pledge { padding: 24px; }
  .team-item { padding: 24px; gap: 22px; }
  .team-num { font-size: 52px; }
  .form-card form { padding: 20px; gap: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .form-foot .btn { width: 100%; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 20px; }
}

/* --- Accessibilité : réduction des animations --------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in, .card-in, .hero-glow, .pa, .pb { animation: none; }
  .sv, .grow, .caret, .pulse-soft, .hl-a rect:first-child, .hl-b rect:first-child { animation: none; }
  .sv, .pulse-soft { opacity: 1; }
  .grow { transform: none; }
  .caret { opacity: 0; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn:hover, .lift:hover { transform: none; }
  #cursor-halo { display: none; }
}
