/* Boussole Immo - feuille de style unique */

:root {
  --bou-violet: #4c2a86;
  --bou-violet-fonce: #3a1f68;
  --bou-jaune: #f2c94c;
  --bou-encre: #241b33;
  --bou-secondaire: #6a6180;
  --bou-lilas: #f2ecfb;
  --bou-blanc: #ffffff;
  --bou-radius: 14px;
  --bou-ombre: 0 18px 40px rgba(36, 27, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', 'Segoe UI', sans-serif;
  color: var(--bou-encre);
  background: var(--bou-blanc);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--bou-violet);
}

.bou-wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- En-tete ---------- */

.bou-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(76, 42, 134, 0.1);
}

.bou-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.bou-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bou-encre);
  text-decoration: none;
  letter-spacing: -0.4px;
}

.bou-brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.bou-menu {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.bou-menu a {
  text-decoration: none;
  color: var(--bou-encre);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.98rem;
  transition: background 0.2s, color 0.2s;
}

.bou-menu a:hover,
.bou-menu a[aria-current="page"] {
  background: var(--bou-lilas);
  color: var(--bou-violet);
}

.bou-menu a.bou-nav-cta {
  background: var(--bou-jaune);
  color: var(--bou-encre);
}

.bou-menu a.bou-nav-cta:hover {
  background: #e8ba33;
}

/* ---------- Boutons ---------- */

.bou-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.bou-btn-primary {
  background: var(--bou-jaune);
  color: var(--bou-encre);
  box-shadow: 0 10px 24px rgba(242, 201, 76, 0.4);
}

.bou-btn-primary:hover {
  transform: translateY(-2px);
  background: #e8ba33;
}

.bou-btn-ghost {
  background: transparent;
  color: var(--bou-blanc);
  border-color: rgba(255, 255, 255, 0.6);
}

.bou-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.bou-btn-dark {
  background: var(--bou-violet);
  color: var(--bou-blanc);
  box-shadow: 0 10px 24px rgba(76, 42, 134, 0.28);
}

.bou-btn-dark:hover {
  transform: translateY(-2px);
  background: var(--bou-violet-fonce);
}

/* ---------- Hero ---------- */

.bou-hero {
  position: relative;
  background: var(--bou-violet);
  color: var(--bou-blanc);
  overflow: hidden;
  isolation: isolate;
}

.bou-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 201, 76, 0.22), transparent 42%),
    linear-gradient(135deg, var(--bou-violet-fonce) 0%, var(--bou-violet) 58%);
  z-index: -2;
}

.bou-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -40%;
  width: 62%;
  height: 150%;
  background: var(--bou-violet-fonce);
  transform: skewX(-16deg);
  opacity: 0.55;
  z-index: -1;
}

.bou-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 5rem 0 5.5rem;
}

.bou-eyebrow {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--bou-jaune);
  margin-bottom: 1rem;
}

.bou-hero h1 {
  margin-bottom: 1rem;
}

.bou-hero p.bou-lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34ch;
}

.bou-hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* Illustration boussole du hero */
.bou-hero-visual {
  display: flex;
  justify-content: center;
}

.bou-hero-visual svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ---------- Sections ---------- */

.bou-section {
  padding: 4.5rem 0;
}

.bou-section-lilas {
  background: var(--bou-lilas);
}

.bou-section-violet {
  background: var(--bou-violet);
  color: var(--bou-blanc);
}

.bou-section-head {
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.bou-section-head .bou-eyebrow {
  color: var(--bou-violet);
}

.bou-section-violet .bou-eyebrow {
  color: var(--bou-jaune);
}

.bou-section-head p {
  color: var(--bou-secondaire);
  font-size: 1.1rem;
}

.bou-section-violet .bou-section-head p {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Piliers (accueil) ---------- */

.bou-piliers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.bou-pilier {
  background: var(--bou-blanc);
  border-radius: var(--bou-radius);
  padding: 1.8rem;
  border: 1px solid rgba(76, 42, 134, 0.08);
  box-shadow: var(--bou-ombre);
  position: relative;
  overflow: hidden;
}

.bou-pilier::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--bou-jaune);
}

.bou-pilier h3 {
  color: var(--bou-violet);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bou-pilier svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.bou-pilier p {
  color: var(--bou-secondaire);
  margin: 0;
}

/* ---------- Bloc pour qui ---------- */

.bou-pourqui {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.bou-pourqui-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.bou-pourqui-list li {
  background: var(--bou-blanc);
  border-radius: var(--bou-radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--bou-ombre);
  border-left: 5px solid var(--bou-violet);
}

.bou-pourqui-list strong {
  display: block;
  color: var(--bou-violet);
  margin-bottom: 0.2rem;
}

.bou-pourqui-list p {
  margin: 0;
  color: var(--bou-secondaire);
  font-size: 0.98rem;
}

.bou-figure {
  display: flex;
  justify-content: center;
}

.bou-figure svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* ---------- Appel a contact ---------- */

.bou-cta-band {
  background: var(--bou-violet);
  color: var(--bou-blanc);
  border-radius: 22px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.bou-cta-band::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 45%;
  height: 200%;
  background: var(--bou-jaune);
  opacity: 0.12;
  transform: skewX(-18deg);
}

.bou-cta-band h2 {
  margin-bottom: 0.6rem;
  position: relative;
}

.bou-cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin: 0 auto 1.6rem;
  position: relative;
}

.bou-cta-band .bou-btn {
  position: relative;
}

/* ---------- Modules (programme) ---------- */

.bou-modules {
  display: grid;
  gap: 1.4rem;
}

.bou-module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: start;
  background: var(--bou-blanc);
  border-radius: var(--bou-radius);
  padding: 1.9rem;
  border: 1px solid rgba(76, 42, 134, 0.08);
  box-shadow: var(--bou-ombre);
}

