/* SII Ardennes — feuille de style principale (Bootstrap 5.3.8 + surcouche)
   Concept : plan technique. Fond « bleu de plan » quadrillé, cotes rouges, cartouches de bureau d'études. */
:root {
  --sii-blue: #01385f;        /* bleu du logo */
  --sii-blue-700: #012b49;
  --sii-navy: #00213a;        /* bleu nuit, fonds sombres */
  --sii-red: #e30613;         /* rouge du logo, légèrement assombri pour le contraste AA */
  --sii-steel: #eef3f7;       /* neutre légèrement bleuté */
  --sii-line: #d3dde6;
  --sii-ink: #0f2233;         /* texte */
  --sii-muted: #51647a;
  --sii-white: #ffffff;
  --font-main: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Variables Bootstrap */
  --bs-primary: var(--sii-blue);
  --bs-primary-rgb: 1, 56, 95;
  --bs-danger: var(--sii-red);
  --bs-danger-rgb: 227, 6, 19;
  --bs-body-font-family: var(--font-main);
  --bs-body-color: var(--sii-ink);
  --bs-body-bg: var(--sii-white);
  --bs-link-color: var(--sii-blue);
  --bs-link-color-rgb: 1, 56, 95;
  --bs-link-hover-color: var(--sii-red);
  --bs-border-color: var(--sii-line);
  --bs-border-radius: .375rem;
  color-scheme: light;
}

html { scroll-padding-top: 88px; }
.container, .container-fluid { --bs-gutter-x: 2rem; }
body {
  font-family: var(--font-main);
  background: var(--sii-white);
  color: var(--sii-ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--sii-navy);
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 700; }
p { max-width: 68ch; }
.text-center p, p.mx-auto { margin-inline: auto; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sii-red); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--sii-navy); color: #fff; padding: .6rem 1rem; border-radius: .25rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Libellés techniques ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sii-red); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: #ff6b70; }
.lead { font-size: 1.2rem; font-weight: 500; color: var(--sii-muted); }

/* ---------- Boutons ---------- */
.btn { font-weight: 700; letter-spacing: .01em; padding: .8rem 1.4rem; border-radius: .375rem; }
.btn-primary {
  --bs-btn-bg: var(--sii-blue); --bs-btn-border-color: var(--sii-blue);
  --bs-btn-hover-bg: var(--sii-blue-700); --bs-btn-hover-border-color: var(--sii-blue-700);
  --bs-btn-active-bg: var(--sii-navy);
}
.btn-danger {
  --bs-btn-bg: var(--sii-red); --bs-btn-border-color: var(--sii-red);
  --bs-btn-hover-bg: #c00510; --bs-btn-hover-border-color: #c00510; --bs-btn-active-bg: #a3040e;
}
.btn-outline-light { --bs-btn-hover-color: var(--sii-navy); }
.btn svg { width: 1.1em; height: 1.1em; vertical-align: -.15em; }

/* ---------- En-tête ---------- */
.topbar { background: var(--sii-navy); color: #c9d4ea; font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #ff9a9e; }
.topbar .container { padding-block: .45rem; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1030;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--sii-line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .navbar { padding-block: .7rem; }
.navbar-brand img { height: 46px; width: auto; display: block; }
.navbar .nav-link {
  font-weight: 700; color: var(--sii-ink); font-size: .97rem;
  padding: .5rem .85rem !important; position: relative;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--sii-blue); }
@media (min-width: 992px) {
  .navbar .nav-link.active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -.15rem;
    height: 3px; background: var(--sii-red);
  }
}
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(227,6,19,.35); }
.btn-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sii-red); color: #fff;
}
.btn-call svg { width: 20px; height: 20px; }

