/* ==========================================================================
   STRUCIAL Ingénierie — style.css
   Charte : navy #1F3864, blanc, gris clair, accent discret pour les CTA
   ========================================================================== */

:root {
  --navy: #1F3864;
  --navy-dark: #142647;
  --navy-light: #2E4D82;
  --white: #FFFFFF;
  --grey-050: #F6F7F9;
  --grey-100: #EEF1F4;
  --grey-200: #E2E6EB;
  --grey-400: #9AA4B2;
  --grey-600: #5B6472;
  --ink: #202733;
  --accent: #C3661C;
  --accent-dark: #A65415;
  --ok: #2F7D4F;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(31, 56, 100, 0.08);
  --shadow-lg: 0 12px 30px rgba(31, 56, 100, 0.14);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---- Technical grid pattern (subtle blueprint) ---- */
.grid-bg {
  background-color: var(--grey-050);
  background-image:
    linear-gradient(rgba(31,56,100,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,56,100,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.navy-bg {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
}

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--grey-600); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-bottom: 0.6em;
}
.breadcrumb { font-size: 0.85rem; color: var(--grey-600); margin: 18px 0; }
.breadcrumb a { color: var(--grey-600); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.98rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white); border-bottom: 1px solid var(--grey-200);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: 0.01em;
}
.logo:hover { text-decoration: none; }
.logo-img { height: 32px; width: auto; display: block; }
.footer-brand .logo-img-footer { height: 38px; }

.nav-desktop { display: none; }
.nav-cta { display: none; }
.nav-toggle {
  background: none; border: 1px solid var(--grey-200); border-radius: var(--radius);
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy);
  position: relative; transition: transform .15s ease, opacity .15s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none; position: fixed; inset: 68px 0 0 0; background: var(--white);
  z-index: 190; overflow-y: auto; padding: 12px 0 40px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav .container { padding: 0 20px; }
.mobile-nav a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--grey-100);
  color: var(--ink); font-weight: 600;
}
.mobile-nav .sub-link { padding-left: 18px; font-weight: 500; color: var(--grey-600); font-size: 0.94rem; }
.mobile-nav .btn { margin-top: 18px; }

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .nav-desktop {
    display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0;
  }
  .nav-desktop > li { position: relative; }
  .nav-desktop > li > a, .nav-desktop > li > button {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 12px; font-weight: 600; font-size: 0.95rem; color: var(--ink);
    background: none; border: none; cursor: pointer; font-family: inherit; border-radius: var(--radius);
  }
  .nav-desktop > li > a:hover, .nav-desktop > li > button:hover { color: var(--navy); text-decoration: none; background: var(--grey-050); }
  .dropdown-panel {
    display: none; position: absolute; top: 100%; left: 0; background: var(--white);
    border: 1px solid var(--grey-200); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 300px; padding: 8px; margin-top: 6px;
  }
  .has-dropdown:hover .dropdown-panel,
  .has-dropdown:focus-within .dropdown-panel { display: block; }
  .dropdown-panel a {
    display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 4px;
    font-weight: 600; color: var(--ink); font-size: 0.92rem;
  }
  .dropdown-panel a small { font-weight: 500; color: var(--accent); white-space: nowrap; }
  .dropdown-panel a:hover { background: var(--grey-050); text-decoration: none; }
  .nav-cta { display: inline-block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 56px 0 60px; }
.hero .container { display: grid; gap: 30px; }
.hero h1 { margin-bottom: 0.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; font-size: 0.92rem; color: var(--grey-600); }
.hero-facts strong { color: var(--navy); }

