/* ==========================================================================
   Ben's Consulting — design tokens & component styles (Bootstrap 5 base)
   ========================================================================== */
:root {
  --navy: #1c2e42;
  --navy-light: #25425c;
  --navy-dark: #101a26;
  --paper: #f8fafb;
  /* AA-safe alpha for navy text on the light/paper background — .66 is the
     computed minimum for 4.5:1 at these RGB values, .72 keeps a safety margin. */
  --navy-label: rgba(28,46,66,.72);
  /* Small uppercase "label" text (eyebrows, nav, lang switcher, badges):
     12px floor, scaling slightly on very wide viewports. */
  --fs-label: clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem);
  /* Shared gap between the General Manager block and the rest of the team
     grid — same value on the homepage teaser and pages/team.php. Equal to
     Bootstrap's own 1.5rem spacer (mb-4 / the row's g-4 gutter), named so
     both places reference one source of truth instead of matching by luck. */
  --team-gm-gap: 1.5rem;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.site-footer-compact :focus-visible {
  outline-color: #fff;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #334155;
  background: var(--paper);
}

h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
}

.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.btn-navy {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
  border-radius: 0;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .6rem 1.5rem;
}
.btn-navy:hover { background-color: var(--navy-light); border-color: var(--navy-light); color: #fff; }
.btn-outline-navy {
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 0;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .6rem 1.5rem;
  background: transparent;
}
.btn-outline-navy:hover { background-color: var(--navy); color: #fff; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--navy-label);
}

/* ---------- Header / nav ---------- */
.site-header { background: rgba(248,250,251,.95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(28,46,66,.12); }
.brand-tagline { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .12em; color: var(--navy-label); }
/* Logo is a non-square lockup (circle mark + wordmark stacked), so it's
   sized by height with the width left to scale automatically. */
.logo-img {
  object-fit: contain;
  mix-blend-mode: multiply;
  height: 64px;
  width: auto;
}
@media (min-width: 992px) {
  .logo-img { height: 96px; }
}
.footer-logo-img {
  object-fit: contain;
  height: 88px;
  width: auto;
}
@media (min-width: 992px) {
  .footer-logo-img { height: 116px; }
}
.main-nav { gap: .1rem; }
.nav-link-custom {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--navy-label);
  text-decoration: none;
  padding-block: 1rem;
  padding-inline: .25rem;
  min-height: 44px;
  white-space: nowrap;
}
.nav-link-custom:hover,
.nav-link-custom[aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- Language switcher (header only) ---------- */
.lang-pill-flag { display: inline-flex; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(28,46,66,.2); flex-shrink: 0; }
.lang-pill-flag svg { width: 100%; height: 100%; display: block; }
.lang-switcher-inline { gap: .1rem; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  min-height: 32px;
  padding-block: .25rem;
  padding-inline: .2rem;
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--navy-label);
  border-radius: .25rem;
}
.lang-pill-code { text-transform: uppercase; }
.lang-pill:hover { color: var(--navy); background: rgba(28,46,66,.06); }
.lang-pill.active { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding-inline: .6rem;
  border: 1px solid rgba(28,46,66,.2);
  font-size: .75rem;
  color: var(--navy);
}
.lang-dropdown-toggle::after { margin-inline-start: .3rem; }
.lang-dropdown-menu { max-width: calc(100vw - 1rem); }
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
}
.lang-dropdown-item.active, .lang-dropdown-item:active { background: var(--navy); color: #fff; }

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--navy);
  border: 1px solid rgba(28,46,66,.2);
}

/* ---------- Hero / ticker ---------- */
.ticker-strip { border-top: 1px solid rgba(28,46,66,.2); border-bottom: 1px solid rgba(28,46,66,.2); }
.ticker-strip span { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .2em; color: var(--navy-label); }
.hero-title { font-size: 2.5rem; font-weight: 600; line-height: 1.15; }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }

