/* ============================================================
   NOLAM — nolam.ch
   HTML/CSS/JS pur · zéro ressource externe (No GAFAM jusqu'au bout)
   Palette : vert sapin · bleu ardoise · sable
   ============================================================ */

:root {
  /* Palette officielle NOLAM : teal profond · teal vif (vague) · or · crème */
  --green:      #137a82;  /* teal primaire (boutons, accents) */
  --green-deep: #0d4a50;  /* teal foncé (montagnes) */
  --green-dark: #0a3a3f90;
  --blue:       #1f9aa3;  /* teal clair */
  --blue-soft:  #2bb3b3;  /* teal vif (la vague) */
  --sand:       #f6efe0;  /* crème chaude */
  --sand-bg:    #fbf8f1;
  --ink:        #122a2c;  /* encre teal-sombre */
  --ink-soft:   #41595b;
  --gold:       #c39a3f;  /* or NOLAM */
  --gold-soft:  #d9b85f;
  --white:      #ffffff;
  --line:       #e7dfcd;

  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1140px;
  --shadow:     0 18px 50px -22px rgba(20, 52, 38, .38);
  --shadow-sm:  0 8px 24px -14px rgba(20, 52, 38, .35);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Ubuntu, Cantarell, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---------- Kicker / section heads ---------- */
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
  margin-bottom: 14px;
}
.kicker--gold  { color: var(--gold); }
.kicker--light { color: #9fd3bd; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt  { background: var(--sand); }
.section--dark { background: var(--green-deep); color: #eaf2ed; }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 16px; }
.section__sub { font-size: 1.12rem; color: var(--ink-soft); }
.section__sub--light { color: #b9d6c9; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20,52,38,.5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand__mark { height: 34px; width: auto; }
.brand__name { font-size: 1.32rem; letter-spacing: .06em; color: var(--green-deep); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 600; color: var(--ink-soft); transition: color .2s ease; }
.nav__links a:hover { color: var(--green); }
.nav__cta {
  background: var(--green); color: #fff !important; padding: 10px 20px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.nav__cta:hover { background: var(--green-deep); }

/* Cluster droit (liens + langue + burger) */
.nav__right { display: flex; align-items: center; gap: 22px; }

/* Sélecteur de langue */
.nav__lang { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: .82rem; letter-spacing: .03em; }
.nav__lang a { padding: 6px 9px; border-radius: 8px; color: var(--ink-soft); transition: color .2s ease, background .2s ease; }
.nav__lang a:hover { color: var(--green); }
.nav__lang a.is-active { color: var(--green-deep); background: rgba(19,122,130,.12); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(58,90,122,.16), transparent 60%),
    radial-gradient(55% 45% at 10% 10%, rgba(45,106,79,.16), transparent 60%),
    linear-gradient(180deg, var(--sand-bg), var(--sand-bg));
}
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(180deg, transparent, rgba(45,106,79,.05));
  clip-path: polygon(0 100%, 0 60%, 18% 25%, 34% 55%, 52% 12%, 70% 48%, 86% 20%, 100% 52%, 100% 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.hero__eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: .12em;
  color: var(--green); background: rgba(45,106,79,.1);
  padding: 7px 16px; border-radius: 999px; font-size: .85rem; margin-bottom: 26px;
}
.hero__title { font-size: clamp(2.3rem, 6.2vw, 4.3rem); margin-bottom: 24px; }
.grad {
  background: linear-gradient(100deg, var(--green) 0%, var(--blue-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--ink-soft); max-width: 680px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

/* Badges */
.badges {
  list-style: none; display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.badges li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px;
}
.badges__icon { font-size: 1.6rem; margin-bottom: 6px; }
.badges strong { font-size: 1.05rem; }
.badges span:last-child { font-size: .88rem; color: var(--ink-soft); }

/* ============================================================
   PHILOSOPHIE — pillars
   ============================================================ */
.pillars { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar__num {
  font-size: .9rem; font-weight: 800; color: var(--gold);
  letter-spacing: .1em; margin-bottom: 14px;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--green-deep); }
.pillar p { color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   FLAGSHIP — Adagio
   ============================================================ */
.flagship {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.flagship__media { position: relative; display: flex; justify-content: center; }
.flagship__scene { position: relative; display: inline-block; }
.flagship__logo {
  width: min(420px, 78%); height: auto;
  filter: drop-shadow(0 26px 50px rgba(10,52,58,.45));
  transition: transform .4s ease;
}
.flagship__scene:hover .flagship__logo { transform: translateY(-6px) scale(1.015); }
.flagship__tag {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: var(--green-deep); color: #d7efe9;
  font-size: .76rem; font-weight: 700; letter-spacing: .05em;
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.flagship__title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 6px 0 8px; }
.flagship__motto { font-style: italic; color: var(--blue-soft); font-size: 1.15rem; margin-bottom: 18px; }
.flagship__body > p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 18px; }
.ticks { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(45,106,79,.14); color: var(--green);
  display: grid; place-items: center; font-size: .75rem; font-weight: 900;
}
.flagship__manifest {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 18px;
  font-size: 1.2rem; font-weight: 700; color: var(--green-deep); margin-bottom: 26px;
}
.flagship__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   PRODUITS — cards
   ============================================================ */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); margin-bottom: 56px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card--link { cursor: pointer; text-decoration: none; color: inherit; }
.card--link:hover { border-color: var(--green); }
.card__visit { margin-top: 14px; font-weight: 700; font-size: .86rem; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.card--link:hover .card__visit { text-decoration: underline; }
.card__icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin-bottom: 6px; color: var(--green-deep); }
.card__tagline { font-weight: 700; color: var(--blue); margin-bottom: 10px; font-size: .96rem; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.chip {
  align-self: flex-start; margin-top: 16px;
  font-size: .76rem; font-weight: 800; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
}
.chip--live { background: rgba(45,106,79,.13); color: var(--green); }
.chip--wip  { background: rgba(192,138,45,.15); color: var(--gold); }

/* Suite IA */
.suite {
  background: linear-gradient(120deg, var(--green-deep), var(--blue));
  color: #eaf2ed; border-radius: var(--radius); padding: clamp(30px, 5vw, 48px);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow);
}
.suite__head h3 { font-size: 1.6rem; margin-bottom: 10px; }
.suite__head p { color: #c7ddd2; }
.suite__modules { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.suite__modules li {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.suite__modules li span {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255,255,255,.16); padding: 3px 8px; border-radius: 999px; color: #cfe6db;
}
.suite__modules li.is-ready { background: rgba(255,255,255,.95); color: var(--green-deep); border-color: transparent; }
.suite__modules li.is-ready span { background: var(--green); color: #fff; }

/* ============================================================
   ON PRATIQUE
   ============================================================ */
.practice { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.practice__item {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 28px;
}
.practice__item h3 { font-size: 1.3rem; margin-bottom: 12px; }
.practice__item p { color: #c7ddd2; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { max-width: 720px; text-align: center; }
.contact h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 16px; }
.contact > .contact__text > p { color: var(--ink-soft); font-size: 1.12rem; margin-bottom: 28px; }
.contact__mail {
  display: inline-block; font-size: clamp(1.3rem, 3.5vw, 2rem); font-weight: 800;
  color: var(--green); border-bottom: 3px solid rgba(45,106,79,.25);
  padding-bottom: 4px; transition: border-color .2s ease;
}
.contact__mail:hover { border-color: var(--green); }
.contact__trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; }
.contact__trust li { color: var(--ink-soft); font-size: .95rem; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #c7d0cb; padding: 56px 0 36px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 30px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer__logo { width: 168px; height: auto; margin-bottom: 4px; opacity: .8; }
.footer__motto { color: #8a988f; font-size: .92rem; margin-top: 4px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: #c7d0cb; font-weight: 600; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__legal { font-size: .86rem; color: #8a988f; line-height: 1.7; }
.footer__note { color: #6f7d74; }

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .badges, .pillars, .cards { grid-template-columns: repeat(2, 1fr); }
  .flagship, .suite, .practice, .footer__inner { grid-template-columns: 1fr; }
  .flagship__media { order: -1; }
  .suite { text-align: left; }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(250,247,240,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-130%); transition: transform .35s ease;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 12px; border-bottom: 0 !important; }
  .nav__right { gap: 8px; }
  .nav__lang { font-size: .78rem; }
  .nav__lang a { padding: 6px 7px; }
  .nav__burger { display: flex; }
  .badges, .pillars, .cards { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

/* ---------- Accessibilité : respect du « réduire les animations » ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PAGES DE CONTENU (articles SEO) — /alternative-gafam/ etc.
   ============================================================ */
.article-hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(28px, 4vw, 44px); overflow: hidden; }
.article-hero .container { position: relative; z-index: 1; }
.crumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 22px; }
.crumb a { color: var(--green); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.article-hero__title { font-size: clamp(2rem, 5.2vw, 3.4rem); margin-bottom: 20px; }
.article-hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 720px; }

/* Colonne de lecture */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--green-deep); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink); font-size: 1.06rem; margin-bottom: 16px; }
.prose strong { color: var(--green-deep); }
.prose .ticks { margin: 8px 0 20px; }
.prose .ticks li { color: var(--ink); margin-bottom: 12px; }

/* Tableau comparatif */
.compare { overflow-x: auto; margin: 22px 0 28px; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compare table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--white); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.compare thead th { background: var(--green-deep); color: #eaf2ed; font-weight: 700; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:last-child { font-weight: 700; color: var(--green); }
.compare td:last-child a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(19,122,130,.35); }
.compare td:last-child a:hover { text-decoration-color: var(--green); }

/* FAQ accordéon (sans JS) */
.faq { margin: 16px 0 8px; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--green-deep); list-style: none; position: relative; padding-right: 46px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--green); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-soft); margin: 0; }

/* CTA bas d'article */
.article-cta { margin-top: 48px; padding: clamp(28px, 5vw, 44px); background: var(--sand); border-radius: var(--radius); text-align: center; border: 1px solid var(--line); }
.article-cta h2 { color: var(--green-deep); margin: 0 0 10px; }
.article-cta p { color: var(--ink-soft); margin-bottom: 22px; }
.article-cta .hero__cta { justify-content: center; }

/* Lien « en savoir plus » sous une section */
.section__more { text-align: center; margin-top: 40px; }
.section__more a { font-weight: 700; color: var(--green); font-size: 1.05rem; border-bottom: 2px solid rgba(19,122,130,.3); padding-bottom: 3px; transition: border-color .2s ease; }
.section__more a:hover { border-color: var(--green); }

/* En-tête article avec visuel (page Adagio) */
.article-hero__split { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center; }
.article-hero__icon { width: clamp(130px, 20vw, 220px); height: auto; filter: drop-shadow(0 22px 44px rgba(10,52,58,.4)); }
.prose__manifest { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; font-size: 1.2rem; font-weight: 700; font-style: italic; color: var(--green-deep); margin: 6px 0 18px; }
@media (max-width: 760px) {
  .article-hero__split { grid-template-columns: 1fr; }
  .article-hero__icon { display: none; }
}

/* Lien « en savoir plus » sous le bloc Adagio (home) */
.flagship__more { margin-top: 18px; }
.flagship__more a { font-weight: 700; color: var(--green); border-bottom: 2px solid rgba(19,122,130,.3); padding-bottom: 2px; transition: border-color .2s ease; }
.flagship__more a:hover { border-color: var(--green); }
