/* ===== BatiSûr — Design tokens ===== */
@font-face {
  font-family: 'Gloock';
  src: url('../assets/gloock-regular.ttf') format('truetype');
  font-weight: 400;
}

:root {
  --navy: #1E2761;
  --navy-d: #161c4d;
  --navy-deeper: #10143a;
  --ice: #CADCFC;
  --terracotta: #B85042;
  --terracotta-d: #9c4237;
  --cream: #F3EEE6;
  --grey: #4A4F5C;
  --grey-light: #7A7F8C;
  --light-bg: #F7F8FB;
  --white: #FFFFFF;
  --border: #E4E7EE;

  --font-display: 'Gloock', Georgia, serif;
  --font-body: 'Poppins', -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--grey);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--navy); line-height: 1.15; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 18px rgba(184,80,66,0.28); }
.btn-primary:hover { background: var(--terracotta-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 36px; max-width: var(--max-w); margin: 0 auto; }
.nav-logo { font-family: var(--font-display); font-size: 66px; color: var(--navy); letter-spacing: 0.5px; line-height: 1; margin-right: 48px; }
.nav-logo span { color: var(--terracotta); }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 700; color: var(--navy); transition: color .15s; white-space: nowrap; letter-spacing: 0.2px; }
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { padding: 10px 18px; font-size: 13.5px; }
}