/* ---------- Hairline grid cards ---------- */
.hairline-grid { display: grid; gap: 1px; background: rgba(28,46,66,.15); border: 1px solid rgba(28,46,66,.15); }
.hairline-grid > * { background: #fff; padding: 2rem; }
.icon-circle {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid rgba(28,46,66,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}

/* "Exemple" callout on a methodology pillar card — visually set apart so it
   reads as an illustration, not an added promise. */
.pillar-example {
  background: var(--paper);
  border-inline-start: 2px solid rgba(28,46,66,.3);
  padding: .5rem .75rem;
  font-style: italic;
  color: #475569;
}
.pillar-example-label {
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--navy);
}

/* City schematic on "Où nous intervenons" — decorative, not to scale. */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; max-width: 760px; margin-inline: auto; padding-inline-start: 1.25rem; border-inline-start: 1px solid rgba(28,46,66,.2); }
.timeline-step { position: relative; display: flex; flex-direction: column; gap: .25rem; overflow-wrap: break-word; hyphens: auto; }
.timeline-step::before { content: ""; position: absolute; inset-inline-start: calc(-1.25rem - 4px); top: .35rem; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.timeline-num { color: var(--navy-label); font-weight: 600; }
@media (min-width: 992px) {
  .timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; max-width: none; padding-inline-start: 0; padding-top: 1.5rem; border-inline-start: 0; border-top: 1px solid rgba(28,46,66,.2); }
  .timeline-step::before { inset-inline-start: 0; top: calc(-1.5rem - 4px); }
}
.city-schematic { color: var(--navy); }
.city-schematic-label { font-size: var(--fs-label); font-weight: 500; color: var(--navy-label); }

/* Decorative Arabic word in the methodology hero — system font fallback,
   not the only carrier of meaning (the gloss right after it is). */

/* ---------- Team ---------- */
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: rgba(28,46,66,.8); color: #fff; font-weight: 700; font-size: 1.4rem;
}
.cert-badge { border: 1px solid rgba(28,46,66,.2); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; padding: .35rem .7rem; color: var(--navy); max-width: 100%; overflow-wrap: anywhere; }

/* Same photo box in every card; cards in a Bootstrap row already stretch to
   equal height (.h-100), so no fixed/min card height is set here. */
.team-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(28,46,66,.14); border-color: rgba(28,46,66,.4) !important; }
.team-card-photo-wrap { width: 110px; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid rgba(28,46,66,.2); }
.clamp-1 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 1; }

/* Name / role / bio type scale — readable at every size, never below 14px
   for the bio text itself. */
.team-card-name { font-size: 1.05rem; line-height: 1.3; }
.team-card-role { line-height: 1.4; }
.team-card-bio, .gm-bio {
  font-size: .875rem;
  line-height: 1.55;
  color: #475569;
}
.team-card-bio p, .gm-bio p { margin-bottom: .35rem; }
.team-card-bio p:last-child, .gm-bio p:last-child { margin-bottom: 0; }

/* Long emails and German compound words wrap cleanly instead of
   overflowing the card or touching its edges. */
.team-card-bio, .gm-bio, .team-card-contact {
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: pretty;
}

/* Contact links stay pinned to the card bottom (mt-auto); the border-top
   turns whatever gap ends up above it (row-stretch means it varies by
   content length) into a deliberate card-footer rather than dead space —
   same pattern already used by .testimonial-card's own bottom block. */
.team-card-contact {
  border-top: 1px solid rgba(28,46,66,.12);
  padding-top: .75rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; padding: 1.5rem; height: 100%; }
.testimonial-quote { font-size: .9rem; line-height: 1.6; color: #475569; }
.star-rating { color: #d97706; letter-spacing: 2px; }

/* ---------- Footer ---------- */
/* ---------- Compact footer ---------- */
.site-footer-compact { background: var(--navy); padding-block: .75rem; }
@media (min-width: 768px) { .site-footer-compact { padding-block: 1rem; } }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  padding-block: .75rem;
}
@media (min-width: 768px) { .footer-grid { gap: 1.5rem; } }

.footer-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; font-weight: 700; margin-bottom: .5rem; }
.footer-muted { color: rgba(255,255,255,.75); }
.footer-small { font-size: .8125rem; line-height: 1.4; }
.footer-tagline { font-size: .75rem; line-height: 1.4; }
.footer-copyright { font-size: .75rem; }

