/* ============================================================
   Compte Luxembourg / KNE FRANCE — static rebuild
   All sizes below are measured from the live GoDaddy site.
   Two desktop bands were sampled directly:
     >= 1536px  (measured at 1920)
     1280-1535  (measured at 1440)
   Smaller bands scale down from those.
   ============================================================ */

:root {
  --sage:     rgb(100, 115, 104);
  --dark:     rgb(22, 22, 22);
  --heading:  rgb(27, 27, 27);
  --body:     rgb(94, 94, 94);
  --muted:    rgb(169, 169, 169);
  --offwhite: rgb(247, 247, 247);
  --rule:     rgb(226, 226, 226);
  --white:    #fff;

  --serif: 'Cinzel', Georgia, serif;
  --sans:  'Source Sans Pro', arial, sans-serif;

  /* >= 1536px band */
  --container: 1232px;
  --hero-h:    85vh;
  --fs-h1: 64px;   --lh-h1: 76.8px;
  --fs-sub: 24px;  --lh-sub: 36px;
  --fs-h2: 48px;   --lh-h2: 67.2px;
  --fs-h4: 24px;   --lh-h4: 30px;
  --fs-p:  18px;   --lh-p:  27px;
  --fs-nav: 16px;  --ls-nav: 1.136px;
  --fs-faq: 18px;  --faq-w: 805px;
  --fs-nl: 36px;
  --team-img: 272px;
  --gap: 48px;
  --header-h: 72px;
  --logo-w: 283px; --logo-h: 147px;
}

@media (max-width: 1535px) {
  :root {
    --container: 1112px;
    --fs-h1: 62px;  --lh-h1: 74.4px;
    --fs-sub: 22px; --lh-sub: 33px;
    --fs-h2: 44px;  --lh-h2: 61.6px;
    --fs-h4: 22px;  --lh-h4: 27.5px;
    --fs-p:  16px;  --lh-p:  24px;
    --fs-nav: 14px; --ls-nav: .994px;
    --fs-faq: 16px; --faq-w: 725px;
    --fs-nl: 32px;
    --team-img: 242px;
  }
}

@media (max-width: 1279px) {
  :root {
    --container: 92vw;
    --fs-h1: 48px;  --lh-h1: 58px;
    --fs-sub: 20px; --lh-sub: 30px;
    --fs-h2: 36px;  --lh-h2: 50px;
    --fs-h4: 20px;  --lh-h4: 26px;
    --fs-p:  16px;  --lh-p:  24px;
    --fs-faq: 16px; --faq-w: 100%;
    --fs-nl: 28px;
    --team-img: 220px;
    --gap: 36px;
    --logo-w: 220px; --logo-h: 114px;
  }
}

@media (max-width: 767px) {
  :root {
    --fs-h1: 34px;  --lh-h1: 42px;
    --fs-sub: 18px; --lh-sub: 27px;
    --fs-h2: 28px;  --lh-h2: 38px;
    --fs-nav: 12px; --ls-nav: .8px;
    --logo-w: 160px; --logo-h: 83px;
    --header-h: 60px;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-p);
  line-height: var(--lh-p);
  font-weight: 400;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.container {
  width: var(--container);
  max-width: 92vw;
  margin: 0 auto;
}

/* ------------------- Fixed header ------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: transparent;
  transition: background .25s ease;
  z-index: 10000;
}

/* the bar only fills in once the page is scrolled, as on the live site */
.site-header.is-stuck { background: rgba(22, 22, 22, .9); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: relative;
}

.nav-link {
  font-family: var(--sans);
  font-size: var(--fs-nav);
  line-height: 24px;
  font-weight: 700;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--offwhite);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover { text-decoration: underline; }

/* logo overhangs the bar, centred on the viewport */
.header-logo {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: var(--logo-w);
  height: var(--logo-h);
}

.header-logo img { width: 100%; height: 100%; object-fit: contain; }

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

.hero {
  height: var(--hero-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* the live hero centres its text below the overhanging logo, which lands
     the block ~77px lower than a true vertical centre */
  padding-top: 154px;
  background:
    linear-gradient(rgba(0, 0, 0, .24), rgba(0, 0, 0, .24)),
    url("images/hero.jpg") center / cover no-repeat,
    var(--dark);
}

.hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--white);
  max-width: 62.7vw;   /* measured: 902/1440 and 1219/1920 */
  margin: 0 auto;
}

