/* Khallot — socle éditorial commun, chargé après les styles historiques.
   Le papier, l’encre et la menthe donnent une même identité à toutes les pages. */
:root {
  color-scheme: light;
  --ink: #15243c;
  --ink-doux: #465064;
  --muted: #667080;
  --bg: #f8f5ed;
  --soft: #fffcf6;
  --soft-2: #eeeadf;
  --line: #dfded4;
  --nuit: #15243c;
  --primary: #15243c;
  --primary-clair: #29415f;
  --accent: #159a80;
  --accent-sombre: #0e7565;
  --tiers: #b7793c;
  --tiers-sombre: #88551f;
  --rouge: #c34d47;
  --laiton: #a28757;
  --radius: 16px;
  --radius-lg: 24px;
  --wide: 1240px;
  --ombre-1: 0 2px 12px rgba(21,36,60,.04);
  --ombre-2: 0 12px 32px rgba(21,36,60,.08);
  --ombre-3: 0 24px 56px rgba(21,36,60,.12);
}

body {
  padding-top: 0;
  background-color: var(--bg);
  background-image: none;
  font-size: 17px;
  line-height: 1.65;
}
main { padding-inline: clamp(20px,4vw,40px); }
section { padding-block: clamp(64px,8vw,104px); }
h1,h2,h3 { color: var(--ink); }
h1 { font-size: clamp(44px,5.8vw,78px); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(30px,3.5vw,46px); line-height: 1.12; letter-spacing: -.035em; }
h3 { letter-spacing: -.02em; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.lede { color: var(--ink-doux); line-height: 1.55; }
.fineprint { font-size: 13.5px; line-height: 1.6; }
[id] { scroll-margin-top: 116px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Une navigation complète et un seul accès à l’application. */
header.site,.landing header.site {
  position: sticky;
  top: 0;
  margin: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  grid-template-areas: "marque rubriques application";
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 16px max(24px,calc((100vw - var(--wide))/2 + 40px));
  background: rgba(248,245,237,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
header.site.compact { padding-block: 12px; box-shadow: none; }
header.site .brand {
  grid-area: marque;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--ink);
}
header.site .brand img { width: 32px; height: 32px; border-radius: 8px; }
header.site .brand span { display: inline; }
header.site nav,.landing header.site nav {
  grid-area: rubriques;
  justify-self: center;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: auto;
  overflow: visible;
  gap: clamp(16px,2vw,28px);
  padding: 0;
}
header.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-doux);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
header.site nav a::after { bottom: 4px; height: 2px; color: var(--accent-sombre); }
header.site nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
header.site .header-actions { grid-area: application; display: flex; align-items: center; gap: 8px; }
header.site .adhesion-cta { margin: 0; padding: 10px 16px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
header.site .adhesion-cta[aria-current="page"] { border-color: var(--accent-sombre); color: var(--ink); }
header.site .app-cta {
  margin: 0;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}
header.site .app-cta span { margin-left: 8px; font-size: 17px; line-height: 1; }
header.site .app-cta[aria-current="page"] { background: #d3efe4; color: var(--ink); }
.beta-sticky,.nav-adherer,.nav-cta { display: none !important; }

/* Les boutons et les surfaces sont calmes : le contenu porte le relief. */
.button {
  background: var(--nuit);
  color: #fff;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}
.button:hover { background: var(--primary-clair); transform: translateY(-1px); box-shadow: none; }
.button.ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px #c7cbcb; }
.button.ghost:hover { background: var(--soft-2); box-shadow: inset 0 0 0 1px #9fa8ad; }
.button.clair { color: var(--ink); background: var(--soft); box-shadow: none; }
.button.clair:hover { color: var(--ink); background: #fff; box-shadow: none; }
.actions { gap: 12px; }
.grid { gap: 20px; }
.grid article,.grid.portes .porte,.research-teasers article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: none;
}
.grid article:hover { transform: translateY(-2px); box-shadow: var(--ombre-1); }
.grid.portes .porte:hover { transform: translateY(-2px); box-shadow: var(--ombre-1); }
.feature.invert { border: 1px solid var(--line); }
.pourquoi,.bandeau-association > div,.grid article.phare {
  background: var(--nuit);
  box-shadow: none;
}
.pourquoi h2,.pourquoi h3,.bandeau-association h2,.grid article.phare h3 { color: #fff; }
.pourquoi .eyebrow,.bandeau-association .eyebrow,.grid article.phare .eyebrow { color: #abe0ce; }

/* Captures natives planes, sans coque artificielle. */
.cadre,.hero.produit .cadre {
  position: relative;
  padding: 0;
  border: 1px solid rgba(102,112,109,.2);
  border-radius: 20px;
  background: var(--bg);
  overflow: hidden;
  transform: none;
  box-shadow: 0 18px 36px -18px rgba(21,36,60,.24);
}
.cadre img { display:block; width:100%; height:auto; border-radius:0; background:var(--bg); }
.tour { padding: clamp(24px,4vw,44px); border-radius: 22px; box-shadow: none; }
.tour-buttons { margin-top: 0; }
.tour-buttons button { padding: 11px 17px; border-radius: 10px; font-size: 14px; }
.tour-buttons button[aria-pressed="true"] { background: var(--nuit); color: #fff; }
.tour-panel h3 { font-size: clamp(28px,3vw,40px); }
.tour-panel .cadre { max-width: 290px; }
.tour-note { font-size: 13px; background: var(--bg); }
.card-face .cadre { border-radius: 12% / 5.52%; }
.card-flip:hover .card-face .cadre,.card-flip:focus-visible .card-face .cadre {
  box-shadow: 0 18px 32px -16px rgba(21,36,60,.28),0 2px 4px rgba(21,36,60,.06);
}
.flip-hint { border-radius: 9px; background: var(--nuit); }
.copy-panel { border: 1px solid var(--line); border-radius: 18px; }
.copy-steps button { border-radius: 10px; }
.copy-steps button[aria-pressed="true"] { background: var(--nuit); color: #fff; }
.beta-steps li { padding: 22px; border-radius: 14px; }

/* Les pages longues gardent un corps confortable et des repères nets. */
.hero { padding-top: clamp(44px,6vw,76px); padding-bottom: clamp(40px,5vw,64px); }
.manifeste .hero h1 { max-width: 17ch; }
.statuts .hero h1 { font-size: clamp(54px,7vw,92px); }
.manifeste section { padding-block: clamp(30px,4vw,48px); }
.manifeste section p { font-size: 17.5px; line-height: 1.72; }
.manifeste section .fineprint { font-size: 13.5px; line-height: 1.6; }
.manifeste section .eyebrow { font-size: 12px; line-height: 1.6; }
.manifeste .hero .lede { font-size: clamp(19px,1.7vw,22px); line-height: 1.55; }
.sommaire { border: 1px solid var(--line); box-shadow: none; border-radius: 14px; }
.ariane { padding-inline: clamp(20px,4vw,40px); font-size: 12px; }
blockquote.jury { border-radius: 0 12px 12px 0; border-left-color: var(--accent-sombre); }
details { border: 1px solid var(--line); border-radius: 12px; padding: 19px 22px; }
details summary { padding-right: 28px; position: relative; }
details summary::after { position: absolute; right: 0; top: 0; float: none; }
#newsletter .champs { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
#newsletter input[type="email"],#newsletter select { border: 1px solid #d4d6ce; border-radius: 10px; }
#newsletter input[type="checkbox"] { accent-color: var(--nuit); }
.tableau-defilant { border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.calendrier th { color: var(--ink-doux); background: var(--soft-2); }
.calendrier th,.calendrier td { padding: 16px; }

/* Le pied de page sert de seconde orientation, avec quatre colonnes lisibles. */
footer {
  max-width: var(--wide);
  padding: 56px clamp(20px,4vw,40px) 38px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.plan-du-site { gap: 32px; padding-bottom: 36px; margin-bottom: 26px; }
.plan-du-site p { color: var(--ink); font-size: 10px; letter-spacing: .13em; margin-bottom: 16px; }
.plan-du-site ul { gap: 9px; }
.plan-du-site a { font-size: 13px; color: var(--ink-doux); }
.plan-du-site a:hover { color: var(--accent-sombre); }
footer > .fineprint { max-width: 80ch; font-size: 12px; line-height: 1.6; }
footer > p strong { font-size: 17px; color: var(--ink); letter-spacing: -.025em; }

@media (max-width:1040px) {
  header.site,.landing header.site { gap: 18px; padding-inline: 24px; }
  header.site nav,.landing header.site nav { gap: 17px; }
}
@media (max-width:940px) {
  header.site,.landing header.site {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "marque application" "rubriques rubriques";
    min-height: 0;
    padding: 13px 24px 9px;
    row-gap: 10px;
  }
  header.site nav,.landing header.site nav {
    justify-self: stretch;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    flex-wrap: nowrap;
  }
  header.site nav a { min-height: 40px; font-size: 13px; }
  header.site .brand span { display: inline; }
  header.site.compact { padding-block: 11px 7px; }
  [id] { scroll-margin-top: 140px; }
}
@media (max-width:600px) {
  header.site,.landing header.site { position: sticky; top: 0; padding: 12px 20px 8px; gap: 8px 12px; }
  header.site .brand { font-size: 20px; gap: 8px; }
  header.site .brand img { width: 28px; height: 28px; }
  header.site .app-cta, header.site .adhesion-cta { padding: 9px 12px; font-size: 12px; }
  header.site nav,.landing header.site nav { gap: 9px; padding: 0; overflow: visible; }
  header.site nav a { font-size: 11.5px; min-height: 40px; letter-spacing: -.01em; }
  .button { padding: 12px 18px; font-size: 14px; }
  h1 { font-size: clamp(40px,10.4vw,58px); }
  h2 { font-size: clamp(29px,7.4vw,38px); }
  .lede { font-size: 18px; }
  .grid { grid-template-columns: minmax(0,1fr); }
  .grid article { padding: 24px; }
  .hero.produit .montre { width: min(280px,76vw); }
  .tour { padding: 20px; }
  .tour-buttons { gap: 6px; }
  .tour-buttons button { flex: 1; padding-inline: 8px; font-size: 12px; }
  .tour-panel h3 { max-width: 20ch; }
  .tour-panel .cadre { max-width: 270px; }
  .tour-flow li { padding-left: 42px; }
  .manifeste section p { font-size: 16.5px; }
  .manifeste section .eyebrow { font-size: 12px; }
  .manifeste section .fineprint { font-size: 13px; }
  #newsletter .champs { grid-template-columns: 1fr; }
  #liste,.landing #liste { scroll-margin-top: 132px; }
  .plan-du-site { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  footer { padding-top: 42px; }
}
@media (max-width:360px) {
  header.site,.landing header.site { padding-inline: 14px; }
  header.site nav,.landing header.site nav { gap: 7px; }
  header.site nav a { font-size: 10.5px; }
}
@media (prefers-reduced-motion:reduce) {
  .cadre,.button,.grid.portes .porte { transition: none; }
  .button:hover,.grid.portes .porte:hover { transform: none; }
}
/* Trois éléments dans l'en-tête : sur un petit écran, le logo garde son icône. */
@media (max-width:420px) {
  header.site .brand span { display: none; }
  header.site .header-actions { gap: 6px; }
  header.site .app-cta span { display: none; }
}
/* Une capture réelle suffit : cadrage plat, aucune coque inclinée. */
.hero.produit .cadre,.hero.produit .cadre:hover { transform: none; }
.support-note {
  padding: 16px 20px;
  border: 1px solid var(--line, #d8d8d2);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* Les pages produit alternent démonstration et lecture, avec la même grille. */
.product-preview .hero { max-width: 860px; }
.product-preview .hero h1 { max-width: 16ch; }
.product-preview .preview-path { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 24px 0; margin-top: 30px; border-top: 1px solid var(--line); list-style: none; }
.preview-path li { font-size: 14px; font-weight: 600; color: var(--ink); }
.preview-path span { color: var(--accent-sombre); font-size: 11px; margin-right: 8px; }
.preview-path + p { max-width: 66ch; font-size: 14px; color: var(--ink-doux); }
.product-preview section + section { border-top: 1px solid var(--line); }
.product-preview .demo { grid-template-columns: 260px minmax(0,1fr); gap: clamp(32px,6vw,80px); }
.product-preview .extrait { padding: clamp(24px,4vw,44px); border: 1px solid var(--line); background: var(--soft); }
.product-preview .extrait h3 { font-size: clamp(24px,3vw,32px); line-height: 1.2; }
.product-preview .extrait h4 { color: var(--accent-sombre); letter-spacing: .08em; }
.product-preview .extrait p,.product-preview .extrait li { font-size: 16px; line-height: 1.7; }
.product-preview .preview-library { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 32px; }
.preview-library article { padding: 22px 0; border-top: 1px solid var(--line); }
.preview-library p { font-size: 15px; color: var(--ink-doux); }
.preview-library a { color: var(--accent-sombre); font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.product-detail .hero { max-width: 940px; }
.product-detail .hero h1 { max-width: 16ch; }
.product-detail .detail-contents { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 22px 0 0; border-top: 1px solid var(--line); margin-top: 32px; }
.detail-contents a { font-size: 14px; font-weight: 600; text-underline-offset: 4px; color: var(--accent-sombre); }
.product-detail #vitrine { border-top: 1px solid var(--line); }
.product-detail .vitrine { gap: clamp(28px,5vw,64px); }
.product-detail .vitrine figcaption { font-size: 14px; line-height: 1.65; }
.product-detail .vitrine figcaption strong { font-size: 18px; line-height: 1.35; margin-bottom: 8px; }
.product-detail #produit .grid { gap: 0 40px; }
.product-detail #produit .grid article { background: transparent; border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 26px 0; }
.product-detail #produit .grid article:hover { transform: none; box-shadow: none; }
.product-detail #produit .grid article p { font-size: 15px; }
.preview-screen-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(28px,5vw,64px); margin-block: 36px 24px; }
.preview-screen-grid figure { margin: 0; min-width: 0; grid-column: span 2; }
.preview-screen-grid figure:nth-last-child(-n+2) { grid-column: span 3; }
.preview-screen-grid .cadre { width: min(100%,250px); margin-inline: auto; }
.preview-screen-grid figcaption { max-width: 30ch; margin: 20px auto 0; font-size: 14px; line-height: 1.65; color: var(--ink-doux); }
.preview-screen-grid figcaption strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 18px; }
.product-detail .showcase-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 64px; align-items: end; margin-bottom: 32px; }
.product-detail .showcase-head h2 { margin: 12px 0 0; }
.product-detail .showcase-head .lede { font-size: 17px; }
.product-detail .tour-buttons { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.product-detail .tour-buttons button { min-height: 48px; background: transparent; border: 0; padding: 12px; }
.product-detail .tour-buttons button[aria-pressed="true"] { background: var(--nuit); }
@media(max-width:700px) {
  .product-preview .demo { grid-template-columns: 1fr; gap: 28px; }
  .product-preview .demo .ecran { justify-self: center; width: min(260px,76%); }
  .product-preview .preview-library { grid-template-columns: 1fr; gap: 0; }
  .preview-screen-grid { grid-template-columns: 1fr; gap: 40px; }
  .preview-screen-grid figure,.preview-screen-grid figure:nth-last-child(-n+2) { grid-column: auto; }
  .preview-screen-grid .cadre { max-width: 235px; }
  .product-detail .detail-contents { gap: 12px 20px; }
  .product-detail .showcase-head { grid-template-columns: 1fr; gap: 24px; }
  .product-detail .tour-buttons { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