.footer-links-columns { column-count: 2; column-gap: 1rem; }
@media (min-width: 768px) and (max-width: 1199.98px) { .footer-links-columns { column-count: 1; } }
.footer-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .8125rem;
  display: inline-block;
  padding-block: .25rem;
  min-height: 24px;
  break-inside: avoid;
}
.footer-links a:hover { color: #fff; }

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: .75rem;
  padding-inline-end: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}
.footer-legal-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .75rem; }
.footer-legal-inline a { color: rgba(255,255,255,.75); text-decoration: none; padding-block: .25rem; }
.footer-legal-inline a:hover { color: #fff; }
.footer-legal-inline span { color: rgba(255,255,255,.35); }

.ecosystem-link { color: rgba(255,255,255,.85); font-size: .8125rem; text-decoration: underline; }
.border-white-10 { border-color: rgba(255,255,255,.12) !important; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(1.25rem + env(safe-area-inset-right, 0px));
  z-index: 1030;
  width: 48px; height: 48px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
@media (min-width: 768px) {
  .whatsapp-float { width: 56px; height: 56px; }
}

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 0; border-color: rgba(28,46,66,.25); }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(28,46,66,.3); }
label.form-label { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; color: #64748b; }

/* ---------- Utility ---------- */
.section-py { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section-py { padding-top: 6rem; padding-bottom: 6rem; } }

/* ---------- Administrative services pages ---------- */
.breadcrumb-trail { font-size: var(--fs-label); color: var(--navy-label); }
.breadcrumb-trail a { color: var(--navy-label); }
.breadcrumb-trail a:hover, .breadcrumb-trail a:focus-visible { color: var(--navy); }

/* Entry cards ("Je suis un particulier / une entreprise") — overview page and homepage */
.audience-card {
  border: 1px solid rgba(28,46,66,.2);
  background: #fff;
  padding: 1.75rem;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.audience-card:hover, .audience-card:focus-visible { border-color: var(--navy); box-shadow: 0 6px 20px rgba(28,46,66,.08); color: inherit; }
.audience-icon { width: 3rem; height: 3rem; }
.audience-cta { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--navy); }

.task-name { font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; font-weight: 600; color: var(--navy); }
.task-result { color: #475569; border-inline-start: 2px solid rgba(28,46,66,.25); padding-inline-start: .75rem; }

.checklist li { position: relative; padding-inline-start: 1.75rem; margin-bottom: .5rem; }
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: .1rem;
  top: .35em;
  width: .85rem;
  height: .45rem;
  border-inline-start: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}

.faq-item { border-top: 1px solid rgba(28,46,66,.2); padding: 1rem 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(28,46,66,.2); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: .5rem; }

/* Contact form: "type of request" radio group */
.request-type { border: 0; padding: 0; margin: 0; }
.request-type legend { float: none; width: auto; margin-bottom: .5rem; padding: 0; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; color: #64748b; }

/* ---------- Services dropdown (desktop nav) + nested links (mobile menu) ---------- */
.nav-dropdown { position: relative; }
.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--navy-label);
}
.nav-caret:hover, .nav-caret[aria-expanded="true"] { color: var(--navy); }
.nav-dropdown-menu { border-radius: 0; border: 1px solid rgba(28,46,66,.2); font-size: .8125rem; min-width: 15rem; margin-top: 0; }
.nav-dropdown-menu .dropdown-item { display: flex; align-items: center; min-height: 44px; padding: .5rem 1rem; color: var(--navy); }
.nav-dropdown-menu .dropdown-item.nav-dropdown-sub { padding-inline-start: 2rem; }
.nav-dropdown-menu .dropdown-item[aria-current="page"] { font-weight: 600; background: rgba(28,46,66,.06); }
.nav-dropdown-menu .dropdown-item:active { background: var(--navy); color: #fff; }
/* Between xl and xxl the header is at its tightest (German/Spanish labels): trim the tagline tracking so the row never overflows. */
@media (min-width: 1200px) and (max-width: 1399.98px) { .brand-tagline { letter-spacing: .06em; max-width: 5.75rem; line-height: 1.25; } .nav-link-custom { letter-spacing: 0; } }
.nav-sub-links { gap: .25rem; margin-top: -.5rem; }
.nav-link-sub { padding-inline-start: 1.25rem; }

/* Footer: one compact line with the administrative-services pages */
.footer-links-sub { column-span: all; padding-top: .25rem; font-size: .8125rem; line-height: 1.5; }
/* Inline links: vertical padding grows the tap area without adding height to the row. */
.footer-links-sub a { display: inline; padding-block: .4rem; min-height: 0; }

/* ---------- "Notre histoire" — editorial layout ---------- */
.story-title { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.15; }
.story-pullquote {
  margin: 2rem 0 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  line-height: 1.55;
  color: var(--navy);
}
@media (min-width: 768px) { .story-pullquote { padding-inline-start: 1.75rem; } }

/* ~65 characters per line: comfortable reading width */
.story { max-width: 42rem; margin-inline: auto; }
.story h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 3.5rem; margin-bottom: 1.25rem; }
.story h2:first-child { margin-top: 0; }
.story p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.25rem; }
.story strong { color: var(--navy); font-weight: 600; }
.story-lead {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem) !important;
  line-height: 1.4 !important;
  color: var(--navy);
  border-block: 1px solid rgba(28,46,66,.2);
  padding-block: 1.25rem;
  margin-block: 1.5rem !important;
}
.story-anecdote { font-style: italic; }
.story-method-link { margin-top: 2rem; }
.story-method-link a { color: var(--navy); font-weight: 600; }

