/* ===== Cléry — feuille de style principale ===== */

/* Police Plus Jakarta Sans (SIL Open Font License), hébergée localement : aucun appel à Google Fonts */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #306f47;
  --green-dark: #234f33;
  --cream: #f4f8ed;
  --ink: #3e3d4d;
  --text: #333333;
  --text-light: #6a6a75;
  --white: #ffffff;
  --border: #e7e7e0;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); line-height: 1.1; font-weight: 300; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.site-logo img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--green); border-color: var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 88px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 24px; }
  .main-nav a { font-size: 1.1rem; }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  background: var(--green) url("../../images/fond-vert-logo.png") center / cover no-repeat;
  color: #fff;
  padding: 130px 0 110px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(36,79,51,0.55), rgba(36,79,51,0.85));
}
.hero .container { position: relative; z-index: 2; }
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero h1 { color: #fff; max-width: 820px; margin: 0 auto 0.3em; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto 1.5em; }

.hero-small { padding: 90px 0 70px; }
.hero-small h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }

/* ===== Sections ===== */

.section { padding: 90px 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green); color: #fff; }
.section-green h2, .section-green h3 { color: #fff; }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.align-left { margin: 0 0 48px; text-align: left; }

/* ===== Cards grid: nav teasers (À propos / Philosophie / Portefeuille) ===== */

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: -70px;
  position: relative;
  z-index: 3;
}
.teaser-card {
  background: var(--green);
  color: #fff;
  padding: 44px 36px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.teaser-card:last-child { border-right: none; }
.teaser-card h3 { color: #fff; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; margin-bottom: 14px; }
.teaser-card p { color: rgba(255,255,255,0.88); font-size: 0.95rem; margin-bottom: 0; }
.teaser-card a.card-link { display: block; }
.teaser-card a.card-link:hover { background: var(--green-dark); margin: -44px -36px; padding: 44px 36px; }

@media (max-width: 860px) {
  .teaser-grid { grid-template-columns: 1fr; margin-top: 0; }
  .teaser-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
}

/* ===== Manifeste ===== */

.manifeste { max-width: 780px; }
.manifeste p { color: var(--text); font-size: 1.02rem; }

/* ===== Pillars (3 valeurs) ===== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
}
.pillar .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  font-weight: 700;
  margin-bottom: 18px;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ===== Domaines d'investissement ===== */

.domaines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.domaine {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
}
.domaine .icon { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--green); }
.domaine .icon svg { width: 44px; height: 44px; }
.domaine h3 { font-size: 0.95rem; line-height: 1.35; margin: 0; }

@media (max-width: 1024px) {
  .domaines-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .domaines-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Actualités (cards) ===== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.news-card .news-image { aspect-ratio: 16/10; overflow: hidden; background: var(--cream); }
.news-card .news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: 26px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card .news-date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 6px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.news-card .news-read {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ===== À propos - histoire ===== */

.histoire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.histoire .quote {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink);
  border-left: 3px solid var(--green);
  padding-left: 24px;
}
@media (max-width: 860px) {
  .histoire { grid-template-columns: 1fr; }
}

/* ===== Équipe ===== */

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.equipe-card {
  text-align: center;
}
.equipe-card .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--cream);
}
.equipe-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.equipe-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.equipe-card .poste { color: var(--green); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.equipe-card .bio { font-size: 0.88rem; color: var(--text-light); text-align: left; }

@media (max-width: 1024px) {
  .equipe-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .equipe-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .equipe-grid { grid-template-columns: 1fr; }
}

/* ===== Portefeuille : filtres + grille ===== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.portfolio-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.portfolio-card .logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.portfolio-card .logo-wrap img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.portfolio-card .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.portfolio-card h3 { margin-bottom: 10px; }
.portfolio-card p { color: var(--text-light); font-size: 0.92rem; flex: 1; }
.portfolio-card .site-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 12px;
}
.portfolio-card.is-hidden { display: none; }

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ===== Article (actualité) ===== */

.article-image {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: 8px;
  overflow: hidden;
}
.article-image img { width: 100%; display: block; }

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.02rem;
}
.article-content p { margin-bottom: 1.3em; }
.article-content .article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.article-content .article-meta .tag {
  background: var(--cream);
  color: var(--green);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.article-content h1 { max-width: 100%; margin-bottom: 0.3em; }
.article-content .source-link { font-size: 0.95rem; word-break: break-word; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

/* ===== Mentions légales ===== */

.legal-content { max-width: 820px; margin: 0 auto; font-size: 0.95rem; color: var(--text); }
.legal-content h2 { font-size: 1.15rem; margin-top: 1.6em; }

/* ===== Footer ===== */

.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); }
.footer-main {
  padding: 70px 0 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 48px;
}
.footer-col h4 {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col p, .footer-col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-col .footer-logo img { height: 30px; margin-bottom: 18px; }
.footer-news-item { margin-bottom: 16px; }
.footer-news-item .footer-read { color: var(--white); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-social { margin-top: 18px; display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--green); border-color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a:hover { color: #fff; }

@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== Scroll reveal ===== */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