.hero p {
  font-family: var(--sans);
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
  font-weight: 700;
  color: var(--white);
  max-width: 54.5vw;   /* measured: 784/1440 */
  margin: 24px auto 0;
}

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

.section { padding: 56px 0; background: var(--white); }
.section--sage { background: var(--sage); }

.section-title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--sage);
  text-align: center;
  margin: 0 0 40px;
}

.section--sage .section-title { color: var(--white); }

.section-title hr {
  width: 50px;
  height: 2px;
  border: 0;
  background: var(--rule);
  margin: 24px auto 0;
}

/* ------------------- Tiles (raisons + cartes) ------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.reasons { row-gap: 56px; }

.tile { text-align: center; }

.tile h3 {
  font-family: var(--sans);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 400;
  color: var(--heading);
  margin: 0;
}

.section--sage .tile h3 { color: var(--white); }

.tile p {
  font-size: var(--fs-p);
  line-height: var(--lh-p);
  color: var(--body);
  margin: 28px 0 0;
}

.section--sage .tile p { color: var(--white); }

.tile figure { margin: 28px 0 0; }

.tile figure img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ------------------- FAQ ------------------- */

.faq-intro {
  text-align: center;
  font-size: var(--fs-p);
  line-height: var(--lh-p);
  color: var(--body);
  max-width: var(--faq-w);
  margin: 0 auto 56px;
}

.faq-intro a { color: var(--body); font-weight: 700; }

.faq { max-width: var(--faq-w); margin: 0 auto; }

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 22px 40px 22px 0;
  font-family: var(--sans);
  font-size: var(--fs-faq);
  line-height: 1.45;
  color: #000;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -3px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000;
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: rotate(180deg); }

.faq .answer { padding: 0 40px 22px 0; font-size: var(--fs-faq); line-height: 1.5; }
.faq .answer p { margin: 0 0 8px; }
.faq .answer ul { margin: 0; padding-left: 22px; }

/* ------------------- Actualité (carrousel) ------------------- */

.news-filters {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.news-filters button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--fs-faq);
  cursor: pointer;
  padding: 4px 0;
}

.news-filters button[aria-pressed="true"] { border-bottom-color: var(--white); }

.news-viewport { position: relative; padding: 0 44px; }

.news-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.news-track::-webkit-scrollbar { display: none; }

.news-card {
  flex: 0 0 243px;
  min-height: 188px;
  background: var(--white);
  padding: 20px 18px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card .date { font-size: 14px; line-height: 20px; color: var(--muted); }

.news-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 23px;
  font-weight: 400;
  color: var(--heading);
  margin: 0;
  flex: 1;
}

.news-card a { font-size: 15px; color: var(--body); text-decoration: none; }
.news-card a:hover { text-decoration: underline; }

.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

.news-arrow--prev { left: 0; }
.news-arrow--next { right: 0; }

/* ------------------- Équipe ------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(3, var(--team-img));
  gap: var(--gap);
  justify-content: center;
}

.member { text-align: center; }

.member img {
  width: var(--team-img);
  height: var(--team-img);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 28px;
}

.member h3 {
  font-family: var(--sans);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 400;
  color: var(--heading);
  margin: 0 0 24px;
}

.member p {
  font-size: var(--fs-p);
  line-height: var(--lh-p);
  font-style: italic;
  color: var(--body);
  margin: 0;
}

.member .more { display: none; }
.member.is-open .more { display: inline; }

.member .toggle {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-p);
  color: var(--heading);
  margin-top: 10px;
  padding: 0;
}

.member .toggle::before { content: "+ "; }
.member.is-open .toggle::before { content: "– "; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 8px 40px;
  border: 0;
  border-radius: 48px;
  background: var(--white);
  color: #000;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { background: var(--offwhite); }
.btn--upper { text-transform: uppercase; letter-spacing: 1.136px; }

.icon { width: 20px; height: 20px; flex: none; }

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

.contact { background: var(--sage); padding: 56px 0 0; }

.contact-directions { display: flex; justify-content: center; margin-bottom: 32px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.contact-col { padding: 0 18% 56px; }

.contact-col h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--white);
  margin: 0;
}

.contact-col h2 hr {
  width: 50px;
  height: 2px;
  border: 0;
  background: var(--rule);
  margin: 24px 0 0;
}

.contact-col h3 {
  font-family: var(--sans);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 400;
  color: var(--white);
  margin: 40px 0 0;
}

.contact-col p { color: var(--white); margin: 12px 0 0; }
.contact-col a:not(.btn) { color: var(--white); text-decoration: none; }
.contact-col .btn { margin-top: 24px; }

.contact-map { background: #e7e4de; min-height: 480px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* ------------------- Newsletter ------------------- */