.story-commitment {
  height: 100%;
  background: var(--paper);
  border: 1px solid rgba(28,46,66,.2);
  border-top: 3px solid var(--navy);
  padding: 1.5rem;
}
.story-closing { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); line-height: 1.5; }
.story-cta { border-radius: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .7rem 1.5rem; }
.story-cta.btn-outline-light:hover { color: var(--navy); }

/* Homepage teaser */
.story-teaser p { font-size: 1.0625rem; line-height: 1.75; }

/* ---------- "Plan du site" ---------- */
.sitemap-tree { list-style: none; margin: 0; padding: 0; column-gap: 3rem; }
@media (min-width: 768px) { .sitemap-tree { column-count: 2; } }
.sitemap-tree > li { break-inside: avoid; padding-block: 1rem; border-top: 1px solid rgba(28,46,66,.15); }
.sitemap-top { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
a.sitemap-top:hover, a.sitemap-top:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sitemap-tree ul { list-style: none; margin: .5rem 0 0; padding: 0 0 0 1rem; border-inline-start: 1px solid rgba(28,46,66,.2); }
.sitemap-tree ul a { display: inline-block; padding-block: .2rem; color: #334155; text-decoration: none; }
.sitemap-tree ul a:hover, .sitemap-tree ul a:focus-visible { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Quote template (structure only, never amounts) ---------- */
.quote-template { border: 1px solid rgba(28,46,66,.2); background: #fff; }
.quote-row { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(28,46,66,.12); }
.quote-row:first-child { border-top: 0; }
.quote-row-head { display: none; background: var(--paper); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; color: var(--navy-label); font-weight: 600; }
.quote-amount { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); font-weight: 600; }
@media (min-width: 768px) {
  .quote-row { grid-template-columns: 15rem 1fr 8rem; gap: 1.5rem; align-items: start; }
  .quote-row-head { display: grid; }
  .quote-amount { text-align: end; }
}

/* ---------- Legal notice: identity blocks ---------- */
.legal-dl { display: grid; grid-template-columns: 1fr; gap: .15rem 1.5rem; margin: 0; }
.legal-dl dt { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--navy-label); font-weight: 600; margin-top: .75rem; }
.legal-dl dd { margin: 0; color: #334155; }
@media (min-width: 768px) {
  .legal-dl { grid-template-columns: 17rem 1fr; }
  .legal-dl dt { margin-top: 0; padding-top: .35rem; }
  .legal-dl dd { padding-block: .35rem; border-bottom: 1px solid rgba(28,46,66,.1); }
  .legal-dl dt { border-bottom: 1px solid rgba(28,46,66,.1); padding-bottom: .35rem; }
}