@media (min-width: 992px) {
  .hero .container.two-col { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

/* ==========================================================================
   SECTIONS / CARDS
   ========================================================================== */
.section { padding: 54px 0; }
.section-tight { padding: 34px 0; }
.section-head { max-width: 720px; margin-bottom: 30px; }

.card-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
}
.card h3 { margin-bottom: 6px; }
.card .price { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: 8px 0 4px; }
.card .delai { font-size: 0.85rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.card p.desc { color: var(--grey-600); font-size: 0.94rem; flex-grow: 1; }
.card .btn { margin-top: 14px; }
.tva-note { color: var(--grey-600); font-size: 0.9rem; margin-top: 10px; }
.tva-note a { color: var(--navy); font-weight: 700; }

.diff-list { display: grid; gap: 20px; margin-top: 10px; }
@media (min-width: 768px) { .diff-list { grid-template-columns: repeat(2, 1fr); } }
.diff-item { display: flex; gap: 14px; }
.diff-item .num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.diff-item h3 { margin-bottom: 4px; font-size: 1.05rem; }
.diff-item p { color: var(--grey-600); font-size: 0.94rem; margin: 0; }

.steps { counter-reset: step; display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-weight: 800; display: flex;
  align-items: center; justify-content: center;
}
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { color: var(--grey-600); font-size: 0.92rem; }

.example-list { display: grid; gap: 12px; margin-top: 14px; }
.example-item {
  border-left: 3px solid var(--accent); background: var(--grey-050); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}
.example-item strong { color: var(--navy); }

/* ---- Forfait layout with sticky price box ---- */
.forfait-layout { display: block; }
.forfait-main { min-width: 0; }
.price-box {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px; margin: 26px 0;
}
.price-box .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-600); font-weight: 700; }
.price-box .amount { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 4px 0 2px; }
.price-box .delai-line { color: var(--accent); font-weight: 700; margin-bottom: 14px; font-size: 0.95rem; }
.price-box ul { list-style: none; padding: 0; margin: 0 0 16px; }
.price-box ul li { padding: 6px 0; border-top: 1px solid var(--grey-100); font-size: 0.9rem; color: var(--grey-600); display: flex; justify-content: space-between; gap: 8px; }
.price-box ul li:first-child { border-top: none; }

@media (min-width: 992px) {
  .forfait-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
  .price-box { position: sticky; top: 90px; margin-top: 0; }
}

.compare-grid { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 768px) { .compare-grid { grid-template-columns: repeat(2, 1fr); } }
.compare-card { border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 22px; background: var(--white); }
.compare-card.highlight { border-color: var(--navy); box-shadow: var(--shadow); }
.compare-card h3 { display: flex; justify-content: space-between; align-items: baseline; }
.compare-card .p { color: var(--navy); font-weight: 800; }
.compare-card ul { margin-top: 10px; }
.compare-card ul li { margin-bottom: 6px; font-size: 0.94rem; }

