/* ============================================================
   HANSSEN MACHINE TOOLS — Site vitrine
   Design system + styles
   ============================================================ */

:root {
  --c-bg:        #ffffff;
  --c-bg-alt:    #f4f6f8;
  --c-dark:      #0d1b2a;
  --c-dark-2:    #10233a;
  --c-ink:       #1a2230;
  --c-muted:     #5c6b7a;
  --c-line:      #e2e8ee;

  --c-accent:    #006d88;   /* bleu pétrole — identité Hanssen */
  --c-accent-2:  #0a90b3;   /* pétrole clair (dégradés) */
  --c-blue:      #0170b9;   /* bleu vif — liens & accents */
  --c-steel:     #3a6ea5;   /* bleu acier */

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 18px 45px -20px rgba(13,27,42,.35);
  --shadow-soft: 0 10px 30px -18px rgba(13,27,42,.28);

  --ff-head: 'Barlow Condensed', 'Inter', sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--ff-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typo helpers ---------- */
.section { padding: 96px 0; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }

.section-eyebrow {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--c-dark);
}

.section-dark .section-title { color: #fff; }

.section-sub {
  margin-top: 18px;
  color: var(--c-muted);
  font-size: 1.06rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(0,109,136,.7);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(0,109,136,.75); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: #fff; color: var(--c-dark); border-color: #fff; }

.btn-block { width: 100%; margin-top: 6px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(13,27,42,.0);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -12px rgba(13,27,42,.4);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; gap: 12px; color: #fff; transition: color .3s; }
.scrolled .logo { color: var(--c-dark); }

.logo-mark-img {
  height: 46px;
  width: auto;
  transition: height .3s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.logo-wordmark {
  height: 26px;
  width: auto;
  transition: height .3s ease, filter .3s ease;
  /* header transparent sur fond sombre → mot-symbole noir inversé en blanc */
  filter: invert(1);
}
.scrolled .logo-mark-img { height: 40px; filter: none; }
.scrolled .logo-wordmark { height: 23px; filter: none; }

.logo-mark { color: var(--c-accent); display: flex; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  letter-spacing: .16em;
  font-weight: 700;
}
.logo-text em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .8;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: .96rem;
  position: relative;
  transition: color .25s;
}
.scrolled .main-nav a { color: var(--c-ink); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width .25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.main-nav a:not(.nav-cta):hover { color: var(--c-accent); }

.nav-cta {
  background: var(--c-accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-family: var(--ff-head);
  letter-spacing: .05em;
  font-weight: 600;
  transition: transform .2s, background .25s;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--c-accent-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: .3s;
}
.scrolled .nav-toggle span { background: var(--c-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(13,27,42,.94) 0%, rgba(13,27,42,.8) 42%, rgba(10,21,33,.6) 100%),
    radial-gradient(circle at 82% 35%, rgba(0,109,136,.28), transparent 50%),
    url("../images/tubes-industrie.jpg"),
    linear-gradient(160deg, #10233a, #0a1521);
  background-size: cover, cover, cover, cover;
  background-position: center, center, right center, center;
  z-index: 0;
}
/* Anneaux "tube" décoratifs */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.06);
}
.hero-bg::before {
  width: 620px; height: 620px;
  right: -180px; top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 60px rgba(0,109,136,.06);
}
.hero-bg::after {
  width: 360px; height: 360px;
  right: -50px; top: 50%;
  transform: translateY(-50%);
  border-color: rgba(0,109,136,.25);
}

.hero-inner { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-content { max-width: 720px; }

.hero-eyebrow {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .9rem;
  color: var(--c-accent-2);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: .01em;
  margin-bottom: 24px;
}
.hero-title span { color: var(--c-accent-2); }

.hero-lead {
  font-size: 1.18rem;
  max-width: 560px;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; top: 8px; }
  40% { opacity: 1; }
  100% { opacity: 0; top: 24px; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--c-dark-2);
  color: #fff;
  padding: 60px 0;
  position: relative;
  z-index: 3;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat { padding: 14px; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  height: 54px; width: 1px;
  background: rgba(255,255,255,.14);
}
.stat-num {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--c-accent-2);
}
.stat-label {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--c-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured {
  background: linear-gradient(160deg, var(--c-dark), var(--c-dark-2));
  color: #fff;
  border-color: transparent;
}
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: rgba(255,255,255,.78); }

.service-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,109,136,.1);
  color: var(--c-accent);
  margin-bottom: 24px;
}
.featured .service-icon { background: rgba(255,255,255,.1); color: var(--c-accent-2); }

.service-card h3 {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 12px;
}
.service-card p { color: var(--c-muted); margin-bottom: 20px; }

.link-arrow {
  font-family: var(--ff-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .9rem;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s;
}
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover { gap: 10px; }
.featured .link-arrow { color: var(--c-accent-2); }

/* ============================================================
   SPECIALITES
   ============================================================ */
.section-dark { background: linear-gradient(165deg, var(--c-dark), #0a1521); color: #fff; }

.specialties-list {
  display: grid;
  gap: 26px;
  max-width: 1000px;
  margin: 0 auto;
}
.specialty {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  transition: background .3s, transform .3s, border-color .3s, box-shadow .3s;
}
.specialty:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(0,109,136,.55);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.specialty.reverse .specialty-media { order: 2; }

.specialty-media { position: relative; overflow: hidden; min-height: 220px; background: #0a1521; }
.specialty-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.specialty:hover .specialty-media img { transform: scale(1.06); }
.specialty-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 70%, rgba(13,27,42,.5));
}

.specialty-body { padding: 36px 40px; align-self: center; }
.specialty-index {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .1em;
  color: #fff;
  background: var(--c-accent);
  padding: 3px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.specialty-body h3 {
  font-family: var(--ff-head);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.specialty-body p { color: rgba(255,255,255,.78); }

/* ============================================================
   TUBES
   ============================================================ */
.tubes { background: var(--c-bg-alt); }
.tubes-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.tubes-text .section-title { text-align: left; }
.tubes-text > p { color: var(--c-muted); margin: 18px 0 24px; font-size: 1.08rem; }

.tubes-features { display: grid; gap: 14px; margin-bottom: 32px; }
.tubes-features li {
  position: relative;
  padding-left: 34px;
  color: var(--c-ink);
}
.tubes-features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

/* Visuel photo tubes */
.tubes-visual {
  position: relative;
}
.tubes-visual > img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.tube-badge {
  position: absolute;
  bottom: 6%; right: 0;
  background: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.tube-badge-num {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--c-accent);
}
.tube-badge-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
}

/* ============================================================
   APPLICATIONS
   ============================================================ */
.applications { background: var(--c-bg); }
.applications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.app-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.app-list { display: grid; gap: 18px; }
.app-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.app-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.app-ico {
  font-size: 1.5rem;
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,109,136,.1);
  border-radius: 12px;
}
.app-list strong {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  color: var(--c-dark);
  display: block;
  margin-bottom: 2px;
}
.app-list p { color: var(--c-muted); font-size: .96rem; }

@media (max-width: 860px) {
  .applications-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-lead { color: rgba(255,255,255,.78); margin: 18px 0 32px; font-size: 1.06rem; }

.contact-details { display: grid; gap: 22px; }
.contact-details li { display: flex; gap: 16px; align-items: flex-start; }
.contact-details a { color: var(--c-accent-2); }
.contact-details a:hover { text-decoration: underline; }
.ci-icon {
  font-size: 1.3rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  flex-shrink: 0;
}

/* Formulaire */
.contact-form {
  background: #fff;
  color: var(--c-ink);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--c-ink);
}
.req { color: var(--c-accent); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: .98rem;
  padding: 13px 15px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  transition: border-color .2s, background .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,109,136,.1);
}
.field input.invalid,
.field textarea.invalid { border-color: #e03636; background: #fff5f5; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--c-muted);
  margin-bottom: 22px;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--c-accent); flex-shrink: 0; }

.form-note { margin-top: 14px; font-size: .92rem; font-weight: 500; text-align: center; }
.form-note.ok { color: #12805c; }
.form-note.err { color: #e03636; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #081019; color: rgba(255,255,255,.7); padding-top: 66px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-mark { height: 54px; width: auto; margin-bottom: 14px; }
.footer-wordmark { height: 26px; width: auto; filter: invert(1); margin-bottom: 12px; }
.footer-brand p { font-size: .95rem; }

.footer-col h4 {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col a { display: block; margin-bottom: 10px; font-size: .94rem; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--c-accent-2); padding-left: 4px; }
.footer-col p { font-size: .94rem; line-height: 1.8; }
.footer-col a[href^="mailto"] { color: var(--c-accent-2); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
}
.footer-bottom p { font-size: .86rem; color: rgba(255,255,255,.5); margin: 0; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-legal a:hover { color: var(--c-accent-2); }
@media (max-width: 560px) {
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   PAGE 404
   ============================================================ */
.error-page {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  padding: 60px 0;
  overflow: hidden;
}
.error-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(160deg, rgba(13,27,42,.94), rgba(10,21,33,.9)),
    url("../images/tubes-industrie.jpg");
  background-size: cover; background-position: center;
}
.error-inner { position: relative; z-index: 1; max-width: 640px; }
.error-logo { height: 76px; width: auto; margin: 0 auto 26px; }
.error-code {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(5rem, 18vw, 10rem); line-height: 1;
  color: var(--c-accent-2);
}
.error-page h1 {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 10px 0 16px;
}
.error-text { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 30px; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.error-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.error-links a {
  color: rgba(255,255,255,.7); font-size: .92rem;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.error-links a:hover { color: #fff; border-color: var(--c-accent-2); }
@media (max-width: 560px) {
  .error-actions { flex-direction: column; }
  .error-actions .btn { width: 100%; }
}

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.page-hero--compact { min-height: 30vh; align-items: flex-end; }
.legal h2 {
  font-family: var(--ff-head);
  font-size: 1.5rem; font-weight: 600;
  color: var(--c-dark);
  margin: 34px 0 12px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--c-ink); margin-bottom: 12px; }
.legal a { color: var(--c-accent); text-decoration: underline; }
.legal a:hover { color: var(--c-accent-2); }
.legal-update { margin-top: 36px; font-size: .88rem; color: var(--c-muted); font-style: italic; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 12px 24px -10px rgba(0,109,136,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-accent-2); }

/* ============================================================
   ANIMATIONS AU SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .tubes-inner { grid-template-columns: 1fr; gap: 48px; }
  .tubes-visual { max-width: 360px; margin: 0 auto; width: 100%; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13,27,42,.98);
    backdrop-filter: blur(12px);
    padding: 12px 24px 24px;
    transform: translateY(-120%);
    transition: transform .35s ease;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { color: #fff; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 14px; padding: 14px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .stat + .stat::before { display: none; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .specialty { grid-template-columns: 1fr; }
  .specialty.reverse .specialty-media { order: 0; }
  .specialty-media { min-height: 200px; }
  .specialty-body { padding: 28px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .contact-form { padding: 26px 20px; }
}

/* ============================================================
   NAVIGATION — items & menu déroulant
   ============================================================ */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-parent { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.caret { font-size: .7em; transition: transform .25s; }
.dropdown-toggle {
  display: none;
  background: none; border: 0; color: inherit;
  font-size: 1.1rem; cursor: pointer; padding: 6px;
}

.dropdown {
  position: absolute;
  top: 100%; left: -14px;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 60;
}
/* pont invisible pour garder le survol */
.nav-item.has-dropdown::after {
  content: ""; position: absolute;
  top: 100%; left: 0; right: 0; height: 16px;
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--c-ink) !important;
  font-size: .93rem;
  white-space: nowrap;
}
.dropdown a::after { display: none !important; }
.dropdown a:hover { background: var(--c-bg-alt); color: var(--c-accent) !important; }
.dropdown a.active { color: var(--c-accent) !important; font-weight: 600; }

/* état actif du lien courant */
.nav-link.active, .nav-parent.active,
.has-dropdown.active > .nav-parent { color: var(--c-accent-2); }
.scrolled .nav-link.active, .scrolled .nav-parent.active,
.scrolled .has-dropdown.active > .nav-parent { color: var(--c-accent); }
.nav-cta.active { background: var(--c-accent-2); }

@media (min-width: 761px) {
  .nav-item.has-dropdown:hover .dropdown,
  .nav-item.has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-item.has-dropdown:hover .caret { transform: rotate(180deg); }
}

/* ============================================================
   PAGE HERO (bannière des pages internes)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 46px) 0 52px;
  color: #fff;
  overflow: hidden;
  background: var(--c-dark);
}
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(13,27,42,.94), rgba(13,27,42,.72) 55%, rgba(0,109,136,.55));
  z-index: 1;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 12px;
}
.page-hero p { max-width: 620px; font-size: 1.1rem; color: rgba(255,255,255,.85); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .85rem; margin-bottom: 18px;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: var(--c-accent-2); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: #fff; }

/* ============================================================
   SECTIONS UTILITAIRES
   ============================================================ */
.section-alt { background: var(--c-bg-alt); }
.narrow { max-width: 820px; }
.narrow .section-head { margin-bottom: 0; }

/* ============================================================
   GRILLES DE CARTES (3 colonnes réutilisables)
   ============================================================ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Carte média cliquable (teasers accueil) */
.media-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background: rgba(255,255,255,.03);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(0,109,136,.5); }
.media-card-img { height: 190px; overflow: hidden; background: #0a1521; }
.media-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.media-card:hover .media-card-img img { transform: scale(1.06); }
.media-card-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.media-card-body h3 { font-family: var(--ff-head); font-size: 1.35rem; font-weight: 600; }
.media-card-body p { color: rgba(255,255,255,.75); font-size: .96rem; flex-grow: 1; }

/* Carte "feature" (icône/numéro + texte) */
.feature-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.feature-ico { font-size: 2rem; display: block; margin-bottom: 14px; }
.feature-num {
  display: inline-block;
  font-family: var(--ff-head); font-weight: 700; font-size: 1rem;
  color: #fff; background: var(--c-accent);
  padding: 3px 12px; border-radius: 6px; margin-bottom: 14px;
}
.feature-card h3 { font-family: var(--ff-head); font-size: 1.35rem; font-weight: 600; color: var(--c-dark); margin-bottom: 8px; }
.feature-card p { color: var(--c-muted); font-size: .97rem; }

/* Variante sur fond sombre */
.features.on-dark .feature-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.features.on-dark .feature-card h3 { color: #fff; }
.features.on-dark .feature-card p { color: rgba(255,255,255,.75); }

/* ============================================================
   NORMES (vente de tubes)
   ============================================================ */
.norms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.norm {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 24px;
  background: #fff;
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.norm strong { font-family: var(--ff-head); font-size: 1.3rem; color: var(--c-dark); }
.norm span { color: var(--c-muted); font-size: .94rem; }

/* ============================================================
   BANDEAU CTA
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--c-accent), var(--c-accent-2));
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-inner h2 { font-family: var(--ff-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.cta-inner p { color: rgba(255,255,255,.9); margin-top: 6px; }
.btn-light { background: #fff; color: var(--c-accent); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.4); }

/* ============================================================
   CONTACT — variante page dédiée
   ============================================================ */
.contact-info--light .section-title,
.contact-info--light .contact-lead { color: var(--c-ink); }
.contact-info--light .contact-lead { color: var(--c-muted); }
.contact-info--light .ci-icon { background: rgba(0,109,136,.1); }
.contact-info--light .contact-details a { color: var(--c-accent); }
.contact-info--light .contact-details strong { color: var(--c-dark); }
.form-title { font-family: var(--ff-head); font-size: 1.5rem; color: var(--c-dark); margin-bottom: 22px; }

/* ============================================================
   CARTE (map)
   ============================================================ */
.map-section { position: relative; line-height: 0; }
.map-section iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }
.map-link {
  position: absolute; top: 16px; right: 16px;
  background: #fff; color: var(--c-accent);
  padding: 9px 16px; border-radius: 8px;
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow-soft); line-height: 1;
}
.map-link:hover { background: var(--c-accent); color: #fff; }

/* ============================================================
   RESPONSIVE — ajouts multi-pages
   ============================================================ */
@media (max-width: 980px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .norms-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Nav mobile : le panneau est toujours sombre → texte blanc,
     y compris quand le header est en état "scrolled" (fond blanc). */
  .main-nav a,
  .main-nav .nav-parent,
  .scrolled .main-nav a,
  .scrolled .main-nav .nav-parent,
  .scrolled .main-nav .nav-link { color: #fff; }

  /* Nav mobile : items empilés + accordéon */
  .main-nav { padding: 8px 20px 22px; overflow-y: auto; max-height: calc(100vh - var(--header-h)); }
  .nav-item { flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-parent { padding: 15px 0; flex: 1; }
  .nav-item.has-dropdown::after { display: none; }
  .dropdown-toggle { display: inline-flex; color: #fff; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    width: 100%; box-shadow: none; background: transparent; padding: 0 0 8px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-item.open .dropdown { max-height: 300px; }
  .nav-item.open .dropdown-toggle { transform: rotate(180deg); }
  .dropdown a { color: rgba(255,255,255,.82) !important; padding: 12px 14px; border-bottom: 0; }
  .dropdown a:hover, .dropdown a.active { background: rgba(255,255,255,.06); color: #fff !important; }
  .nav-item .nav-parent { border-bottom: 0; }

  .cards-3 { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-inner .btn { width: 100%; }
  .page-hero { min-height: 38vh; padding: calc(var(--header-h) + 34px) 0 40px; }
  .map-section iframe { height: 340px; }
}

@media (max-width: 560px) {
  .norms-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 24px 10px; }
}
