/* ---------- Base ---------- */
:root{
  /* Neutres un peu plus "warm" (plus premium que gris froid) */
  --bg: #ffffff;
  --text: #111111;
  --muted: #4b5563;      /* slate-600 */
  --muted2: #6b7280;     /* slate-500 */
  --line: rgba(17,17,17,.10);
  --soft: #f6f5f3;       /* warm off-white */

  /* Accent unique, profond */
  --accent: #103b3a;     /* deep green/teal */
  --accent2: #0b2a2a;
  --accent-weak: rgba(16,59,58,0.10);

  --radius: 22px;
  --radius2: 16px;

  --shadow1: 0 10px 30px rgba(0,0,0,.08);
  --shadow2: 0 18px 60px rgba(0,0,0,.12);

  --container: 1120px;
  --narrow: 780px;

  --fs-1: clamp(2.4rem, 3vw, 3.4rem);
  --fs-2: clamp(1.55rem, 1.6vw, 1.95rem);
  --fs-3: 1.18rem;
  --fs-body: 1.05rem;

  --lh: 1.6;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh);
  /* Typo body plus élégante */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; height: auto; display: block; }

.container{
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}
.narrow{
  width: min(100% - 2rem, var(--narrow));
}

/* Titres un peu plus “éditoriaux” */
.h1,.h2,.h3{
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.015em;
}
.h1{ font-size: var(--fs-1); margin: 0 0 .5rem; }
.h2{ font-size: var(--fs-2); margin: 0 0 1rem; }
.h3{ font-size: var(--fs-3); margin: 0; }

.body{ font-size: var(--fs-body); color: var(--muted); margin: 0 0 1rem; }

.rule{ height: 1px; background: var(--line); margin: 1.1rem 0; }

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: .6rem .8rem;
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand{ display: grid; gap: .15rem; }
.brand__name{ font-weight: 650; letter-spacing: -0.01em; }
.brand__meta{ font-size: .95rem; color: var(--muted2); }
.brand__logo img{
  height: 30px;
  width: auto;
  display: inline-flex;
  align-items: center;
}

.header-actions{ display: flex; align-items: center; gap: 1rem; }

.anchors{ display: flex; gap: 1rem; }
.anchors a{
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  padding: .35rem .5rem;
  border-radius: 999px;
}
.anchors a:hover{ color: var(--text); background: rgba(0,0,0,.04); }

.lang-switch{
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch__btn{
  background: transparent;
  border: 0;
  padding: .45rem .75rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.lang-switch__btn.is-active{
  background: var(--accent-weak);
  color: var(--text);
}

/* Focus visible (important qualité perçue + accessibilité) */
a:focus-visible, button:focus-visible{
  outline: 3px solid rgba(16,59,58,.35);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-size: .98rem;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn--outline{
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.85);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.btn--outline:hover{
  border-color: rgba(0,0,0,.16);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.btn--solid{
  border: 1px solid var(--accent);
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 34px rgba(16,59,58,.22);
}
.btn--solid:hover{
  box-shadow: 0 18px 46px rgba(16,59,58,.28);
}

/* ---------- Sections ---------- */
section{ padding: 3.6rem 0; }

/* HERO premium : fond discret + composition + photo en "card" */
.hero{
  padding-top: 2.6rem;
  position: relative;
}
.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(16,59,58,.08), transparent 55%),
    radial-gradient(700px 360px at 80% 20%, rgba(0,0,0,.05), transparent 55%);
  pointer-events:none;
}
.hero-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr; 
  align-items: center;
}

/* Hero: refine hierarchy */
.roles{
  font-size: 1.12rem;
  line-height: 1.45;
  margin-bottom: .85rem;
}

.hero .lede{
  font-size: 1.03rem;
  color: var(--muted2);
  margin-top: 0;
  max-width: 60ch;
}

.hero-rule{
  height: 1px;
  width: 140px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: .9rem 0 1rem;
  opacity: .55;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-weight: 650;
  font-size: .92rem;
  margin-bottom: .9rem;
}

.hero-photo{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow2);
  border: 1px solid var(--line);
  background: #fff;
}

