/* EAB — EXPERT ASSUR BTP — bleu marine & or (charte du logo), Montserrat + IBM Plex Sans. */
:root {
  --ink: #0b1f3a;
  --ink-soft: #4a5568;
  --paper: #f4f6fa;
  --paper-2: #e6ecf5;
  --white: #ffffff;
  --line: #d3dbe8;
  --copper: #b8893b;
  --copper-d: #8a6422;
  --forest: #0a2d57;
  --navy-d: #061b38;
  --ok: #2a6b4f;
  --shadow: 0 14px 34px rgba(10, 45, 87, 0.09);
  --radius: 18px;
  --max: 1120px;
  --sans: "IBM Plex Sans", "Source Sans 3", system-ui, sans-serif;
  --serif: "Montserrat", "IBM Plex Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--copper-d); }
a:hover { color: var(--copper); }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 12px; background: #fff; padding: .4rem .7rem; z-index: 20; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.topbar {
  background: var(--navy-d);
  color: #dfe6f1;
  font-size: .82rem;
  letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar a { color: inherit; text-decoration: none; }
header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brandrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
.mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(145deg, var(--forest), #163832);
  color: #f4f6fa; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 650; letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand h1 { margin: 0; font-size: 1.05rem; letter-spacing: .12em; }
.brand p { margin: 0; font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .16em; }
nav.primary { display: flex; gap: .2rem; flex-wrap: wrap; }
nav.primary a {
  text-decoration: none; color: var(--ink);
  padding: .45rem .7rem; border-radius: 999px; font-size: .92rem;
}
nav.primary a:hover, nav.primary a[aria-current="page"] {
  background: var(--paper-2); color: var(--ink);
}
.cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--copper); color: #fff !important;
  text-decoration: none; border-radius: 999px;
  padding: .7rem 1.15rem; font-weight: 600;
  border: 0;
}
.cta:hover { background: var(--copper-d); }
.cta.ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--line);
}
.hero {
  padding: 4.2rem 0 3.4rem;
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(184,137,59,.16), transparent 55%),
    linear-gradient(180deg, var(--white), var(--paper));
}
.hero.photo {
  position: relative;
  overflow: hidden;
  padding: 4.6rem 0 3.6rem;
  background: var(--ink);
  color: #f4f6fa;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("/img/hero.jpg") center 62% / cover no-repeat;
  filter: saturate(.85);
}
.hero.photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,27,56,.78) 0%, rgba(6,27,56,.55) 48%, rgba(6,27,56,.28) 100%),
    linear-gradient(180deg, rgba(6,27,56,.2), rgba(6,27,56,.45));
}
.hero.photo .wrap { position: relative; z-index: 1; }
.hero.photo .kicker { color: #e3c488; }
.hero.photo .display,
.hero.photo .hero-copy { color: #f4f6fa; }
.hero.photo .lede { color: #cfd9e8; }
.hero.photo .cta.ghost { color: #f4f6fa !important; border-color: rgba(244,239,230,.35); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.4rem; align-items: center; }
.stat-visual {
  width: 100%; height: 160px; object-fit: cover; object-position: 70% 50%;
  border-radius: 12px; margin-bottom: 1rem;
}
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  padding: .7rem 1rem .9rem; font-size: .88rem; color: var(--ink-soft);
}
.shot.portrait img { height: 360px; object-position: 50% 18%; }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem;
}
.gallery.two { grid-template-columns: 1.2fr .8fr; }
.gallery .shot img { height: 220px; }
.card.has-media { padding: 0 0 1.15rem; overflow: hidden; }
.card-media {
  display: block; position: relative; margin-bottom: .9rem;
}
.card-media img { width: 100%; height: 168px; object-fit: cover; }
.card.has-media .tag, .card.has-media h4, .card.has-media p { margin-left: 1.15rem; margin-right: 1.15rem; }
.card.has-media .tag { margin-top: .15rem; }
.picto {
  position: absolute; left: .8rem; bottom: .8rem;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.95); color: var(--forest);
  box-shadow: 0 8px 20px rgba(10,45,87,.2);
}
.picto img { width: 24px; height: 24px; }
.page-hero.photo {
  position: relative;
  min-height: 280px;
  display: grid; align-items: end;
  color: #f4f6fa;
  background: var(--ink) var(--hero) center/cover no-repeat;
  padding: 4.4rem 0 2rem;
}
.page-hero.photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,27,56,.15), rgba(6,27,56,.78));
}
.page-hero.photo .wrap { position: relative; z-index: 1; }
.page-hero.photo .kicker { color: #e3c488; }
.page-hero.photo .crumbs, .page-hero.photo .lede { color: #cfd9e8; }
.page-hero.photo .crumbs a { color: #f4f6fa; }
.product-cta { margin-top: 2rem; }
.kicker {
  color: var(--copper-d); font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 .7rem;
}
h2.display {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.12; margin: 0 0 1rem; letter-spacing: -.02em;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 42rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.statcard {
  background: var(--ink); color: #f4f6fa; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.statcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 0; }
.statcard dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #b9c6da; }
.statcard dd { margin: .25rem 0 0; font-family: var(--serif); font-size: 1.55rem; }
section { padding: 3.2rem 0; }
section.alt { background: var(--white); border-block: 1px solid var(--line); }
h3.sec {
  font-family: var(--serif); font-size: 1.8rem; margin: 0 0 .4rem; font-weight: 700;
}
.intro { color: var(--ink-soft); max-width: 46rem; }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem; text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-2px); border-color: #b8893b; }
.card .tag {
  display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest); font-weight: 700; margin-bottom: .55rem;
}
.card h4 { margin: 0 0 .45rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.panel {
  background: var(--paper-2); border-radius: var(--radius); padding: 1.4rem;
  border: 1px solid var(--line);
}
.panel h4 { margin-top: 0; }
ul.clean { padding-left: 1.1rem; }
ul.clean li { margin: .35rem 0; }
form { display: grid; gap: .8rem; }
label { font-size: .88rem; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.note { font-size: .85rem; color: var(--ink-soft); }
footer.site {
  background: var(--ink); color: #cfd9e8; padding: 2.4rem 0 1.4rem; margin-top: 1rem;
}
footer.site a { color: #f4f6fa; }
.footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.legal { border-top: 1px solid #1f4170; margin-top: 1.6rem; padding-top: 1rem; font-size: .82rem; color: #a9b8cf; }
.badge {
  display: inline-block; border: 1px solid #3b5f93; border-radius: 999px;
  padding: .2rem .6rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}
.page-hero { padding: 2.6rem 0 1.4rem; }
.crumbs { font-size: .88rem; color: var(--ink-soft); }
.crumbs a { color: inherit; }
article.prose { max-width: 46rem; }
article.prose h3 { font-family: var(--serif); font-size: 1.5rem; }
article.prose h4 { margin-bottom: .3rem; }
.table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
}
.table th, .table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.table th { background: var(--paper-2); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
nav.mobile { display: none; }
nav.mobile summary {
  list-style: none; cursor: pointer; font-weight: 600;
  padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px;
}
nav.mobile summary::-webkit-details-marker { display: none; }
nav.mobile .sheet {
  display: grid; gap: .2rem; margin-top: .6rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: .5rem;
}
nav.mobile .sheet a {
  text-decoration: none; color: var(--ink); padding: .55rem .7rem; border-radius: 10px;
}
nav.mobile .sheet a[aria-current="page"], nav.mobile .sheet a:hover { background: var(--paper-2); }
@media (max-width: 860px) {
  .hero-grid, .cards, .split, .footgrid, .statcard dl, .gallery, .gallery.two { grid-template-columns: 1fr; }
  nav.primary { display: none; }
  nav.mobile { display: block; width: 100%; }
  .brandrow { flex-wrap: wrap; }
  .topbar .wrap { align-items: center; }
  .topbar span:last-child { white-space: nowrap; }
  .hero.photo { padding: 3rem 0 2.2rem; }
  .hero.photo::after {
    background: linear-gradient(180deg, rgba(6,27,56,.78), rgba(6,27,56,.88));
  }
  .hero.photo .display,
  .hero.photo .lede,
  .hero.photo .hero-copy { color: #f4f6fa; }
  .stat-visual { height: 140px; }
  .card-media img { height: 150px; }
  .gallery .shot img { height: 200px; }
}


/* Logo EXPERT ASSUR BTP — en-tête sur deux niveaux : logo grand format, puis barre de navigation marine */
header.site { border-bottom: 0; box-shadow: 0 6px 20px rgba(10,45,87,.08); }
.brandrow { padding: 1.3rem 0; }
.brand { flex: 0 0 auto; }
.brand img { height: 120px; width: auto; display: block; }
.navbar { background: var(--forest); border-bottom: 3px solid var(--copper); }
.navbar nav.primary { gap: .1rem; }
.navbar nav.primary a {
  color: #eef2f9; padding: .85rem 1.3rem; border-radius: 0;
  font-family: var(--serif); font-size: .84rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
}
.navbar nav.primary a:hover, .navbar nav.primary a[aria-current="page"] {
  background: var(--navy-d); color: #fff; box-shadow: inset 0 -3px 0 var(--copper);
}
.cta { background: var(--copper); color: #fff !important; font-family: var(--serif); font-size: .86rem; letter-spacing: .04em; border-radius: 6px; padding: .85rem 1.3rem; }
.cta:hover { background: var(--copper-d); }
.cta.ghost { border-radius: 6px; }
.kicker { color: var(--copper-d); }
.card { border-radius: 10px; border-top: 3px solid var(--copper); }
.card .tag { color: var(--forest); }
.statcard { background: var(--forest); }
.statcard dd { font-weight: 700; }
.picto { color: var(--forest); }
footer.site { background: var(--navy-d); border-top: 4px solid var(--copper); }
.foot-logo { display: inline-block; background: #fff; border-radius: 10px; padding: .8rem 1.2rem; margin-bottom: 1rem; }
.foot-logo img { height: 96px; width: auto; display: block; }
@media (max-width: 860px) {
  .brandrow { gap: .8rem; }
  .brand img { height: 60px; }
  .brandrow { flex-wrap: nowrap; }
  .brandrow .cta { display: none; }
  .navbar { display: none; }
  nav.mobile { width: auto; }
  nav.mobile .sheet { position: absolute; right: 1.2rem; left: 1.2rem; z-index: 20; }
  .foot-logo img { height: 64px; }
}
