/* Kordée — one stylesheet shared by the French and English pages. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Official palette (Palette couleurs, Atelier Grafico Giuseppe Bivacqua, Oct 2026) */
  --navy: #232e7c;
  --navy-dark: #1a2263;   /* hover and footer only */
  --gold: #ffd743;        /* brand yellow: rules, icons, overlays; never small text on white */
  --sky: #bdd3df;         /* brand light blue */
  --cream: #f5efdf;
  --ink: #1b1b1f;
  --muted: #55565e;
  --line: #e4e0d5;
  --white: #ffffff;

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 24px;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 100; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Gold rule under section titles, as on the original site */
.rule { display: block; width: 72px; height: 3px; background: var(--gold); border: 0; margin: 22px 0 26px; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 10px;
}
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 4px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  line-height: 1.2;
}
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-link { color: var(--white); padding-left: 6px; padding-right: 6px; text-decoration: underline; text-underline-offset: 4px; }
.text-link { color: var(--navy); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .25s, box-shadow .25s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header.is-solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }

.logo { flex: none; display: block; transition: opacity .25s, visibility .25s; }
/* At the top of the page the hero shows the big logo, so the header one waits until the visitor scrolls. */
.site-header:not(.is-solid):not(.menu-open) .logo { opacity: 0; visibility: hidden; }
.logo img { width: 180px; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--white);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.is-solid .nav-links a { color: var(--ink); text-shadow: none; }

.lang { display: flex; gap: 2px; font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.lang a, .lang span { padding: 4px 7px; border-radius: 3px; text-decoration: none; color: var(--white); }
.lang span { background: rgba(255,255,255,.22); }
.is-solid .lang a { color: var(--ink); }
.is-solid .lang span { background: var(--cream); color: var(--ink); }

.nav .btn { padding: 11px 18px; font-size: 14px; }

.menu-toggle {
  display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--white);
}
.is-solid .menu-toggle, .menu-open .menu-toggle { color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 28px var(--gutter); overflow-y: auto;
  }
  .menu-open .nav { display: flex; }
  .menu-open.site-header { background: var(--white); }
  .nav-links { flex-direction: column; gap: 18px; }
  .nav-links a, .lang a { color: var(--ink); text-shadow: none; font-size: 19px; }
  .lang span { background: var(--cream); color: var(--ink); }
  .lang a, .lang span { font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 860px); min-height: min(100svh, 860px);
  display: flex; align-items: flex-end;
  color: var(--white);
  background: #2a2a2a url("../img/hero.jpg") 82% 22% / cover no-repeat;
  padding: calc(var(--header-h) + 60px) 0 clamp(56px, 10vh, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    /* Keep the upper part light so the navy logo stands out; darken only behind the white text below it. */
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) var(--hero-light, 46%), rgba(0,0,0,.5) calc(var(--hero-light, 46%) + 12%), rgba(0,0,0,.6) 100%),
    linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 60%);
}
.hero .wrap { position: relative; width: 100%; }
.hero-logo { width: clamp(240px, 36vw, 460px); height: auto; margin-bottom: clamp(24px, 4vw, 40px); filter: drop-shadow(0 0 22px rgba(245,239,223,.75)); }
.hero h1 { color: var(--white); font-size: clamp(42px, 7vw, 76px); font-weight: 700; max-width: 11ch; margin-bottom: 18px; }
.hero p { font-size: clamp(17px, 1.8vw, 20px); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-cream { background: var(--cream); }

/* Intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro-text p { font-size: 18px; color: var(--muted); }
.intro-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* Challenges */
.challenges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 56px; }
.challenge h3 {
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); margin: 18px 0 12px; line-height: 1.4;
}
.challenge p { color: var(--muted); font-size: 16px; }
.icon { width: 40px; height: 40px; color: var(--navy); }
.icon svg { stroke-width: 1.5; }
.icon svg { width: 100%; height: 100%; display: block; }

/* Solution cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 6px; padding: 32px 28px; display: flex; flex-direction: column;
}
.card h3 { color: var(--navy); }
.card p { color: var(--muted); font-size: 16px; flex: 1; }
.card .text-link { align-self: flex-start; }

/* Detailed service blocks (image + text, alternating) */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split-img { position: relative; overflow: hidden; }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split:nth-of-type(odd) .split-img { border-top-right-radius: var(--radius); }
.split:nth-of-type(even) .split-img { order: 2; border-bottom-right-radius: 0; border-top-left-radius: var(--radius); }
.split:nth-of-type(even) { background: #f7f7f5; }
.split-text { padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px); align-self: center; max-width: 640px; }
.split-text h2 { font-size: clamp(30px, 3.6vw, 42px); }
.split-text > p { color: var(--muted); }
.sub { margin-top: 30px; }
.sub h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.sub p { color: var(--muted); font-size: 16px; margin-bottom: 8px; }
.tags { font-size: 15px; color: var(--ink); font-style: italic; }
.tags::before { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin: 14px 0 10px; }

/* Direction financière: the client wants the whole photo (the mountain range behind the climbers),
   so it keeps its own 3:2 shape instead of being cropped to the section's height. */
#direction-financiere { min-height: 0; }
#direction-financiere .split-img { aspect-ratio: 3 / 2; align-self: center; }

