/* ==========================================================================
   BIGORR'AIR — feuille de style principale
   Charte : navy #0E1B2A · orange brûlé #E8732A · blanc cassé #F4F1EC
   Typo   : Barlow Condensed (titres) · Barlow (texte) · mono système (données)
   ========================================================================== */

:root {
  --navy:       #0E1B2A;
  --navy-mid:   #17293B;
  --navy-line:  #294357;
  --orange:     #E8732A;
  --orange-dim: #B9561A;
  --bone:       #F4F1EC;
  --bone-line:  #D8D2C8;
  --slate:      #6B7A88;
  --slate-lt:   #9BA9B6;

  --wrap: 1180px;
  --gut: 24px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --disp: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--disp);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--orange); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--orange); color: var(--navy);
  padding: 10px 16px; font-family: var(--disp);
  text-transform: uppercase; z-index: 999;
}
.skip:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------- utilitaires */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Étiquette technique : le motif récurrent du site */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-block;
}

.tag--muted { color: var(--slate-lt); }

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--slate-lt);
  max-width: 62ch;
}

.band--light .lead { color: var(--slate); }

/* --------------------------------------------------------- bandes */

.band {
  padding: 92px 0;
  border-top: 1px solid var(--navy-line);
  position: relative;
}

.band--light {
  background: var(--bone);
  color: var(--navy);
  border-top-color: var(--bone-line);
}

.band--flush { border-top: 0; }

.band__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.band__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--navy-line);
}
.band--light .band__head::after { background: var(--bone-line); }

.band h2 {
  font-size: clamp(34px, 5.2vw, 58px);
  max-width: 20ch;
  margin-bottom: 22px;
}

/* --------------------------------------------------------- boutons */

.btn {
  display: inline-block;
  font-family: var(--disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 17px;
  padding: 13px 26px;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--orange);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.btn--solid { background: var(--orange); color: var(--navy); }
.btn--solid:hover { background: #F0873F; border-color: #F0873F; }

.btn--ghost { background: transparent; color: var(--orange); }
.btn--ghost:hover { background: var(--orange); color: var(--navy); }

.btn--line {
  border-color: currentColor;
  color: inherit;
  opacity: .85;
}
.btn--line:hover { opacity: 1; background: rgba(255,255,255,.06); }
.band--light .btn--line:hover { background: rgba(14,27,42,.06); }

.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* --------------------------------------------------------- entête */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 27, 42, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
}

.masthead__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand { text-decoration: none; margin-right: auto; }
.brand__mark {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__mark i { color: var(--orange); font-style: normal; }
.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-lt);
  white-space: nowrap;
  margin-top: 4px;
}

.nav { display: flex; gap: 22px; }
.nav a {
  font-family: var(--disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}
.nav a:hover { border-bottom-color: var(--navy-line); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }

.navtoggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-line);
  color: var(--bone);
  font-family: var(--disp);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 15px;
  padding: 8px 14px;
  cursor: pointer;
}

/* --------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-line);
}

.hero__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #12243a 0%, #0E1B2A 55%, #0a1420 100%);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .38;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,27,42,.96) 6%, rgba(14,27,42,.55) 55%, rgba(14,27,42,.75) 100%);
}

.hero__in { position: relative; padding: 130px 0 54px; }

.hero h1 {
  font-size: clamp(46px, 9.2vw, 108px);
  max-width: 15ch;
  margin: 18px 0 26px;
}
.hero h1 em { font-style: normal; color: var(--orange); }

.hero .lead { font-size: 21px; color: #C9D2DA; }

/* Bandeau de données sous le hero */
.datastrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--navy-line);
  background: var(--navy);
}
.datastrip div {
  padding: 20px 22px;
  border-right: 1px solid var(--navy-line);
}
.datastrip div:last-child { border-right: 0; }
.datastrip dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.datastrip dd {
  margin: 0;
  font-family: var(--disp);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.1;
}

/* --------------------------------------------------------- fiches services */

.sheets { display: grid; gap: 0; border-top: 1px solid var(--bone-line); }

