/* Evidence Solutions : charte reprise de l'ancien site (photo plein écran, cartes grises, ligne du temps) */
@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fjalla One"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/fjalla-one-latin-400-normal.woff2") format("woff2"); }

:root {
  --navy: #083b66;
  --navy-dark: #052a4a;
  --slate: #2c3f52;
  --tan: #ba9d77;
  --sky: #51aafe;
  --card: #ebebeb;
  --ink: #2b2b2b;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --head: "Fjalla One", "Arial Narrow", Impact, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 1.05rem; line-height: 1.6;
  color: var(--ink); background: var(--navy-dark);
  -webkit-font-smoothing: antialiased;
}
/* Photo plein écran fixe, avec léger voile bleu */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: var(--navy-dark) url("../images/fond-immeuble.jpg") center 40% / cover no-repeat;
}
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(8,59,102,0.45), rgba(5,42,74,0.7)); }

img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.2em; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 0.5rem; top: -4rem; background: #fff; color: var(--navy); padding: 0.7rem 1rem; font-weight: 700; z-index: 20; }
.skip:focus { top: 0.5rem; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(8, 59, 102, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 0.6rem; }
.brand { display: block; line-height: 0; }
.logo { display: block; height: 70px; width: auto; border-radius: 2px; transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.brand:hover .logo { transform: scale(1.06) rotate(-1.5deg); }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; color: #fff; text-decoration: none; text-transform: uppercase;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; padding: 0.45rem 0;
  border-bottom: 2px solid transparent; transition: border-color 0.25s;
}
.site-nav a:hover { color: #fff; border-color: var(--tan); }
.site-nav a[aria-current="page"] { border-color: var(--tan); }
.site-nav .nav-contact a { border: 2px solid #fff; border-radius: 999px; padding: 0.45rem 1.1rem; transition: background-color 0.25s, color 0.25s; }
.site-nav .nav-contact a:hover { background: #fff; color: var(--navy); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: #fff; color: #2b2b2b; border: 0; border-radius: 999px;
  padding: 1.05rem 2.6rem; text-decoration: none; text-transform: uppercase;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--tan); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3); }

/* ---------- Accueil : plein écran ---------- */
.hero { min-height: min(calc(100vh - 90px), 780px); min-height: min(calc(100svh - 90px), 780px); display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; text-align: center; color: #fff; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem; gap: 1.5rem; text-shadow: 0 2px 14px rgba(5, 30, 55, 0.45); }
.hero h1 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.34em; font-size: clamp(1.6rem, 4.7vw, 5.2rem); line-height: 1.1; margin-right: -0.34em; white-space: nowrap; }
.tagline { margin: 1.2rem 0 0; font-weight: 300; text-transform: uppercase; letter-spacing: 0.3em; font-size: clamp(0.85rem, 1.8vw, 1.25rem); }
.hero .btn { text-shadow: none; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 1040px; }
.pillars article { transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.pillars article:hover { transform: translateY(-8px); }
.pillars h2 { text-transform: uppercase; font-weight: 700; letter-spacing: 0.16em; font-size: clamp(0.9rem, 1.45vw, 1.25rem); white-space: nowrap; margin-bottom: 0.7rem; }
.pillars h2::after { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--tan); margin: 0.7rem auto 0; transition: width 0.35s; }
.pillars article:hover h2::after { width: 5rem; }
.pillars p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ---------- Bandeau citation ---------- */
.quote { background: rgba(8, 59, 102, 0.82); color: #fff; text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.quote blockquote { margin: 0 auto; max-width: 22em; font-weight: 300; text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.3rem, 3.4vw, 2.4rem); line-height: 1.4; }
.quote blockquote::before { content: ""; display: block; width: 3rem; height: 3px; background: var(--tan); margin: 0 auto 1.5rem; }

/* ---------- Titres de page et cartes ---------- */
.page-head { text-align: center; color: #fff; padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(1.5rem, 4vw, 3rem); text-shadow: 0 2px 14px rgba(5, 30, 55, 0.5); }
.page-head h1 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.24em; font-size: clamp(1.4rem, 4.6vw, 3.2rem); margin-right: -0.24em; }
.lead { margin: 1.2rem auto 0; max-width: 38em; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; }
.card, .about, .legal, .post, .refs-card { background: var(--card); box-shadow: 0 10px 30px rgba(5, 30, 55, 0.25); }
.section-gap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.card-title { font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.1rem); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

/* ---------- Ligne du temps (services) ---------- */
.timeline { position: relative; list-style: none; margin: 0 auto; padding: 0 0 3rem; max-width: 1100px; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255, 255, 255, 0.85); }
.tl-item { position: relative; width: 50%; padding: 0 3.2rem 2.6rem 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.6rem 3.2rem; }
.tl-item::after { content: ""; position: absolute; top: 2rem; right: -0.55rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--tan); transition: transform 0.3s; }
.tl-item:nth-child(even)::after { right: auto; left: -0.55rem; }
.tl-item:hover::after { transform: scale(1.5); }
.tl-card { position: relative; background: var(--card); padding: 1.6rem 1.8rem; box-shadow: 0 10px 30px rgba(5, 30, 55, 0.25); transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s; }
.tl-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(5, 30, 55, 0.35); }
.tl-card::after { content: ""; position: absolute; top: 1.7rem; right: -0.7rem; border: 0.7rem solid transparent; border-right: 0; border-left: 0.7rem solid var(--card); }
.tl-item:nth-child(even) .tl-card::after { right: auto; left: -0.7rem; border-left: 0; border-right: 0.7rem solid var(--card); }
.tl-card h2 { margin-bottom: 0.9rem; }
.tl-card p { margin: 0 0 0.9rem; }
.tl-card p:last-child { margin-bottom: 0; }
.pull { border-left: 4px solid var(--tan); padding-left: 1rem; font-weight: 700; }
.plain-list { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.plain-list li::marker { color: var(--tan); }
.instruments { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; font-weight: 700; }
.instruments li { display: flex; align-items: center; gap: 0.6rem; transition: transform 0.25s; }
.instruments li::before { content: ""; width: 1rem; height: 1rem; flex: none; background: var(--c); transition: transform 0.25s; }
.instruments li:hover { transform: translateX(6px); }
.instruments li:hover::before { transform: rotate(45deg) scale(1.1); }
.i1 { --c: var(--navy); } .i2 { --c: var(--tan); } .i3 { --c: var(--slate); } .i4 { --c: var(--sky); }

/* ---------- Références : tuiles à survol, comme l'ancien site ---------- */
.refs-card { padding: clamp(1.5rem, 4vw, 3rem); }
.refs-title { text-align: center; font-weight: 700; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.9rem); margin-bottom: 0.4rem; }
.refs-title::after { content: ""; display: block; width: 140px; height: 3px; background: var(--tan); margin: 0.8rem auto 2rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.tile { position: relative; overflow: hidden; background: #fff; aspect-ratio: 4 / 3; box-shadow: 0 4px 14px rgba(5, 30, 55, 0.15); }
.tile-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0.4rem; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.tile-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tile:hover .tile-logo, .tile:focus-within .tile-logo { transform: scale(1.08); }
.tile-cap { position: absolute; inset: 0; background: var(--slate); color: #fff; padding: 1.3rem 1.4rem; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 0.6rem; opacity: 0; transform: translateY(100%); transition: transform 0.45s cubic-bezier(.2,.7,.2,1), opacity 0.35s; }
.tile:hover .tile-cap, .tile:focus-within .tile-cap { opacity: 1; transform: none; }
.tile-cap h3 { font-family: var(--head); font-size: 1.5rem; }
.tile-cap p { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.tile-cap a { align-self: center; background: var(--tan); color: #fff; text-decoration: none; padding: 0.5rem 1.4rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; transition: background-color 0.2s; }
.tile-cap a:hover { background: #fff; color: var(--slate); }

/* ---------- Appel à contact et pied de page ---------- */
.cta { background: var(--slate); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.contact-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.cb { display: flex; align-items: stretch; color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.06); transition: transform 0.25s, background-color 0.25s; }
.cb:hover { color: #fff; transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); }
.cb-ico { flex: none; width: 64px; display: grid; place-items: center; background: var(--sky); }
.cb-ico svg { width: 26px; height: 26px; fill: #fff; }
.cb-txt { display: flex; align-items: center; padding: 0.9rem 1.1rem; font-weight: 700; overflow-wrap: anywhere; font-size: 0.95rem; }
.site-footer { background: rgba(5, 30, 55, 0.94); color: #d5dde6; font-size: 0.92rem; padding-block: 1.4rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--tan); }

/* ---------- Qui sommes-nous ---------- */
.about { display: grid; grid-template-columns: minmax(200px, 4fr) minmax(0, 8fr); gap: 2rem 3.5rem; align-items: start; padding: clamp(1.5rem, 4vw, 3rem); margin-bottom: 2.5rem; }
.portrait { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--tan); background: var(--slate); transition: box-shadow 0.4s, border-color 0.4s; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.portrait:hover { box-shadow: 0 14px 34px rgba(8, 59, 102, 0.35); border-color: var(--navy); }
.portrait:hover img { transform: scale(1.07); }
.about h2 { font-family: var(--head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-decoration: underline; text-underline-offset: 0.18em; margin-bottom: 1rem; }
.about .body p { max-width: 38em; margin: 0 0 1rem; }
.more summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.more[open] summary { margin-bottom: 0.6rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.fact b { display: block; font-family: var(--head); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--navy); transition: color 0.25s; }
.fact:hover b { color: var(--tan); }
.contact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; font-weight: 700; display: grid; gap: 0.3rem; }
.about-more { padding: clamp(1.5rem, 4vw, 3rem); background: var(--card); box-shadow: 0 10px 30px rgba(5, 30, 55, 0.25); margin-bottom: 3rem; }
.about-more h2 { font-family: var(--head); font-size: 1.9rem; text-decoration: underline; text-underline-offset: 0.18em; margin-bottom: 1rem; }
.about-more p { max-width: 46em; }

/* ---------- Actualités, mentions, 404 ---------- */
.post { max-width: 46em; margin: 0 auto 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); }
.post time { font-size: 0.92rem; font-weight: 700; color: #555; }
.post h2 { font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.3rem 0 0.8rem; text-decoration: underline; text-underline-offset: 0.18em; }
.legal { margin-bottom: 3rem; padding: clamp(1.5rem, 4vw, 3rem); }
.legal h2 { font-family: var(--head); font-size: 1.5rem; margin: 2rem 0 0.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal dl { max-width: 42em; }
.legal dt { font-weight: 700; margin-top: 0.6rem; }
.legal dd { margin: 0; }
.not-found { min-height: 50vh; }
.not-found .actions { margin-top: 2rem; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; }
  .pillars { grid-template-columns: 1fr; gap: 1.6rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; gap: 0.1rem 1.1rem; }
  .site-nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .timeline::before { left: 0.95rem; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.8rem 2.8rem; }
  .tl-item::after, .tl-item:nth-child(even)::after { left: 0.4rem; right: auto; top: 1.8rem; }
  .tl-card::after, .tl-item:nth-child(even) .tl-card::after { right: auto; left: -0.7rem; border-left: 0; border-right: 0.7rem solid var(--card); }
  .hero h1 { letter-spacing: 0.2em; margin-right: -0.2em; font-size: clamp(1.6rem, 8vw, 3rem); white-space: normal; }
  .instruments { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .tile { aspect-ratio: auto; display: flex; flex-direction: column; }
  .tile-logo { position: static; height: 150px; padding: 1.2rem; }
  .tile-cap { position: static; opacity: 1; transform: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.seo-gap { padding-top: 0; }
.seo-card { padding: clamp(1.5rem, 4vw, 3rem); }
.seo-card p { max-width: 52em; margin: 1rem 0 0; }
