/* Orion Protect – feuille de style
   Couleurs et réglages principaux dans :root (faciles à modifier). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0c0e;
  --text: #ededE8;
  --muted: rgba(237, 237, 232, 0.72);
  --faint: rgba(237, 237, 232, 0.42);
  --cyan: #00def2;
  --line: rgba(255, 255, 255, 0.14);
  --form-bg: #0a1f21;
  --pad: 64px;
  --max: 1440px;
  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Montserrat", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: 1.12; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-stretch: 105%; font-weight: 600; font-size: 15px;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 0 24px; height: 44px; border-radius: 3px; border: 1px solid var(--cyan);
  transition: background .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--cyan); color: #04171a; }
.btn-primary:hover { background: #4df0ff; }
.btn-ghost { background: transparent; color: var(--cyan); }
.btn-ghost:hover { background: rgba(0, 222, 242, .12); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 40px; }
.nav a {
  font-family: var(--display); font-stretch: 108%; font-weight: 500; font-size: 15px;
  text-decoration: none; letter-spacing: .01em; padding: 6px 0; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { flex: none; }
.nav .nav-cta { display: none; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--text); }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 80px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 530px); gap: 56px; align-items: center; }
.eyebrow { font-family: var(--display); font-stretch: 112%; font-weight: 400; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: "✦"; margin-right: 10px; letter-spacing: 0; }
.hero h1 { font-size: clamp(30px, 4.4vw, 63px); line-height: 1.18; margin: 24px 0 36px; }
.hero p.lead { font-size: 20px; line-height: 2; max-width: 640px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.hero-photo { height: 492px; border-radius: 4px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); padding: 90px 0 110px; }
.services-head { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.h2 { font-size: clamp(34px, 4.4vw, 62px); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; font-size: 16px; }
.chips li + li::before { content: "✦"; color: var(--cyan); margin-right: 22px; font-size: 12px; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-bottom: 120px; }
.service:last-child { margin-bottom: 0; }
.service-photo { height: 465px; border-radius: 4px; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 0 0; }
.service:not(.rev) .service-body { padding-left: 0; }
.service .eyebrow { font-size: 14px; letter-spacing: .02em; }
.service h3 { font-size: clamp(22px, 2.6vw, 37px); margin: 18px 0 26px; }
.service .desc { color: var(--muted); font-size: 16px; line-height: 1.75; font-weight: 300; margin-bottom: 26px; }
.list li { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 16px; }
.list li:last-child { border-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.tags span { border: 1px solid rgba(255,255,255,.4); padding: 7px 8px; font-size: 12px; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }

/* ---------- Valeurs ---------- */
.valeurs { background: var(--cyan); color: #04090a; padding: 90px 0 80px; }
.valeurs .h2 { color: #04090a; }
.cards { display: grid; grid-template-columns: 367fr 423fr 423fr; gap: 50px; margin-top: 52px; }
.card { background: var(--bg); color: var(--text); border-radius: 3px; padding: 28px 24px 30px; }
.card h3 { font-family: var(--body); font-stretch: 100%; font-weight: 400; text-transform: none; font-size: 21px; line-height: 1.4; letter-spacing: 0; }
.card p { color: var(--muted); font-weight: 300; font-size: 16px; line-height: 1.75; margin-top: 24px; }

/* ---------- Réalisations ---------- */
.works { padding: 90px 0 90px; }
.grid { --row: calc((min(100vw, var(--max)) - 2 * var(--pad)) * 0.2622); display: grid; gap: 24px; margin-top: 70px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--row); }
.tile { position: relative; overflow: hidden; border-radius: 4px; background: #15171a; margin: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 24px 16px;
  background: rgba(11, 12, 14, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.tile strong { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 22px; line-height: 1.3; }
.tile span { display: block; font-size: 15px; font-weight: 400; color: rgba(237,237,232,.82); line-height: 1.5; }
.works-more { display: flex; justify-content: flex-end; margin-top: 64px; }
.brands { border-top: 1px solid var(--line); border-bottom: 0; }
.brands-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-top: 52px; padding-bottom: 52px; }
.brands .label { font-family: var(--display); font-stretch: 110%; font-weight: 600; font-size: 14px; color: var(--faint); }
.brands .name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 24px; color: rgba(237,237,232,.3); letter-spacing: .01em; }

/* ---------- Contact / devis ---------- */
.contact { background: var(--form-bg); padding: 80px 0 80px; }
.contact-in { display: grid; grid-template-columns: minmax(0, 517px) minmax(0, 755px); gap: 40px; justify-content: space-between; align-items: start; }
.contact h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.3; margin-top: 8px; margin-bottom: 82px; }
.infos li { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.infos li:first-child { border-top: 0; }
.infos .k { color: var(--muted); font-weight: 300; }
.infos .k small { font-size: 12px; margin-left: 2px; }
.infos .v { font-family: var(--display); font-stretch: 105%; font-weight: 600; font-size: 16px; }
.infos .v a { text-decoration: underline; text-underline-offset: 3px; }

.form-card { background: var(--bg); border-radius: 3px; padding: 24px 24px 32px; }
.form-card label.lbl, .form-card .lbl { display: block; font-size: 16px; font-weight: 400; margin-bottom: 14px; }
.services-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0 0 40px; padding: 0; border: 0; min-width: 0; }
.services-pick legend { padding: 0; margin-bottom: 14px; font-size: 16px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick .box { display: block; border: 1px solid rgba(255,255,255,.55); border-radius: 3px; padding: 18px 16px 16px; height: 100%; transition: border-color .2s, background .2s; }
.pick .t { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 16px; line-height: 1.2; }
.pick .t i { width: 15px; height: 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; flex: none; position: relative; }
.pick .s { display: block; margin-top: 18px; font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.5; }
.pick input:checked + .box { border-color: var(--cyan); background: rgba(0, 222, 242, .08); }
.pick input:checked + .box .t i { background: var(--cyan); border-color: var(--cyan); }
.pick input:checked + .box .t i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #04171a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pick input:focus-visible + .box { outline: 2px solid var(--cyan); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.field { min-width: 0; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--text); font: inherit; font-size: 15px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 3px; padding: 0 10px; height: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); font-size: 14px; }
.field textarea { height: 136px; padding: 10px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.field input:user-invalid, .field.err input { border-color: #ff6b6b; }
.field.full { margin-bottom: 36px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-card .btn { height: 42px; }
.form-card .btn[disabled] { opacity: .6; cursor: wait; }
.note { margin-top: 24px; font-size: 14px; font-weight: 300; color: var(--muted); }
.consent { margin-top: 10px; font-size: 12px; font-weight: 300; color: var(--faint); line-height: 1.6; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.status { margin-top: 20px; padding: 14px 16px; border-radius: 3px; font-size: 15px; line-height: 1.6; display: none; }
.status.ok { display: block; border: 1px solid var(--cyan); background: rgba(0,222,242,.08); }
.status.ko { display: block; border: 1px solid #ff6b6b; background: rgba(255,107,107,.08); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); padding: 40px 0 40px; }
.faq-in { display: grid; grid-template-columns: minmax(0, 517px) minmax(0, 755px); gap: 40px; justify-content: space-between; align-items: start; }
.faq h2 { font-size: clamp(36px, 4.4vw, 62px); margin-bottom: 40px; }
.faq .intro { color: var(--muted); font-weight: 300; line-height: 1.75; max-width: 460px; }
.q { border: 1px solid rgba(255,255,255,.6); border-radius: 3px; margin-bottom: 16px; }
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 18px; line-height: 1.4; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.q[open] { border-color: var(--cyan); background: var(--form-bg); }
.q[open] summary::after { transform: rotate(-135deg); color: var(--cyan); }
.q .a { padding: 0 24px 20px; font-size: 16px; line-height: 1.75; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 38px; padding-bottom: 38px; }
.footer-in .links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-in .links a { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 14px; text-decoration: none; }
.footer-in .links a:hover { color: var(--cyan); }
.copy { width: 100%; font-size: 12px; color: var(--faint); margin-top: -4px; }

/* ---------- Pages légales ---------- */
.legal { padding: 90px 0 110px; }
.legal h1 { font-size: clamp(30px, 5vw, 72px); line-height: 1.3; margin-bottom: 72px; }
.legal h2 { font-family: var(--body); font-stretch: 100%; text-transform: none; font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); margin: 64px 0 20px; line-height: 1.3; }
.legal p, .legal li { font-size: 16px; line-height: 2.2; font-weight: 300; }
.legal p strong, .legal li strong { font-weight: 700; }
.legal .updated { font-size: 24px; font-weight: 300; margin-bottom: 72px; margin-top: -24px; line-height: 1.4; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .nav { gap: 26px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { height: 440px; }
  .contact-in, .faq-in { grid-template-columns: 1fr; gap: 56px; }
  .contact h2 { margin-bottom: 40px; }
  .cards { gap: 24px; }
}

/* ---------- Mobile / tablette étroite ---------- */
@media (max-width: 860px) {
  :root { --pad: 24px; }
  html { scroll-padding-top: 72px; }
  .header-in { height: 72px; }
  .brand img { height: 34px; }
  .burger { display: block; margin-right: -10px; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; transform: none; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 22px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .nav .nav-cta { display: inline-flex; margin-top: 22px; border-bottom: 1px solid var(--cyan); padding: 0 24px; align-self: flex-start; color: #04171a; }
  .nav .nav-cta { height: 44px; align-items: center; }

  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: clamp(27px, 8.1vw, 56px); margin: 18px 0 24px; }
  .hero p.lead { font-size: 17px; line-height: 1.85; }
  .hero-actions { gap: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-photo { height: 340px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .14em; line-height: 1.8; }

  .services { padding: 60px 0 70px; }
  .services-head { gap: 18px; margin-bottom: 36px; }
  .service, .service.rev { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .service .service-photo { order: -1; height: 300px; }
  .service h3 { margin: 14px 0 18px; }

  .valeurs { padding: 60px 0 56px; }
  .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }

  .works { padding: 64px 0 56px; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: 280px; margin-top: 36px; gap: 16px; }
  .grid .tile { grid-column: auto !important; grid-row: auto !important; }
  .tile strong { font-size: 19px; }
  .tile figcaption { padding: 12px 18px 14px; }
  .works-more { justify-content: stretch; margin-top: 36px; }
  .works-more .btn { width: 100%; }
  .brands-in { padding-top: 36px; padding-bottom: 36px; gap: 18px 28px; }
  .brands .label { width: 100%; }
  .brands .name { font-size: 18px; }

  .contact { padding: 56px 0 56px; }
  .contact h2 { margin-bottom: 28px; }
  .infos li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .form-card { padding: 20px 16px 26px; }
  .services-pick { grid-template-columns: 1fr; gap: 12px; margin-bottom: 30px; }
  .pick .s { margin-top: 8px; }
  .row2 { grid-template-columns: 1fr; gap: 26px; margin-bottom: 26px; }
  .field.full { margin-bottom: 26px; }
  .field input, .field textarea { font-size: 16px; } /* évite le zoom auto sur iPhone */
  .form-actions .btn { width: 100%; }

  .faq { padding: 48px 0; }
  .faq h2 { margin-bottom: 20px; }
  .q summary { padding: 16px 18px; font-size: 16px; }
  .q .a { padding: 0 18px 18px; font-size: 15px; }

  .footer-in { padding-top: 30px; padding-bottom: 30px; }
  .footer-in .links { gap: 22px; }

  .legal { padding: 52px 0 70px; }
  .legal h1 { margin-bottom: 40px; }
  .legal h2 { margin-top: 44px; }
  .legal .updated { font-size: 18px; margin-bottom: 40px; margin-top: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Grille réalisations (desktop) : placement explicite */
@media (min-width: 861px) {
  .t-gt3 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .t-glc { grid-column: 3; grid-row: 1; }
  .t-supra { grid-column: 3; grid-row: 2; }
  .t-m3 { grid-column: 1; grid-row: 3; }
  .t-cx { grid-column: 1; grid-row: 4; }
  .t-m2 { grid-column: 2 / 4; grid-row: 3 / 5; }
  .t-mcl { grid-column: 1 / 3; grid-row: 5 / 7; }
  .t-911 { grid-column: 3; grid-row: 5; }
  .t-m5 { grid-column: 3; grid-row: 6; }
}

/* Mobile : le formulaire passe avant les informations de la société */
@media (max-width: 1100px) {
  .contact-in { display: flex; flex-direction: column; gap: 0; }
  .contact-in > div { display: contents; }
  .contact h2 { order: 0; margin-bottom: 28px; }
  .contact .form-card { order: 1; }
  .contact .infos { order: 2; margin-top: 48px; width: 100%; }
}