.band--light .sheet { border-bottom: 1px solid var(--bone-line); }

.sheet {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  padding: 40px 0;
  align-items: start;
}

.sheet__ref {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--orange);
  margin-bottom: 10px;
}

.sheet h3 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
  max-width: 18ch;
}

.sheet p { color: var(--slate); max-width: 52ch; }

/* La grille de spécifications : signature du site */
.spec {
  border: 1px solid var(--bone-line);
  background: #fff;
}
.band:not(.band--light) .spec { border-color: var(--navy-line); background: var(--navy-mid); }

.spec__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  border-bottom: 1px solid var(--bone-line);
}
.band:not(.band--light) .spec__row { border-bottom-color: var(--navy-line); }
.spec__row:last-child { border-bottom: 0; }

.spec__k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 13px 14px;
  border-right: 1px solid var(--bone-line);
  background: rgba(14,27,42,.03);
}
.band:not(.band--light) .spec__k {
  border-right-color: var(--navy-line);
  background: rgba(255,255,255,.03);
}

.spec__v {
  padding: 13px 16px;
  font-size: 15.5px;
  line-height: 1.5;
}
.spec__v strong {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .01em;
  color: var(--orange-dim);
}
.band:not(.band--light) .spec__v strong { color: var(--orange); }

/* --------------------------------------------------------- procédé (séquence réelle) */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--navy-line);
}
.steps li {
  list-style: none;
  padding: 26px 24px 30px;
  border-right: 1px solid var(--navy-line);
}
.steps li:last-child { border-right: 0; }
.steps b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--orange);
  display: block;
  margin-bottom: 18px;
}
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { font-size: 15.5px; color: var(--slate-lt); }

/* --------------------------------------------------------- cas / réalisations */

.cases { display: grid; gap: 34px; }

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--navy-line);
}
.band--light .case { border-color: var(--bone-line); background: #fff; }

.case--flip .case__body { order: -1; }

.case__media {
  position: relative;
  min-height: 320px;
  background: repeating-linear-gradient(45deg, #17293B 0 12px, #142434 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__media span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--slate);
  text-align: center;
  padding: 0 20px;
}

.case__body { padding: 34px 34px 36px; }
.case__body h3 { font-size: 27px; margin: 10px 0 14px; max-width: 22ch; }
.case__body p { color: var(--slate-lt); font-size: 16px; }
.band--light .case__body p { color: var(--slate); }

.case__facts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.case__facts li {
  list-style: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--navy-line);
  padding: 6px 10px;
  color: var(--slate-lt);
}
.band--light .case__facts li { border-color: var(--bone-line); color: var(--slate); }

/* --------------------------------------------------------- deux colonnes */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split--tight { gap: 40px; }

.figure {
  border: 1px solid var(--navy-line);
  background: repeating-linear-gradient(45deg, #17293B 0 12px, #142434 12px 24px);
  min-height: 340px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.band--light .figure { border-color: var(--bone-line); background: repeating-linear-gradient(45deg,#EDE9E2 0 12px,#E7E2DA 12px 24px); }
.figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.figure span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  color: var(--slate); text-align: center; padding: 0 20px;
}

/* liste à puces techniques */
.ticks { margin: 22px 0 0; padding: 0; }
.ticks li {
  list-style: none;
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--slate-lt);
}
.band--light .ticks li { color: var(--slate); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 13px; height: 2px; background: var(--orange);
}

/* --------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--bone-line); max-width: 860px; }
.band:not(.band--light) .faq { border-top-color: var(--navy-line); }

.faq details {
  border-bottom: 1px solid var(--bone-line);
}
.band:not(.band--light) .faq details { border-bottom-color: var(--navy-line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-family: var(--disp);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 21px;
  letter-spacing: .01em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 20px;
}
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 22px; color: var(--slate); max-width: 68ch; }
.band:not(.band--light) .faq p { color: var(--slate-lt); }

/* --------------------------------------------------------- appel final */

.cta { background: var(--orange); color: var(--navy); border-top: 0; }
.cta h2 { max-width: 22ch; }
.cta p { color: rgba(14,27,42,.78); max-width: 56ch; font-size: 19px; }
.cta .tag { color: rgba(14,27,42,.6); }
.cta .band__head::after { background: rgba(14,27,42,.28); }
.cta .btn--solid { background: var(--navy); color: var(--bone); border-color: var(--navy); }
.cta .btn--solid:hover { background: #1B3149; border-color: #1B3149; }
.cta .btn--line { border-color: rgba(14,27,42,.45); color: var(--navy); }
.cta .btn--line:hover { background: rgba(14,27,42,.09); }

/* --------------------------------------------------------- formulaire */

.form { display: grid; gap: 18px; max-width: 560px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--navy-line);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
  outline: none;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate-lt); }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: 0 0 auto; }

/* --------------------------------------------------------- contact direct */

.contactcards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--navy-line); }
.contactcards > div { padding: 26px 24px; border-right: 1px solid var(--navy-line); }
.contactcards > div:last-child { border-right: 0; }
.contactcards h3 { font-size: 20px; margin: 12px 0 8px; }
.contactcards a { color: var(--orange); text-decoration: none; }
.contactcards a:hover { text-decoration: underline; }
.contactcards p { font-size: 15.5px; color: var(--slate-lt); }