/* Panorama strip between "Why Kordée" and the founder */
.band { height: clamp(140px, 18vw, 260px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

/* ---------- Brand overlay ----------
   The identity's signature: a colour panel with a 45° step laid over a black & white
   photo. Yellow is multiplied over the photo, light blue is a light wash, cream is solid.
   Add class "media" + "overlay-sky" | "overlay-yellow" | "overlay-cream" to an image box. */
.media { position: relative; overflow: hidden; container-type: size; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media[class*="overlay-"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  --low: 24cqh;   /* height of the low part of the panel */
  --step: 30cqh;  /* size of the 45° step */
  --at: 26cqw;    /* where the step starts */
  clip-path: polygon(0 calc(100% - var(--low)), var(--at) calc(100% - var(--low)),
                     calc(var(--at) + var(--step)) calc(100% - var(--low) - var(--step)),
                     100% calc(100% - var(--low) - var(--step)), 100% 100%, 0 100%);
}
/* Service photos: a lower panel so the climbers stay clear */
.split-img.media::after { --low: 13cqh; --step: 22cqh; --at: 30cqw; }
.overlay-sky::after    { background: var(--sky);  opacity: .82; }
.overlay-yellow::after { background: var(--gold); mix-blend-mode: multiply; }
.overlay-cream::after  { background: var(--cream); }

/* Why Kordée */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 60px; }
.reason h3 { margin: 18px 0 10px; font-size: 20px; }
.reason p { color: var(--muted); font-size: 16px; margin: 0; }

/* Founder */
.founder-wrap { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.founder-photo { min-height: 520px; border-radius: 8px 0 0 8px; }
.founder-photo .overlay-logo { inset: auto 12% 33cqh 12%; width: 76%; height: auto; object-fit: contain; z-index: 2; }
.founder {
  background: var(--white); border-radius: 0 8px 8px 0;
  box-shadow: 0 18px 50px rgba(20, 24, 60, .10);
  padding: clamp(28px, 5vw, 56px);
}
.founder h3 { font-size: clamp(26px, 3vw, 32px); color: var(--navy); margin-bottom: 18px; }
.founder .tagline { font-weight: 700; color: var(--ink); }
.founder p { color: var(--muted); max-width: 820px; }
.career { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink) !important; }
.career strong { font-family: var(--font-head); }

/* Contact */
.contact-section { position: relative; background: var(--cream); overflow: hidden; }
.contact-section::before {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  --step: clamp(120px, 16vw, 220px);
  clip-path: polygon(0 0, 100% 0, 100% 46%, 62% 46%, calc(62% - var(--step)) calc(46% + var(--step)), 0 calc(46% + var(--step)));
}
.contact-section .wrap { position: relative; }
.contact-box {
  box-shadow: 0 18px 50px rgba(20, 24, 60, .10);
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px);
}
.contact-info p { color: var(--muted); font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon { width: 22px; height: 22px; flex: none; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.booking {
  background: var(--cream); border-radius: 12px; padding: 24px;
}
.booking h3 { font-size: 19px; margin-bottom: 6px; color: var(--navy); }
.booking p { font-size: 15px; margin-bottom: 16px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.form h3 { grid-column: 1 / -1; font-size: 21px; color: var(--navy); margin: 0; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #cfcbbf; border-radius: 4px; padding: 12px 14px; background: var(--white); width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.hidden { position: absolute; left: -9999px; }
.optional { font-weight: 400; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); font-size: 14px; padding: 36px 0; }
.site-footer .wrap { align-items: center; }
.footer-logo { width: 170px; height: auto; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: inherit; }

/* Legal pages (legal notice, privacy) */
.legal { padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(64px, 9vw, 110px); }
.legal-wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 0; }
.legal h2 { font-size: 22px; color: var(--navy); margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p { color: var(--muted); }
.legal a { color: var(--navy); }
.legal-updated { margin-top: 44px; font-size: 14px; }
/* Placeholder still to be filled in by the client: easy to spot, impossible to miss */
mark.todo { background: var(--gold); color: var(--ink); padding: 1px 6px; border-radius: 3px; }

.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }
.form-note a { color: var(--navy); }

/* Thank-you page */
.simple-page { min-height: 100vh; display: grid; place-items: center; background: var(--cream); padding: 40px var(--gutter); text-align: center; }
.simple-page img { width: 240px; margin: 0 auto 40px; }
.simple-page p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .challenges { grid-template-columns: repeat(2, 1fr); }
  .founder-wrap { grid-template-columns: 1fr; }
  .founder-photo { min-height: 0; aspect-ratio: 4 / 3; border-radius: 8px 8px 0 0; }
  .founder-photo > img { object-position: 50% 30%; }
  .founder { border-radius: 0 0 8px 8px; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; }
  .intro-img { max-width: 520px; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-img { aspect-ratio: 16 / 10; }
  .split:nth-of-type(even) .split-img { order: 0; }
  .split .split-img { border-radius: 0 !important; }
  #strategie .split-img { aspect-ratio: 4 / 5; } /* portrait identity visual: keep the climbers and the letters */
  .split-text { max-width: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* Narrow screens put the logo and title over the bright snow: darken the lower part more. */
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 15%, rgba(0,0,0,0) 44%, rgba(0,0,0,.6) 54%, rgba(0,0,0,.72) 100%); }
  .logo img { width: 150px; }
  .challenges, .reasons { grid-template-columns: 1fr; gap: 36px; }
  .form { grid-template-columns: 1fr; }
  .hero-actions .btn-light { width: 100%; }
}