/* ===== Hero (photo) ===== */
.hero-photo {
  position: relative; color: #fff; overflow: hidden;
  background-image: linear-gradient(180deg, rgba(16,20,58,0.86) 0%, rgba(22,28,77,0.45) 45%, rgba(16,20,58,0.92) 100%), url('../assets/team_photo.jpg');
  background-size: cover; background-position: center 30%;
  padding: 110px 0 90px;
}
.hero-photo .eyebrow { color: var(--ice); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12.5px; margin-bottom: 18px; }
.hero-photo h1 { color: #fff; font-size: clamp(38px, 6vw, 64px); max-width: 780px; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.hero-photo h1 em { font-style: normal; color: var(--terracotta); }
.hero-photo p.lead { color: var(--ice); font-size: 18px; max-width: 560px; margin-top: 22px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-reassurance { color: var(--ice); font-size: 14px; font-weight: 600; margin-top: 18px; letter-spacing: 0.3px; }
.hero-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin-top: -36px; position: relative; z-index: 2;
  box-shadow: 0 10px 30px -20px rgba(30,39,97,0.45);
}
.hero-stats div { flex: 1; min-width: 120px; text-align: center; }
.hero-stats strong { font-family: var(--font-display); font-size: 26px; color: var(--navy); line-height: 1; display: block; }
.hero-stats strong.accent { color: var(--terracotta); }
.hero-stats span { font-size: 12.5px; color: var(--grey); margin-top: 5px; display: block; }
@media (max-width: 640px) { .hero-stats { gap: 18px; padding: 20px; } .hero-stats strong { font-size: 22px; } }

/* ===== Small hero (non-photo pages) ===== */
.hero-plain {
  background: linear-gradient(155deg, var(--navy) 55%, var(--navy-d) 100%); color: #fff; padding: 78px 0 70px; position: relative; overflow: hidden;
}
.hero-plain::after { content:""; position:absolute; right:-90px; top:-90px; width:280px; height:280px; border-radius:50%; background:rgba(255,255,255,0.05); }
.hero-plain .eyebrow { color: var(--ice); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12.5px; margin-bottom: 16px; }
.hero-plain h1 { color: #fff; font-size: clamp(32px, 5vw, 50px); max-width: 720px; }
.hero-plain h1 em { font-style: normal; color: var(--terracotta); }
.hero-plain p.lead { color: var(--ice); font-size: 17px; max-width: 560px; margin-top: 18px; }

/* ===== Sections ===== */
section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: linear-gradient(155deg, var(--navy) 55%, var(--navy-d) 100%); color: #fff; }
.section-navy h2 { color: #fff; }
.section-light { background: var(--light-bg); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--terracotta); font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; font-size: 15px; margin-bottom: 16px; display:block; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { margin-top: 16px; font-size: 16.5px; color: var(--grey); }
.section-navy .section-head p { color: var(--ice); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== Cards / grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon img { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; font-family: var(--font-body); font-weight: 600; }
.card p { font-size: 14.5px; color: var(--grey); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step-row { display: flex; align-items: center; gap: 60px; margin-bottom: 70px; }
.step-row.reverse { flex-direction: row-reverse; }
.step-row > * { flex: 1; min-width: 0; }
@media (max-width: 780px) { .step-row, .step-row.reverse { flex-direction: column; gap: 24px; } }
.step { background: #fff; border-radius: var(--radius); padding: 30px 24px; border: 1px solid var(--border); position: relative; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px; margin-bottom: 18px; font-family: var(--font-body);
}
.step h3 { font-size: 17px; font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--grey); }

/* ===== CTA band ===== */
.cta-band {
  background: var(--terracotta); border-radius: var(--radius); padding: 52px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.5vw, 32px); max-width: 460px; }
.cta-band p { color: #FBE3DF; margin-top: 10px; font-size: 15px; }
.cta-band .btn-primary { background: #fff; color: var(--terracotta); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ===== Footer ===== */
footer { background: var(--navy-deeper); color: var(--ice); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr 1fr; gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 1020px) { .footer-top { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-logo { font-family: var(--font-display); font-size: 22px; color: #fff; margin-bottom: 14px; }
.footer-logo span { color: var(--terracotta); }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; word-break: break-word; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 12.5px; color: #7883B8; flex-wrap: wrap; gap: 10px; }

/* ===== Placeholder box (for QR/photos/maps not yet available) ===== */
.placeholder-box {
  border: 2px dashed rgba(184,80,66,0.35); border-radius: var(--radius-sm); color: var(--terracotta);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; text-align: center; padding: 20px;
  background: rgba(184,80,66,0.04);
}
.photo-box { border-radius: var(--radius); overflow: hidden; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Utility ===== */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.text-ice { color: var(--ice); }
.badge { display:inline-block; background: rgba(202,220,252,0.15); color: var(--ice); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; letter-spacing: 0.4px; }

/* ===== Critères de sélection des artisans ===== */
.criteres { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.critere { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; }
.critere-num { font-family: var(--font-display); font-size: 20px; color: var(--terracotta); flex: none; line-height: 1; padding-top: 2px; }
.critere h3 { font-size: 16px; margin-bottom: 5px; }
.critere p { font-size: 14px; color: var(--grey); line-height: 1.55; }

/* ===== Effet de survol sur les cartes cliquables ===== */
a.card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--terracotta); box-shadow: 0 10px 28px -18px rgba(30,39,97,0.45); }

/* ===== Encadré du bloc questionnaire ===== */
.cadrage-header {
  border: 2px solid var(--terracotta); border-radius: var(--radius);
  background: rgba(184,80,66,0.045); padding: 30px 28px; max-width: 720px;
}
.cadrage-header .eyebrow { color: var(--terracotta); }

/* ===== Sélecteur de métier (accueil) ===== */
.metier-picker { max-width: 720px; }
.metier-picker label { display: block; font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.metier-picker-row { display: flex; gap: 12px; flex-wrap: wrap; }
.metier-picker select {
  flex: 1; min-width: 240px; font-family: var(--font-body); font-size: 15.5px; color: var(--navy);
  padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231E2761' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.metier-picker select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184,80,66,0.12); }
.metier-picker select.is-empty { border-color: var(--terracotta); }
.metier-picker .btn { padding: 15px 26px; }
.metier-picker-note { margin-top: 14px; font-size: 13px; color: var(--grey-light); }
@media (max-width: 560px) { .metier-picker-row { flex-direction: column; } .metier-picker .btn { width: 100%; } }

/* ===== Grille des communes (pages agences) ===== */
.communes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.commune {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 14.5px; font-weight: 500; color: var(--navy); text-align: center;
}
.communes-note { margin-top: 24px; font-size: 14px; color: var(--grey-light); text-align: center; }
