/* Polices hébergées sur le site (pas d'appel à Google Fonts) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* ===== Elluvia Électronique — feuille de style ===== */
:root {
  --navy: #1B3367;
  --navy-dark: #12244b;
  --orange: #F28A1E;
  --orange-light: #FDB52B;
  --bg: #ffffff;
  --bg-alt: #EFF1F5;
  --text: #2b3445;
  --muted: #5d6676;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 51, 103, .10);
  --font-title: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-title); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--orange); }
.eyebrow { font-family: var(--font-title); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 .6rem; }

/* Boutons */
.btn { display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: .95rem; padding: .85em 1.6em; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--orange-light)); color: #fff; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(242, 138, 30, .35); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.btn-small { padding: .55em 1.2em; font-size: .85rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #e3e7ef; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-title); color: var(--navy); }
.brand-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; }
.brand-text small { font-size: .6rem; font-weight: 700; letter-spacing: .2em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--navy); }
.nav a:not(.btn):hover { color: var(--orange); }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Héro */
.hero { position: relative; overflow: hidden; color: #fff; padding: 90px 0 110px;
  background:
    radial-gradient(circle at 85% 30%, rgba(242,138,30,.18), transparent 45%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
}
.hero::before { /* motif de pistes PCB */
  content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image:
    linear-gradient(90deg, #fff 1px, transparent 1px),
    linear-gradient(#fff 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #d6deee; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: min(340px, 80%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero-band { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: flex; }
.hero-band span:first-child { width: 30%; background: var(--orange); }
.hero-band span:last-child { flex: 1; background: var(--navy); filter: brightness(1.6); }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #d6deee; }
.section-dark h2 { color: #fff; }
.section-intro { max-width: 680px; color: var(--muted); font-size: 1.05rem; margin-bottom: 40px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* Cartes prestations */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid #e3e7ef; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--orange); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 18px; margin: .45em 0; font-size: .95rem; color: var(--muted); }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--orange); }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.step-num { font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: var(--orange); display: block; margin-bottom: 8px; }
.note { margin-top: 30px; padding: 16px 20px; border-left: 4px solid var(--orange); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }

/* Pour qui */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tags li { padding: .6em 1.1em; border-radius: 999px; background: var(--bg-alt); color: var(--navy); font-weight: 600; font-size: .95rem; border: 1px solid #dfe4ee; }

/* À propos */
.about-logo { display: flex; justify-content: center; }
.about-logo img { width: 220px; background: #fff; border-radius: 50%; padding: 30px; box-shadow: 0 0 0 6px var(--orange); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px; }
.contact-card { display: block; padding: 26px; border-radius: var(--radius); border: 1px solid #e3e7ef; box-shadow: var(--shadow); text-decoration: none; transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.contact-label { display: block; font-family: var(--font-title); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.contact-value { display: block; font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-top: 6px; overflow-wrap: anywhere; }
.contact-tip { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* Pied de page */
.site-footer { background: var(--navy-dark); color: #aeb9d0; padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; }
.brand-footer img { width: 32px; height: 32px; }
.brand-footer .brand-text { color: #fff; }

/* Mentions légales */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal mark { background: #fff1de; color: #9a4f00; padding: 0 4px; border-radius: 4px; }

/* Responsive */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav:not(.nav-static) { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid #e3e7ef; display: none; padding: 10px 20px 20px; }
  .nav.open { display: flex; }
  .nav:not(.nav-static) a { padding: 12px 0; border-bottom: 1px solid #eef1f6; }
  .nav a.btn { text-align: center; margin-top: 12px; border-bottom: 0; }
  .hero { padding: 60px 0 80px; }
  .hero-inner, .two-cols { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards, .steps, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== Version multi-pages ===== */
.nav a.active { color: var(--orange); }
.nav { gap: 24px; }

/* Bandeau atouts sous le héro */
.atouts-bar { background: #fff; border-bottom: 1px solid #e3e7ef; }
.atouts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.atout { display: flex; align-items: center; gap: 14px; padding: 26px 18px; border-right: 1px solid #e3e7ef; }
.atout:last-child { border-right: 0; }
.atout svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atout strong { display: block; font-family: var(--font-title); color: var(--navy); font-size: .95rem; }
.atout span { font-size: .85rem; color: var(--muted); }

/* Métiers */
.metiers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.metier { position: relative; display: block; padding: 36px 32px; border-radius: var(--radius); background: var(--bg-alt); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.metier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.metier .card-icon { background: #fff; }
.metier h3 { font-size: 1.4rem; }
.metier p { color: var(--muted); }
.metier-num { position: absolute; right: 24px; top: 10px; font-family: var(--font-title); font-weight: 800; font-size: 4.5rem; color: rgba(27,51,103,.07); }
.link-more, .text-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-title); font-weight: 700; color: var(--orange); text-decoration: none; }
.link-more svg, .text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.metier:hover .link-more svg, .text-link:hover svg { transform: translateX(4px); }

/* Héro des pages intérieures */
.page-hero { position: relative; color: #fff; padding: 60px 0 70px; background: radial-gradient(circle at 85% 20%, rgba(242,138,30,.18), transparent 45%), linear-gradient(135deg, var(--navy-dark), var(--navy)); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.page-hero .lead { color: #d6deee; max-width: 640px; font-size: 1.1rem; margin: 0; }
.crumb { font-size: .85rem; color: #aeb9d0; margin-bottom: 24px; }
.crumb a { color: #fff; text-decoration: none; }
.crumb span { margin: 0 6px; }

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Listes à coches */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding: 14px 18px 14px 48px; background: #fff; border-radius: 10px; font-weight: 600; color: var(--navy); }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 9px; margin-top: -7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.checklist.small li { padding: 6px 0 6px 30px; background: none; font-weight: 500; font-size: .95rem; }
.checklist.small li::before { left: 4px; width: 12px; height: 7px; margin-top: -6px; }

.mini-steps { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 14px; }
.mini-steps li { counter-increment: m; position: relative; padding: 16px 18px 16px 62px; background: #fff; border-radius: 10px; color: var(--muted); }
.mini-steps li::before { content: counter(m); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--font-title); font-weight: 800; display: grid; place-items: center; }
.mini-steps strong { color: var(--navy); }
.note-big { padding: 28px 32px; background: var(--bg-alt); }
.note-big h3 { margin-bottom: .3em; }
.note-big p { margin: 0; }

/* Différenciateurs */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.diff { padding: 26px 22px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.diff span { font-family: var(--font-title); font-weight: 800; color: var(--orange); font-size: 1.6rem; }
.diff h3 { color: #fff; margin-top: 8px; }
.diff p { margin: 0; font-size: .95rem; }

/* Bandeau d'appel à l'action */
.cta-band { background: linear-gradient(90deg, var(--orange), var(--orange-light)); color: #fff; padding: 50px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn { background: var(--navy); }
.cta-band .btn-ghost { background: transparent; border-color: #fff; }

/* Pied de page enrichi */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 28px; }
.footer-grid h4 { font-family: var(--font-title); color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 12px; }
.footer-grid a { display: block; color: #aeb9d0; text-decoration: none; margin: 6px 0; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--orange); }
.footer-grid .brand { display: flex; margin: 0; }
.footer-tagline { margin-top: 14px !important; max-width: 260px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .85rem; }
.footer-bottom a { color: #fff; }

/* Formulaire de devis */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.devis-form { display: grid; gap: 18px; background: var(--bg-alt); padding: 32px; border-radius: var(--radius); }
.devis-form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: .9rem; }
.devis-form input:not([type=checkbox]), .devis-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfd6e3; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.devis-form input:focus, .devis-form textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.checks input { accent-color: var(--orange); width: 18px; height: 18px; }
.form-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.form-error { margin: 0; color: #b3261e; font-weight: 600; }
.devis-form .btn { justify-self: start; border: 0; cursor: pointer; }
.contact-side { display: grid; gap: 18px; }
.contact-card-plain { box-shadow: none; }
.contact-card-plain:hover { transform: none; border-color: #e3e7ef; }

@media (max-width: 980px) {
  .cards-3, .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .atouts-grid { grid-template-columns: repeat(2, 1fr); }
  .atout:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid #e3e7ef; display: none; padding: 10px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #eef1f6; }
  .nav a.btn { text-align: center; margin-top: 12px; border-bottom: 0; padding: .7em 1.2em; }
}
@media (max-width: 760px) {
  .metiers, .cards-3, .diff-grid, .field-row, .checks, .atouts-grid { grid-template-columns: 1fr; }
  .atout { border-right: 0; border-bottom: 1px solid #e3e7ef; padding: 16px 4px; }
  .atout:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid a { padding: 6px 0; margin: 0; }
  .devis-form { padding: 22px; }
}
.checklist.small { gap: 2px; margin-top: 10px; }