.hero-photo img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;     /* portrait stable */
  object-fit: cover;
  object-position: 65% 15%;
}

.positioning{
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  margin: .15rem 0 1.05rem;
}

.identity{
  border-top: 1px solid var(--line);
}

/* ACTIVITIES */
.activities{
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.card-kicker{
  display: inline-flex;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
}

.card{
  grid-template-rows: auto auto auto auto 1fr auto;/* Align buttons at the bottom of cards */
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem;
  box-shadow: var(--shadow1);
  display: grid;
  align-content: start;
  position: relative;
  overflow: hidden;
}
/* Divider spacing consistent */
.card .rule{
  margin: 1.1rem 0 1.6rem;
  opacity: .55;
}
.card .body{
  align-self: start;
  min-height: 6.5em;
}
.card::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(500px 180px at 25% 0%, rgba(16,59,58,.08), transparent 55%);
  pointer-events:none;
  opacity:.9;
}
.card > *{ position: relative; }

.card-sub{
  min-height: 1.4em;      /* stabilise la ligne de sous-titre */
  margin-top: .35rem;
}


.card-sub{
  min-height: 1.4em;      /* stabilise la ligne de sous-titre */
  margin: .35rem 0 0;
  margin-top: .35rem;
  margin-bottom: .9rem;
  font-size: .98rem;
  color: var(--muted2);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.card-actions{
  padding-top: 1.3rem;
}

/* --- Cards: align header heights so the divider line sits at the same level --- */
.card .h3{
  min-height: 2.6em;      /* réserve ~2 lignes de titre */
  display: flex;
  align-items: flex-end;  /* titres alignés "en bas" */
}
@media (hover: hover){
  .card{
    transition: box-shadow .25s ease, transform .25s ease;
  }

  .card:hover{
    transform: translateY(-4px);
    box-shadow: 0 22px 70px rgba(0,0,0,.14);
  }
}

/* FILTER */
.filter{ padding: 3.2rem 0; }
.filter-intro{
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: .98rem;
  max-width: 56ch;
}
.callout{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem;
  box-shadow: var(--shadow1);
  position: relative;
}
.callout::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 7px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.callout-strong{
  margin: 0 0 .75rem;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

/* ORIENTATION */
.orientation{ border-top: 1px solid var(--line); }
.mini-links{
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .9rem;
}
.mini-link{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem .8rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.9);
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.mini-link:hover{ background: #fff; }

/* FOOTER */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  background: #fff;
}

.footer-purpose{
  color: var(--muted2);
  font-size: .95rem;
}

.footer-inner{align-items: flex-start; /* au lieu de center */}

.footer-left{ display: grid; gap: .15rem; }
.footer-right{ padding-top: .15rem;}
.footer-name{ font-weight: 800; letter-spacing: -0.01em; }
.footer-meta{ color: var(--muted2); font-size: .95rem; }
.footer-link{
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
  padding: .35rem .55rem;
  border-radius: 999px;
}
.footer-link:hover{ color: var(--text); background: rgba(0,0,0,.04); }

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1.4fr 1fr; gap: 1.6rem; }
  .hero-photo img{ height: 420px; }
  .cards{ grid-template-columns: 1fr; }
  .anchors{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
}
/* ---- Center the reading column more ---- */

/* Desktop: make the container slightly narrower and centered */
:root{
  --container: 1040px;  /* was 1120 */
  --narrow: 720px;      /* was 780 */
}

/* Balance hero columns so the text doesn't feel left-heavy */
.hero-inner{
  grid-template-columns: 1.4fr 1fr;   /* was 1.15fr .85fr */
  gap: 2.4rem;
}

/* Identity/Filter/Orientation: align to a centered reading column */
.narrow{
  margin-left: auto;
  margin-right: auto;
}

/* Activities: give the section a centered "page" feel */
.activities .container{
  padding-left: clamp(0px, 2vw, 24px);
  padding-right: clamp(0px, 2vw, 24px);
}

