/* =========================================================
   OPTIMUM ASSUR' — DESIGN SYSTEM
   Direction : "Précision de chantier" — vocabulaire visuel BTP
   ========================================================= */

:root {
  /* Couleurs */
  --navy: #0B1A33;
  --navy-light: #16294D;
  --orange: #FF7A00;
  --concrete: #EDEEEB;
  --concrete-white: #fff;
  --steel: #C9CCC5;
  --steel-dark: #9CA095;
  --charcoal: #1A1D1F;
  --white: #FFFFFF;

  /* Typographie */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Échelle */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: 3.5rem;
  --step-5: 5rem;

  /* Structure */
  --radius: 4px;
  --border: 1px solid var(--steel);
  --container-width: 1180px;
}

/* ---------- Reset minimal ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--concrete-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 {font-size: clamp(2.1rem, 4vw, calc( var(--step-4) + 1rem ));line-height: 1.15;}
h2 { font-size: clamp(1.6rem, 3vw, var(--step-3)); }
h3 { font-size: var(--step-2); }
p { max-width: 68ch; }
.text-lg { font-size: 1.15rem; color: #4A4F52; }
.text-muted { color: #6B7178; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.container-wide {
  max-width: 100%;
  padding: 0 10%;
}
.section { padding: var(--step-4) 0; }
.section-tight { padding: var(--step-3) 0; }
.stack-sm > * + * { margin-top: .75rem; }
.stack-md > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
.hairline {
  border: none;
  border-top: var(--border);
  margin: 0;
}


/* Motif "plan technique" — grille fine, très discrète, réservée aux fonds sombres */
.blueprint-bg {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11,26,51,.15);
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: #E56D00; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--steel);
  color: var(--navy);
}
.btn-outline-dark:hover { border-color: var(--navy); }
/* ---------- Barre utilitaire ---------- */
.topbar {
  background: var(--navy-light);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.topbar-contacts {
  display: flex;
  gap: 1.5rem;
}
.topbar-contacts a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.topbar-contacts a:hover { color: var(--orange); }
.topbar-social {
  display: flex;
  gap: 1rem;
}
.topbar-social a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color .15s ease, transform .15s ease;
}
.topbar-social a:hover { color: var(--orange); transform: translateY(-1px); }

@media (max-width: 780px) {
  .topbar-social { display: none; }
  .topbar .container { justify-content: center; }
}
/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .25s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-icon {
  height: 34px;
  width: auto;
}
.brand-accent {
  color: var(--orange);
  font-weight: 700;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  transition: color .15s ease;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }


.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .site-nav { position: relative; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: .5rem 1.75rem 1.25rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links li:last-child { border-bottom: none; }
}
/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding: var(--step-3) 0;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Listes (solutions, actualités) — hairlines, pas de cartes ---------- */
.item-list {
  display: flex;
  flex-direction: column;
}
.item-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: var(--border);
  text-decoration: none;
  color: inherit;
  transition: background-color .15s ease;
}
.item-list .item-row:last-child { border-bottom: var(--border); }
.item-row:hover { background: rgba(11,26,51,.02); }
.item-row img {width: fit-content;height: auto;object-fit: cover;border-radius: var(--radius);}
.item-row h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.item-row .meta { color: var(--steel-dark); font-size: .8rem; }
.item-row .arrow { font-family: var(--font-display); color: var(--orange); font-size: 1.3rem; }

@media (max-width: 640px) {
  .item-row { grid-template-columns: 1fr; }
  .item-row img { width: 100%; height: 160px; }
}

/* ---------- Sections image + texte alternées ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-section .eyebrow {
  color: var(--orange);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .5rem;
}
@media (max-width: 780px) {
  .split-section { grid-template-columns: 1fr; }
}

/* ---------- Témoignages ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--steel);
  border: var(--border);
}
.testimonial-card {
  background: var(--concrete-white);
  padding: 1.75rem;
}
.testimonial-card .stars { color: var(--orange); margin-bottom: .6rem; }
.testimonial-card p.quote { font-size: 1.02rem; color: var(--charcoal); }
.testimonial-card .author { font-weight: 600; color: var(--navy); margin-bottom: 0; }
.testimonial-card .role { color: var(--steel-dark); font-size: .85rem; margin-top: 0; }

/* ---------- Formulaire de devis ---------- */
.qstep h2 { font-weight: 500; }
.choice-card {
  display: flex; align-items: center; justify-content: center;
  padding: 1.3rem .6rem; border: var(--border); border-radius: var(--radius);
  cursor: pointer; text-align: center; font-size: .9rem; transition: .15s;
  font-family: var(--font-body); font-weight: 500;
}
.choice-card:hover { border-color: var(--navy); }
.choice-card.selected { border-color: var(--orange); background: rgba(255,122,0,.06); color: var(--orange); font-weight: 600; }

.choice-row {
  display: block; padding: 1.1rem 1.3rem; border: var(--border); border-radius: var(--radius);
  cursor: pointer; transition: .15s;
}
.choice-row:hover { border-color: var(--navy); }
.choice-row.selected { border-color: var(--orange); background: rgba(255,122,0,.06); }

.qlabel { display: block; font-size: .85rem; color: var(--steel-dark); margin-bottom: .35rem; font-weight: 500; }
.qinput {
  width: 100%; padding: .75rem .9rem; border: var(--border); border-radius: var(--radius);
  box-sizing: border-box; font-family: var(--font-body); font-size: .95rem; background: var(--white);
}
.qinput:focus { outline: none; border-color: var(--navy); }

.toggle-btn {
  padding: .85rem 1rem; border-radius: var(--radius); border: var(--border);
  background: var(--white); cursor: pointer; font-family: var(--font-body); font-weight: 500;
}
.toggle-btn.active { border-color: var(--orange); background: rgba(255,122,0,.06); color: var(--orange); font-weight: 600; }


@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}