/* ---------- Héros « plan technique » ---------- */
.blueprint {
  background-color: var(--sii-navy);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(120% 90% at 85% 10%, #0a4a78 0%, var(--sii-navy) 60%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%;
  color: #dfe7f6;
}
.blueprint h1, .blueprint h2, .blueprint h3 { color: #fff; }
.hero { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; overflow: hidden; }
.hero .lead { color: #c3cfe8; }
.hero h1 .accent { color: #fff; box-shadow: inset 0 -.16em 0 var(--sii-red); }

/* Cote technique */
.cote {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #ff8a8f; margin-top: 2.2rem; max-width: 520px;
}
.cote .line { flex: 1; height: 1px; background: currentColor; position: relative; }
.cote .line::before, .cote .line::after {
  content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor;
}
.cote .line::before { left: 0; } .cote .line::after { right: 0; }

/* Cartouche (bloc-titre de plan) */
.cartouche {
  border: 1.5px solid rgba(255,255,255,.45);
  background: rgba(0,33,58,.55);
  font-variant-numeric: tabular-nums;
}
.cartouche-row { display: grid; grid-template-columns: 1fr 1fr; }
.cartouche-cell { padding: 1.1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.25); min-width: 0; }
.cartouche-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.25); }
.cartouche-row:last-child .cartouche-cell { border-bottom: 0; }
.cartouche-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fb2d8; }
.cartouche-value { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 800; color: #fff; line-height: 1.2; }
.cartouche-value small { font-size: .55em; font-weight: 700; color: #ff8a8f; margin-left: .2rem; }
.cartouche-foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 1.2rem; border-top: 1.5px solid rgba(255,255,255,.45);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #9fb2d8; font-weight: 700;
}

/* En-tête de page interne */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #8ea3cc; --bs-breadcrumb-item-active-color: #c3cfe8; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: #fff; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #ff9a9e; }
.page-hero p { color: #c3cfe8; font-size: 1.15rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section-tint { background: var(--sii-steel); }
.section-head { margin-bottom: 2.75rem; }
.section-head p { color: var(--sii-muted); font-size: 1.1rem; }

/* Réponse courte (AEO) */
.answer-box {
  border-left: 4px solid var(--sii-red);
  background: var(--sii-steel);
  padding: 1.25rem 1.5rem; border-radius: 0 .375rem .375rem 0;
}
.answer-box p { margin: 0; font-size: 1.08rem; }
.answer-box strong { color: var(--sii-navy); }

/* Cartes métiers */
.metier-card {
  height: 100%; background: #fff; border: 1px solid var(--sii-line); border-radius: .5rem;
  padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.metier-card:hover { border-color: var(--sii-blue); box-shadow: 0 14px 34px -18px rgba(0,33,58,.45); transform: translateY(-2px); }
.metier-icon {
  width: 52px; height: 52px; border-radius: .5rem; display: grid; place-items: center;
  background: var(--sii-blue); color: #fff;
}
.metier-icon svg { width: 28px; height: 28px; }
.metier-card h3 { margin: 0; }
.metier-card p { margin: 0; color: var(--sii-muted); font-size: 1rem; }
.metier-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .4rem; }
.tag {
  font-size: .78rem; font-weight: 700; color: var(--sii-blue-700);
  background: var(--sii-steel); border: 1px solid var(--sii-line);
  padding: .2rem .55rem; border-radius: 2rem;
}
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Fabrications */
.ouvrages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .75rem; padding: 0; list-style: none; margin: 0; }
.ouvrages li {
  display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--sii-line);
  border-radius: .375rem; padding: .85rem 1rem; font-weight: 700; color: var(--sii-navy);
}
.ouvrages li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--sii-red); transform: rotate(45deg); }