/* --------------------------------------------------------- pied de page */

.foot {
  background: #0A1420;
  border-top: 1px solid var(--navy-line);
  padding: 60px 0 30px;
  font-size: 15px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.foot h4 {
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--slate);
  margin-bottom: 14px;
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 10.5px;
}
.foot ul { margin: 0; padding: 0; }
.foot li { list-style: none; margin-bottom: 9px; color: var(--slate-lt); }
.foot a { color: var(--slate-lt); text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot__bar {
  border-top: 1px solid var(--navy-line);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* --------------------------------------------------------- pages internes */

.pagehead {
  padding: 118px 0 62px;
  border-bottom: 1px solid var(--navy-line);
  background: linear-gradient(160deg, #14243A 0%, #0E1B2A 70%);
}
.pagehead h1 {
  font-size: clamp(40px, 7vw, 78px);
  max-width: 17ch;
  margin: 16px 0 22px;
}

.prose { max-width: 74ch; }
.prose h2 { font-size: 30px; margin: 44px 0 14px; }
.prose h3 { font-size: 22px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--orange-dim); }

/* --------------------------------------------------------- animation */

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* --------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .sheet { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .case { grid-template-columns: 1fr; }
  .case--flip .case__body { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { border-bottom: 1px solid var(--navy-line); }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3), .steps li:nth-child(4) { border-bottom: 0; }
  .datastrip { grid-template-columns: 1fr 1fr; }
  .datastrip div:nth-child(2) { border-right: 0; }
  .datastrip div:nth-child(1), .datastrip div:nth-child(2) { border-bottom: 1px solid var(--navy-line); }
  .contactcards { grid-template-columns: 1fr; }
  .contactcards > div { border-right: 0; border-bottom: 1px solid var(--navy-line); }
  .contactcards > div:last-child { border-bottom: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .band { padding: 62px 0; }
  .navtoggle { display: block; }
  .masthead__in { flex-wrap: wrap; }
  .masthead .btn { display: none; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 12px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--navy-line); }
  .hero { min-height: 0; }
  .hero__in { padding: 84px 0 44px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--navy-line); }
  .steps li:last-child { border-bottom: 0; }
  .spec__row { grid-template-columns: 108px 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 30px; }
  .case__body { padding: 26px 22px 30px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
  .masthead .btn { padding: 11px 18px; font-size: 15px; }
  .brand__sub { display: none; }
}

/* --------------------------------------------------------- ajustements mobile */
@media (max-width: 760px) {
  .btn { white-space: normal; }
  .btnrow .btn { width: 100%; text-align: center; }
  .datastrip dd { font-size: 18px; }
  .hero h1 { letter-spacing: -0.005em; }
}