.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grey-200); }
.spec-table th { color: var(--navy); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- FAQ ---- */
.faq-list { margin-top: 10px; }
.faq-item {
  border-bottom: 1px solid var(--grey-200); padding: 6px 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 14px 30px 14px 0; position: relative;
  list-style: none; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; color: var(--accent); font-weight: 700;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .a { padding: 0 0 16px; color: var(--grey-600); font-size: 0.95rem; }

/* ---- CTA band ---- */
.cta-band { padding: 50px 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-top: 0; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 20px; }

/* ---- Contact / forms ---- */
.contact-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--grey-200); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.info-block { background: var(--grey-050); border-radius: var(--radius); padding: 22px; }
.info-block dt { font-weight: 700; color: var(--navy); margin-top: 14px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.info-block dt:first-child { margin-top: 0; }
.info-block dd { margin: 2px 0 0; }

/* ---- Local pages: villes desservies ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag { background: var(--grey-100); color: var(--navy); font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); padding: 50px 0 0; }
.footer-grid { display: grid; gap: 30px; padding-bottom: 34px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-grid a { color: rgba(255,255,255,0.75); display: block; padding: 4px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .logo { color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 0.8rem;
  color: rgba(255,255,255,0.6); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   TUNNEL DE COMMANDE
   ========================================================================== */
.tunnel-wrap { max-width: 760px; margin: 0 auto; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 30px; counter-reset: st; }
.stepper li {
  flex: 1; text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--grey-400);
  padding-top: 38px; position: relative;
}
.stepper li::before {
  counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--grey-200); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.stepper li.is-active { color: var(--navy); }
.stepper li.is-active::before, .stepper li.is-done::before { background: var(--navy); }
.stepper li.is-done::before { content: "✓"; background: var(--ok); }

.tunnel-step { display: none; }
.tunnel-step.is-active { display: block; }

.radio-card {
  display: block; border: 2px solid var(--grey-200); border-radius: var(--radius); padding: 16px 18px;
  margin-bottom: 12px; cursor: pointer; position: relative;
}
.radio-card input { position: absolute; top: 18px; left: 16px; }
.radio-card .rc-body { padding-left: 30px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.radio-card .rc-title { font-weight: 700; color: var(--navy); }
.radio-card .rc-desc { font-size: 0.85rem; color: var(--grey-600); padding-left: 30px; margin-top: 4px; }
.radio-card .rc-price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.radio-card:has(input:checked) { border-color: var(--navy); background: var(--grey-050); }

.option-card {
  display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
}
.option-card input { margin-top: 4px; }
.option-card .oc-title { font-weight: 700; }
.option-card .oc-desc { font-size: 0.85rem; color: var(--grey-600); }
.option-card .oc-price { margin-left: auto; font-weight: 700; color: var(--accent); white-space: nowrap; }

.surface-field { background: var(--grey-050); border-radius: var(--radius); padding: 16px; margin: 16px 0; display: none; }
.surface-field.is-visible { display: block; }
.surface-field .amount-preview { font-weight: 800; color: var(--navy); margin-top: 8px; }

.dropzone {
  border: 2px dashed var(--grey-200); border-radius: var(--radius); padding: 26px; text-align: center;
  color: var(--grey-600); cursor: pointer; background: var(--grey-050);
}
.dropzone.is-drag { border-color: var(--navy); background: var(--grey-100); }
.dropzone strong { color: var(--navy); }
.file-list { list-style: none; padding: 0; margin: 14px 0 0; }
.file-list li {
  display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--grey-050);
  border-radius: var(--radius); margin-bottom: 6px; font-size: 0.88rem;
}
.file-list button { background: none; border: none; color: var(--accent); font-weight: 700; cursor: pointer; }
.file-hint { font-size: 0.82rem; color: var(--grey-600); margin-top: 8px; }
.file-error { color: #B3261E; font-size: 0.85rem; margin-top: 8px; display: none; }
.file-error.is-visible { display: block; }

.recap-box { border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.recap-box .row { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--grey-100); font-size: 0.94rem; }
.recap-box .row.total { background: var(--grey-050); font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.recap-box .row.acompte { font-weight: 700; color: var(--accent); }
.recap-box .row:last-child { border-bottom: none; }

.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form-error-banner {
  background: #FDEDEC; border: 1px solid #F3C4C0; color: #B3261E; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 18px; font-size: 0.9rem; display: none;
}
.form-error-banner.is-visible { display: block; }
.loading-banner {
  background: var(--grey-050); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 12px 16px; margin-top: 14px; font-size: 0.9rem; display: none; text-align: center;
}
.loading-banner.is-visible { display: block; }

/* ---- legal pages ---- */
.legal-content h2 { margin-top: 2em; }
.legal-content h3 { color: var(--navy-light); }
.fill { color: #B3261E; font-weight: 700; }
.legal-notice {
  background: #FFF7E6; border: 1px solid #F0D999; border-radius: var(--radius);
  padding: 14px 18px; font-size: 0.9rem; margin-bottom: 30px;
}

/* ---- misc ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; font-size: 0.85rem; color: var(--grey-600); }
.badge-row span { display: inline-flex; align-items: center; gap: 6px; }
.badge-row span::before { content: "✓"; color: var(--ok); font-weight: 800; }
hr.rule { border: none; border-top: 1px solid var(--grey-200); margin: 40px 0; }
