/* HRB Média — charte de l'ancien site : Roboto fin, Open Sans, dégradé violet, fonds photo. */

@font-face { font-family: "Roboto"; src: url("fonts/roboto-100.woff2") format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --violet-dark: #322e40;
  --violet-light: #8b86a3;
  --violet: #655e7a;
  --ink: #333;
  --grey: #7b7b7b;
  --line: #ececec;
  --foot: #f5f5f5;
  --foot-text: #6f6f6f;
  --card: #f0f8ff;
  --head-h: 80px;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: "Roboto", sans-serif; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--violet); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* En-tête fixe, blanc, comme l'ancien site */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--head-h);
  display: flex;
  align-items: center;
  padding: 0 max(16px, 15%);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mark img { width: 126px; height: auto; }

main { padding-top: var(--head-h); }

/* Hero : photo clavier sous dégradé violet */
.hero {
  position: relative;
  padding: clamp(120px, 22vh, 200px) 0 clamp(140px, 28vh, 280px);
  background: var(--violet-dark) url("img/slider-bg.jpg") 10% 0 / cover no-repeat;
  color: #f2f2f4;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, var(--violet-light), var(--violet-dark));
  opacity: 0.8;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-weight: 100;
  font-size: clamp(28px, 5vw, 45px);
  line-height: 1.35;
  letter-spacing: clamp(3px, 0.8vw, 10px);
  max-width: 26ch;
  margin-left: clamp(0px, 8vw, 16.66%);
}
.hero .tag {
  margin: 36px 0 0 clamp(0px, 8vw, 16.66%);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: clamp(1px, 0.4vw, 3px);
  text-transform: uppercase;
}
.hero .tag a { color: inherit; }

@media (min-width: 768px) {
  .hero { background-attachment: fixed; }
}


/* Bandeau contact : photo bureau + carte claire */
.cta {
  padding: 100px 0;
  background: #fff url("img/feature-bg.jpg") center / cover no-repeat;
}
.cta .wrap { display: flex; justify-content: flex-end; }
.card {
  width: 100%;
  max-width: 540px;
  padding: 40px;
  background: rgba(240, 248, 255, 0.92);
  border-radius: 15px;
}
.card h2 { font-weight: 300; font-size: 28px; line-height: 1.2; margin-bottom: 20px; color: var(--ink); }
.card p { color: #5f6164; margin-bottom: 28px; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--violet);
  color: #fff;
  text-decoration: none;
}
.btn:hover { background: var(--violet-dark); }

/* Page texte */
.page { padding-bottom: 80px; }
.prose { max-width: 760px; padding-top: 60px; }
.prose h1 { font-weight: 300; font-size: 34px; letter-spacing: 2px; margin-bottom: 30px; }
.prose h2 { font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin: 32px 0 8px; }
.prose p { color: var(--grey); }

/* Pied de page gris clair */
.site-foot {
  background: var(--foot);
  text-align: center;
  padding: 40px 16px 44px;
  font-size: 13px;
  line-height: 25px;
  color: var(--foot-text);
}
.site-foot p { margin: 0; }
.site-foot a { color: #494949; }