/* Processus (séquence réelle : étude → pose) */
.process { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.process li { counter-increment: step; position: relative; padding-top: 3.25rem; min-width: 0; }
.process li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 2rem; font-weight: 800; color: var(--sii-red); line-height: 1;
}
.process li::after { content: ""; position: absolute; top: 1rem; left: 3.6rem; right: 0; height: 1px; background: var(--sii-line); }
.process h3 { font-size: 1.15rem; }
.process p { color: var(--sii-muted); font-size: .98rem; margin: 0; }
.on-dark .process p { color: #c3cfe8; }
.on-dark .process li::after { background: rgba(255,255,255,.25); }
.on-dark .process li::before { color: #ff6b70; }

/* Interlocuteur unique */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%;
  background: var(--sii-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Réalisations */
.real-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.real-item {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left;
  background: #fff; border: 1px solid var(--sii-line); border-radius: .5rem; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.real-item:hover { border-color: var(--sii-blue); box-shadow: 0 14px 30px -18px rgba(0,33,58,.5); }
.real-item .frame { display: block; flex: none; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--sii-steel); }
.real-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.real-item:hover img { transform: scale(1.04); }
.real-item .cap { display: block; padding: .8rem 1rem .95rem; font-weight: 700; font-size: .98rem; color: var(--sii-navy); line-height: 1.35; }
.real-item .cap small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sii-red); font-weight: 800; margin-bottom: .2rem; }
.real-fig { height: 100%; }

/* Références clients */
.clients { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; justify-content: center; }
.clients li {
  font-weight: 800; color: var(--sii-blue-700); letter-spacing: .02em;
  border: 1px solid var(--sii-line); background: #fff; border-radius: .375rem; padding: .65rem 1.1rem;
}

/* Fiche équipement (cartouche clair) */
.spec { border: 1.5px solid var(--sii-navy); border-radius: .25rem; font-variant-numeric: tabular-nums; background: #fff; }
.spec-title { background: var(--sii-navy); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .55rem 1rem; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.spec dt, .spec dd { padding: .6rem 1rem; border-top: 1px solid var(--sii-line); margin: 0; }
.spec dt { font-weight: 700; color: var(--sii-muted); font-size: .9rem; border-right: 1px solid var(--sii-line); }
.spec dd { font-weight: 700; color: var(--sii-navy); }

.metier-section + .metier-section { border-top: 1px solid var(--sii-line); }
.metier-section .num { font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--sii-red); text-transform: uppercase; }

/* Recrutement */
.job {
  background: #fff; border: 1px solid var(--sii-line); border-radius: .5rem; padding: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.job h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.job .meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge-cdi { background: var(--sii-red); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; padding: .25rem .6rem; border-radius: .25rem; }

/* FAQ */
.accordion {
  --bs-accordion-border-color: var(--sii-line);
  --bs-accordion-active-bg: var(--sii-steel);
  --bs-accordion-active-color: var(--sii-navy);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(227,6,19,.3);
  --bs-accordion-btn-padding-y: 1.15rem;
}
.accordion-button { font-weight: 700; font-size: 1.05rem; color: var(--sii-navy); }
.accordion-body p:last-child { margin-bottom: 0; }

/* Contact */
.contact-card { background: #fff; border: 1px solid var(--sii-line); border-radius: .5rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.form-control, .form-select { padding: .75rem 1rem; border-color: #c6d0e3; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--sii-blue); box-shadow: 0 0 0 .2rem rgba(1,56,95,.18); }
.form-label { font-weight: 700; font-size: .92rem; color: var(--sii-navy); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-line { display: flex; gap: .9rem; align-items: flex-start; }
.info-line svg { flex: none; width: 22px; height: 22px; color: var(--sii-red); margin-top: .2rem; }
.info-line strong { display: block; color: var(--sii-navy); }

/* Bandeau d'appel à l'action */
.cta-band { padding-block: clamp(3rem, 5vw, 4.5rem); }
.cta-band .phone { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.cta-band .phone:hover { color: #ff9a9e; }

/* Pied de page */
.site-footer { background: var(--sii-navy); color: #b6c3de; font-size: .95rem; }
.site-footer .container { padding-block: 3.5rem 1.5rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 800; margin-bottom: 1rem; }
.site-footer a { color: #e3eaf8; text-decoration: none; }
.site-footer a:hover { color: #ff9a9e; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer address { font-style: normal; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 44px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }
.red-rule { height: 4px; background: linear-gradient(90deg, var(--sii-blue) 0 66%, var(--sii-red) 66% 100%); }

/* Bouton d'appel flottant (mobile) */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sii-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 20px -8px rgba(0,33,58,.35);
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem; font-weight: 800; text-decoration: none; color: #fff; background: var(--sii-blue);
}
.mobile-cta a:last-child { background: var(--sii-red); }
.mobile-cta svg { width: 18px; height: 18px; }
@media (max-width: 991.98px) { body { padding-bottom: 60px; } }
@media (min-width: 992px) { .mobile-cta { display: none; } }

/* Mobile */
@media (max-width: 991.98px) {
  .navbar-collapse { padding-block: .75rem 1rem; }
  .navbar .nav-link { padding: .75rem 0 !important; border-bottom: 1px solid var(--sii-line); }
}
@media (max-width: 575.98px) {
  .cartouche-row { grid-template-columns: 1fr; }
  .cartouche-cell:nth-child(odd) { border-right: 0; }
  .navbar-brand img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Évite le débordement horizontal des gouttières larges sur mobile */
@media (max-width: 991.98px) { .row.g-5, .row.g-lg-5 { --bs-gutter-x: 2rem; } }

/* ---------- Photos ---------- */
/* Héros d'accueil : photo d'atelier sous un voile bleu de plan */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: luminosity; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,33,58,.92) 0%, rgba(0,33,58,.7) 55%, rgba(0,33,58,.35) 100%);
}
.hero > .container { z-index: 1; }

/* En-têtes de pages internes : profilés acier en fond */
.page-hero {
  background-image:
    linear-gradient(90deg, rgba(0,33,58,.95) 0%, rgba(0,33,58,.82) 60%, rgba(0,33,58,.6) 100%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    url("../img/atelier-profiles-acier-768.webp");
  background-size: cover, 96px 96px, 96px 96px, cover;
  background-position: center;
}
@media (min-width: 768px) {
  .page-hero { background-image:
    linear-gradient(90deg, rgba(0,33,58,.95) 0%, rgba(0,33,58,.82) 60%, rgba(0,33,58,.6) 100%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    url("../img/atelier-profiles-acier-1280.webp"); }
}
@media (min-width: 1400px) {
  .page-hero { background-image:
    linear-gradient(90deg, rgba(0,33,58,.95) 0%, rgba(0,33,58,.82) 60%, rgba(0,33,58,.6) 100%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    url("../img/atelier-profiles-acier-1920.webp"); }
}

/* Bandeau d'appel : portail coulissant réalisé par SII */
.photo-band {
  color: #dfe7f6;
  background: linear-gradient(90deg, rgba(0,33,58,.94) 0%, rgba(0,33,58,.8) 100%), url("../img/portail-coulissant-lames-800.webp") center / cover var(--sii-navy);
}
@media (min-width: 992px) {
  .photo-band { background-image: linear-gradient(90deg, rgba(0,33,58,.94) 0%, rgba(0,33,58,.7) 100%), url("../img/portail-coulissant-lames-1600.webp"); }
}
.photo-band h2 { color: #fff; }
.photo-band .eyebrow { color: #ff6b70; }

.photo-figure { margin: 0; }
.photo-figure img { width: 100%; height: auto; border-radius: .5rem; display: block; }
.photo-figure figcaption { font-size: .88rem; color: var(--sii-muted); margin-top: .6rem; font-weight: 600; }

.real-fig[hidden] { display: none !important; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter-btn {
  font: inherit; font-weight: 700; font-size: .92rem; color: var(--sii-navy);
  background: #fff; border: 1px solid var(--sii-line); border-radius: 2rem; padding: .5rem 1rem; min-height: 44px;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--sii-blue); }
.filter-btn.active { background: var(--sii-blue); border-color: var(--sii-blue); color: #fff; }

.modal-lightbox { max-width: 680px; }
.lightbox-img { display: block; margin-inline: auto; width: 100%; max-height: 78vh; object-fit: contain; }