.bou-module-num {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--bou-violet);
  background: var(--bou-lilas);
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-bottom: 4px solid var(--bou-jaune);
}

.bou-module h3 {
  color: var(--bou-encre);
  margin-bottom: 0.4rem;
}

.bou-module p {
  color: var(--bou-secondaire);
  margin-bottom: 0.7rem;
}

.bou-module p:last-child {
  margin-bottom: 0;
}

.bou-module ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--bou-secondaire);
}

.bou-module ul li {
  margin-bottom: 0.35rem;
}

/* ---------- A propos ---------- */

.bou-apropos-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.bou-valeurs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.bou-valeur {
  background: var(--bou-blanc);
  border-radius: var(--bou-radius);
  padding: 1.6rem;
  box-shadow: var(--bou-ombre);
  border-top: 5px solid var(--bou-jaune);
}

.bou-valeur h3 {
  color: var(--bou-violet);
  font-size: 1.1rem;
}

.bou-valeur p {
  color: var(--bou-secondaire);
  margin: 0;
  font-size: 0.98rem;
}

.bou-quote {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  border-left: 6px solid var(--bou-jaune);
  padding-left: 1.4rem;
  margin: 0;
  max-width: 42ch;
}

/* ---------- Contact ---------- */

.bou-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.bou-contact-card {
  background: var(--bou-violet);
  color: var(--bou-blanc);
  border-radius: 22px;
  padding: 2.2rem;
}

.bou-contact-card h2 {
  color: var(--bou-blanc);
}

.bou-contact-card p {
  color: rgba(255, 255, 255, 0.86);
}

.bou-contact-mail {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bou-jaune);
  text-decoration: none;
  word-break: break-all;
}

.bou-form {
  background: var(--bou-blanc);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: var(--bou-ombre);
  border: 1px solid rgba(76, 42, 134, 0.08);
}

.bou-field {
  margin-bottom: 1.2rem;
}

.bou-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--bou-encre);
}

.bou-field input,
.bou-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(76, 42, 134, 0.16);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--bou-encre);
  background: #fbfaff;
  transition: border-color 0.2s;
}

.bou-field input:focus,
.bou-field textarea:focus {
  outline: none;
  border-color: var(--bou-violet);
}

.bou-field textarea {
  min-height: 150px;
  resize: vertical;
}

.bou-form-note {
  font-size: 0.9rem;
  color: var(--bou-secondaire);
  margin-top: 1rem;
}

/* ---------- Contenu legal ---------- */

.bou-legal {
  max-width: 760px;
}

.bou-legal h2 {
  font-size: 1.4rem;
  color: var(--bou-violet);
  margin-top: 2rem;
}

.bou-legal p {
  color: var(--bou-secondaire);
}

/* ---------- Page intro (bandeau interne) ---------- */

.bou-pagehead {
  background: var(--bou-violet);
  color: var(--bou-blanc);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
  isolation: isolate;
}

.bou-pagehead::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 50%;
  height: 220%;
  background: var(--bou-violet-fonce);
  transform: skewX(-16deg);
  opacity: 0.5;
  z-index: -1;
}

.bou-pagehead .bou-eyebrow {
  color: var(--bou-jaune);
}

.bou-pagehead p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Pied de page ---------- */

.bou-footer {
  background: var(--bou-encre);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
}

.bou-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.bou-footer .bou-brand {
  color: var(--bou-blanc);
  margin-bottom: 0.8rem;
}

.bou-footer p {
  font-size: 0.95rem;
  max-width: 34ch;
}

.bou-footer h4 {
  color: var(--bou-blanc);
  font-size: 1rem;
  margin: 0 0 0.8rem;
}

.bou-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.bou-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
}

.bou-footer a:hover {
  color: var(--bou-jaune);
}

.bou-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .bou-hero-inner,
  .bou-pourqui,
  .bou-apropos-intro,
  .bou-contact-grid {
    grid-template-columns: 1fr;
  }

  .bou-hero-visual {
    order: -1;
  }

  .bou-hero-visual svg {
    max-width: 240px;
  }

  .bou-piliers,
  .bou-valeurs {
    grid-template-columns: 1fr;
  }

  .bou-footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .bou-menu {
    gap: 0.15rem;
  }

  .bou-menu a {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  .bou-brand span {
    display: none;
  }

  .bou-module {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bou-section {
    padding: 3.2rem 0;
  }

  .bou-cta-band {
    padding: 2rem 1.5rem;
  }
}
