/* Eucalyptus Advisory — feuille de style
   Charte : Libre Caslon Text (titres) + Libre Franklin (texte)
   Vert forêt #2A452A, argile #A8542A, papier #F8F6F1 */

:root {
  --forest: #2A452A;
  --forest-deep: #1E321E;
  --forest-mid: #405940;
  --sage: #8C9A8A;
  --clay: #A8542A;
  --clay-dark: #8A3F1D;
  --clay-light: #D9A27A;
  --slate: #33566F;
  --ink: #1C1E1A;
  --ink-soft: #4A4D46;
  --muted: #6E736A;
  --rule: #DCDCD6;
  --paper: #F8F6F1;
  --white: #FFFFFF;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --measure: 38rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--clay-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--forest); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .5rem 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 241, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.brand img { height: 2.9rem; width: auto; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--forest); }
.nav .nav-cta { color: var(--forest); font-weight: 600; border-bottom: 1px solid var(--clay); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--forest); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 4.5rem; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; font-size: 1.05rem; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav .nav-cta { border-bottom: 1px solid var(--rule); padding-bottom: .75rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Héros ---------- */
.hero {
  background: var(--forest-deep);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 4.5rem);
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero h1 { color: var(--paper); max-width: 13ch; }
.hero-lead { margin-top: 1.75rem; font-size: 1.15rem; line-height: 1.65; color: #D8DDD2; max-width: 34rem; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .95rem 1.6rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-clay { background: var(--clay); color: var(--white); }
.btn-clay:hover { background: var(--clay-dark); color: var(--white); }
.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-deep); color: var(--white); }
.link-quiet { color: #D8DDD2; text-decoration: none; border-bottom: 1px solid rgba(216,221,210,.4); padding-bottom: 2px; }
.link-quiet:hover { color: var(--white); border-bottom-color: var(--clay-light); }

/* Carte du réseau */
.network { position: relative; }
.network svg { width: 100%; height: auto; max-height: 82svh; margin-left: auto; }
.network .land { fill: #2C472C; stroke: none; }
.network .borders { fill: none; stroke: #3D5A3D; stroke-width: .7; }
.network .route {
  fill: none; stroke: var(--clay-light); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: draw 1.6s cubic-bezier(.6,.05,.3,1) forwards;
  animation-delay: var(--delay);
  opacity: .9;
}
.network .city circle.dot { fill: var(--clay-light); }
.network .city circle.halo { fill: none; stroke: var(--clay-light); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out forwards; animation-delay: var(--delay); }
.network .city text { font-family: var(--sans); font-size: 24px; fill: #E6E9E1; letter-spacing: .02em; }
.network .city { opacity: 0; animation: appear .6s ease forwards; animation-delay: var(--delay); }
.network figcaption { margin-top: .75rem; font-size: .85rem; color: #A9B3A5; text-align: right; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes halo { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(4); } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: auto; }
  .network svg { max-height: 60svh; margin: 0 auto; }
  .network figcaption { text-align: left; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 46rem; }
.section-head p { margin-top: 1.25rem; font-size: 1.15rem; color: var(--ink-soft); max-width: var(--measure); }

/* Conviction */
.conviction .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.conviction .statement p { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; color: var(--ink); max-width: 34rem; }
.pillars { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.pillar { border-top: 2px solid var(--forest); padding-top: 1.1rem; }
.pillar:nth-child(2) { border-top-color: var(--forest-mid); }
.pillar:nth-child(3) { border-top-color: var(--clay); }
.conviction .statement .pillar p { margin-top: .6rem; color: var(--ink-soft); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
@media (max-width: 860px) {
  .conviction .wrap { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Audiences */
.audiences { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.audience-list { margin-top: 3.5rem; }
.audience {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 2rem; padding: 2.25rem 0; border-top: 1px solid var(--rule); align-items: start;
}
.audience:last-child { border-bottom: 1px solid var(--rule); }
.audience p { color: var(--ink-soft); }
.audience ul { list-style: none; margin: 0; padding: 0; }
.audience li { padding: .35rem 0 .35rem 1.1rem; position: relative; color: var(--ink); font-size: .98rem; }
.audience li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .45rem; height: 1px; background: var(--clay); }
.audience .audience-link { margin-top: .9rem; display: inline-block; font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) {
  .audience { grid-template-columns: 1fr; gap: 1rem; }
}

/* Interventions */
.interventions-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--forest); }
.intervention { padding: 2rem 1.75rem; border-left: 1px solid var(--rule); }
.intervention:first-child { padding-left: 0; border-left: 0; }
.intervention:last-child { padding-right: 0; }
.intervention h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.intervention p { margin-top: 1rem; color: var(--ink-soft); }
.intervention .scope { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 1100px) and (min-width: 861px) {
  .interventions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intervention, .intervention:first-child, .intervention:last-child { padding: 2rem 2rem 2rem 0; border-left: 0; }
  .intervention:nth-child(even) { padding: 2rem 0 2rem 2rem; border-left: 1px solid var(--rule); }
  .intervention:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .interventions-grid { grid-template-columns: 1fr; }
  .intervention, .intervention:first-child, .intervention:last-child { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* Illustrations */
.illus { color: var(--forest); display: block; }
.illus .ac { stroke: var(--clay); }
.illus .acf { fill: var(--clay); }
.illus .sealf { fill: var(--clay); }
.intervention .illus { width: 6.5rem; height: 6.5rem; margin-bottom: 1.5rem; padding: 1rem; border-radius: 50%; background: #E9ECE4; }
.intervention:nth-child(2) .illus { background: #F1E6DC; }
.intervention:nth-child(4) .illus { background: #F1E6DC; }
.illus-sm { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; }
.aud-title .illus-sm { width: 3.25rem; height: 3.25rem; }
.illus-map { width: 6.5rem; height: auto; margin-bottom: 1rem; }
.landscape-wrap { margin-top: 3rem; color: var(--forest); }
.landscape { width: 100%; height: clamp(9rem, 20vw, 15rem); }

/* Affaires publiques */
.public-affairs { background: var(--white); border-top: 1px solid var(--rule); }
.ap-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.ap-grid > div { border-top: 2px solid var(--clay); padding-top: 1.1rem; }
.ap-grid h3 { font-size: 1.3rem; }
.ap-grid p { margin-top: .6rem; color: var(--ink-soft); }
.ap-cta { margin-top: 2.75rem; }
@media (max-width: 860px) { .ap-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Donnée */
.data-band { background-color: var(--forest); background-image: radial-gradient(rgba(217,162,122,.18) 1px, transparent 1.4px); background-size: 22px 22px; background-position: right top; color: var(--paper); }
.section.data-band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.data-band .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.data-band h2 { color: var(--paper); }
.data-band p { color: #D8DDD2; font-size: 1.1rem; max-width: 36rem; }
.data-band p + p { margin-top: 1rem; }
@media (max-width: 860px) { .data-band .wrap { grid-template-columns: 1fr; } }

/* Engagement de confidentialité */
.discretion { text-align: left; }
.discretion blockquote {
  margin: 0; font-family: var(--serif); color: var(--forest);
  font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.2; max-width: 22ch;
}
.discretion .disc-text > p { margin-top: 1.75rem; max-width: var(--measure); color: var(--ink-soft); font-size: 1.1rem; }
.discretion .commitments { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; color: var(--forest); font-weight: 600; font-size: .95rem; }
.discretion .commitments span { border-left: 2px solid var(--clay); padding-left: .75rem; }

.disc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.disc-art { color: var(--forest); display: flex; justify-content: center; }
.disc-art .illus-lg { width: 100%; max-width: 17rem; height: auto; }
@media (max-width: 860px) { .disc-grid { grid-template-columns: 1fr; } .disc-art { justify-content: flex-start; } .disc-art .illus-lg { max-width: 10rem; } }

/* Executive education */
.executive { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.exec-grid { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); }
.formats { display: grid; gap: 0; }
.format { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.format:last-child { border-bottom: 1px solid var(--rule); }
.format h3 { font-size: 1.3rem; }
.format p { margin-top: .5rem; color: var(--ink-soft); }
.poles h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; color: var(--ink); }
.poles ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.poles li { padding: .6rem 0 .6rem 1.4rem; position: relative; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.poles li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .55rem; height: 1px; background: var(--clay); }
.poles .btn { margin-top: 2rem; }
@media (max-width: 860px) { .exec-grid { grid-template-columns: 1fr; } }

/* Analyses */
.analyses-list { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.article-card { display: block; text-decoration: none; color: inherit; border-top: 2px solid var(--forest); padding-top: 1.5rem; }
.article-card .meta { font-size: .9rem; color: var(--muted); }
.article-card h3 { margin-top: .75rem; font-size: clamp(1.5rem, 2.6vw, 2rem); transition: color .2s; }
.article-card p { margin-top: 1rem; color: var(--ink-soft); }
.article-card .read { display: inline-block; margin-top: 1.25rem; font-weight: 600; color: var(--clay-dark); border-bottom: 1px solid var(--clay-light); }
.article-card:hover h3 { color: var(--clay-dark); }
.upcoming h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); }
.upcoming ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.upcoming li { padding: .8rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); color: var(--forest); font-size: 1.05rem; }
@media (max-width: 860px) { .analyses-list { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--forest-deep); color: var(--paper); }
.section.contact { padding: var(--section) 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.contact h2 { color: var(--paper); }
.contact .intro p { margin-top: 1.25rem; color: #D8DDD2; font-size: 1.1rem; max-width: 30rem; }
.contact .coords { margin-top: 2.5rem; display: grid; gap: .4rem; color: #D8DDD2; }
.contact .coords a { color: var(--white); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
form .field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
form label { font-size: .9rem; color: #D8DDD2; }
form .opt { color: #A9B3A5; font-weight: 400; }
form input, form select, form textarea {
  font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(255,255,255,.05); border: 1px solid #4A634A; border-radius: 0;
  padding: .8rem .9rem; transition: border-color .2s, background .2s;
}
form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #D8DDD2 50%), linear-gradient(135deg, #D8DDD2 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
form select option { color: var(--ink); }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--clay-light); background: rgba(255,255,255,.08); }
form textarea { min-height: 9rem; resize: vertical; }
form .consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; color: #A9B3A5; margin: .5rem 0 1.75rem; }
form .consent input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--clay); flex: none; padding: 0; }
form .consent a { color: #D8DDD2; }
.hidden { display: none; }
@media (max-width: 860px) {
  .contact .wrap { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--forest-deep); color: #A9B3A5; border-top: 1px solid #2C472C; padding: 3.5rem 0 2.5rem; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; }
.site-footer img { height: 2.6rem; width: auto; }
.site-footer .tagline { margin-top: 1rem; font-family: var(--serif); color: #D8DDD2; font-size: 1.05rem; max-width: 22rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: flex-end; align-content: start; }
.footer-links a { color: #D8DDD2; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid #2C472C; padding-top: 1.5rem; margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* ---------- Pages éditoriales (article, mentions) ---------- */
.page-head { background: var(--forest-deep); color: var(--paper); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { color: var(--paper); font-size: clamp(2.1rem, 4.8vw, 3.5rem); max-width: 20ch; }
.page-head .meta { margin-top: 1.5rem; color: #A9B3A5; font-size: .95rem; }
.page-head .crumb { margin-bottom: 1.5rem; font-size: .9rem; }
.page-head .crumb a { color: #D8DDD2; }
.prose { max-width: 40rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) var(--section); font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-size: 1.75rem; margin-top: 3rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2.25rem; }
.prose .lede { font-size: 1.35rem; line-height: 1.6; color: var(--forest); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }
.prose .note { font-family: var(--sans); font-size: .95rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.prose.legal { font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
.prose.legal h2 { font-size: 1.4rem; }
.prose.legal dl { display: grid; grid-template-columns: 12rem 1fr; gap: .5rem 1.5rem; }
.prose.legal dt { color: var(--muted); }
.prose.legal dd { margin: 0; }
@media (max-width: 600px) { .prose.legal dl { grid-template-columns: 1fr; gap: .15rem; } .prose.legal dd { margin-bottom: .75rem; } }
.article-end { border-top: 2px solid var(--forest); padding-top: 2rem; font-family: var(--sans); font-size: 1rem; }
.article-end p { color: var(--ink-soft); }
.article-end .btn { margin-top: 1.25rem; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .network .route { animation: none; stroke-dashoffset: 0; }
  .network .city { animation: none; opacity: 1; }
  .network .city circle.halo { display: none; }
}