.newsletter { background: var(--sage); padding: 56px 0; }

.newsletter .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.newsletter h2 {
  font-family: var(--sans);
  font-size: var(--fs-nl);
  line-height: 1.25;
  font-weight: 400;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--white);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--fs-p);
}

.newsletter input::placeholder { color: rgba(255, 255, 255, .85); }

/* ------------------- Footer ------------------- */

.site-footer { background: var(--dark); padding: 56px 0; text-align: center; }

.site-footer p { font-size: 16px; line-height: 24px; color: var(--muted); margin: 0; }

.site-footer nav { display: flex; justify-content: center; gap: 24px; margin: 24px 0; }

.site-footer nav a {
  font-size: 16px;
  letter-spacing: 1.136px;
  text-transform: uppercase;
  color: var(--offwhite);
  text-decoration: none;
}

.site-footer hr {
  width: 50px;
  height: 1px;
  border: 0;
  background: rgba(255, 255, 255, .25);
  margin: 24px auto;
}

/* ------------------- Messaging FAB ------------------- */

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, .25) 0 3px 18px 0;
}

.fab svg { width: 44px; height: 44px; display: block; }

/* ------------------- Cookie banner ------------------- */

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10001;
  width: 400px;
  max-width: calc(100vw - 48px);
  background: var(--sage);
  border-radius: 7px;
  padding: 24px;
  box-shadow: rgba(0, 0, 0, .3) 0 2px 6px 0;
}

.cookie-banner h4 {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 27.5px;
  font-weight: 400;
  color: var(--white);
  margin: 0 0 12px;
}

.cookie-banner p { font-size: 16px; line-height: 24px; color: var(--white); margin: 0 0 20px; }
.cookie-banner .btn { width: 100%; }
.cookie-banner[hidden] { display: none; }

/* ------------------- Page mention légale ------------------- */

/* The legal page has no hero: the bar is solid and tall enough to hold the logo */
.legal-page .site-header,
.legal-page .header-inner { height: 148px; }
.legal-page .site-header { background: var(--dark); }
.legal-page .header-logo { width: 200px; height: 104px; top: 16px; }

/* 148px clears the solid header, then 44px to the H1 as on the live page */
.legal { padding: 192px 0 80px; }

/* text column + illustration, as on the live page */
.legal-layout {
  display: grid;
  grid-template-columns: 725fr 339fr;
  gap: 48px;
  align-items: start;
}

.legal-illustration img { width: 100%; height: auto; }

.legal h1 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--sage);
  text-align: center;
  margin: 0 0 48px;
}

.legal h2 {
  font-family: var(--sans);
  font-size: var(--fs-h4);
  line-height: 1.125;
  font-weight: 400;
  color: var(--heading);
  margin: 48px 0 20px;
}

.legal h3 {
  font-family: var(--sans);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 400;
  color: var(--heading);
  margin: 32px 0 12px;
}

.legal p { margin: 0 0 20px; }
.legal ul { margin: 0 0 20px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--heading); }
.legal a { color: var(--sage); }

/* ------------------- Petits écrans ------------------- */

@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-illustration { order: -1; }
  .team { grid-template-columns: var(--team-img); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-col { padding: 0 4vw 48px; }
  .contact-map, .contact-map iframe { min-height: 320px; }
  .newsletter .container { flex-direction: column; }
  .newsletter h2 { white-space: normal; text-align: center; }
  .newsletter input { width: 100%; flex: none; }
}

@media (max-width: 767px) {
  .header-inner { padding: 0 16px; }
  .hero h1, .hero p { max-width: 88vw; }
  .hero { padding-top: 90px; }
  .news-viewport { padding: 0 28px; }
}
