/* ==========================================================
   KALIMPYO — feuille de style
   Partagée par index.html et mentions-legales.html
   ========================================================== */

/* ===================== POLICES (hébergées sur le site) =====================
   Plus aucun appel à Google Fonts : chargement plus rapide et aucune donnée
   de vos visiteurs envoyée à un tiers (RGPD). Licences : fonts/LICENCES.txt */
@font-face{
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face{
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ===================== TOKENS ===================== */
:root{
  --ink: #1E2260;
  --ink-soft: #4B4F8C;
  --paper: #F5F5FB;
  --paper-soft: #EBEBF6;
  --paper-card: #FFFFFF;
  --brand: #3F47CD;
  --brand-deep: #2C3199;
  --coral: #E0714B;
  --violet: #7C5CC4;
  --accent-light: #9CA3F0;
  --line: #D6D6EC;
  --line-dark: #33397F;
  --danger: #B4431F;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.25rem;
  --sp-5: 3.5rem;
  --sp-6: 5rem;
  --sp-7: 7rem;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.68,.35,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .96;
  margin: 0;
  letter-spacing: .01em;
  text-transform: uppercase;
}

p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
img,svg{ display:block; max-width:100%; }
img{ height:auto; } /* garde les proportions, même avec les attributs width/height */
button{ font-family: inherit; cursor: pointer; }

.icon{ width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--brand-deep);
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--coral);
  display:inline-block;
}
section.dark .eyebrow{ color: var(--accent-light); }
section.dark .eyebrow::before{ background: var(--accent-light); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--ink); color: var(--paper);
  padding: .8em 1.2em; z-index: 999;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding: .95em 1.7em;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--brand); color: var(--paper); }
.btn-primary:hover{ background: var(--brand-deep); }
.btn-ghost-dark{ border-color: rgba(245,245,251,.4); color: var(--paper); }
.btn-ghost-dark:hover{ border-color: var(--paper); background: rgba(245,245,251,.08); }
.btn-ghost-light{ border-color: var(--ink); color: var(--ink); }
.btn-ghost-light:hover{ background: var(--ink); color: var(--paper); }
.btn-block{ width:100%; }

/* ===================== HEADER ===================== */
header{
  position: sticky; top:0; z-index: 100;
  background: rgba(245,245,251,.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding-block: 1.1rem;
}
.logo{
  display:flex; align-items:center;
}
.logo-img{ height: 36px; width:auto; }
.footer-brand .logo-img{ height: 32px; }

nav.primary-nav{ display:flex; align-items:center; gap: var(--sp-4); }
.nav-links{ display:flex; gap: var(--sp-3); font-size: .95rem; font-weight: 600; }
.nav-links a{ position:relative; padding-block: .3rem; }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0%;
  background: var(--coral); transition: width .25s var(--ease);
}
.nav-links a:hover::after{ width:100%; }

.nav-toggle{
  display:none; background:none; border:none; width:38px; height:38px;
  flex-direction:column; justify-content:center; align-items:center; gap:5px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--ink); display:block; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) clamp(1.25rem,4vw,2.5rem);
    gap: var(--sp-2);
    max-height:0; overflow:hidden; opacity:0;
    transition: max-height .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.open{ max-height: 400px; opacity:1; }
  .nav-toggle{ display:flex; }
  .header-cta{ display:none; }
}

/* ===================== HERO ===================== */
.hero{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 86vh;
  background: var(--ink);
  color: var(--paper);
  overflow:hidden;
}
.hero-copy{
  position:relative; z-index:2;
  display:flex; flex-direction:column; justify-content:center;
  gap: var(--sp-3);
  padding: var(--sp-6) clamp(1.25rem,4vw,3.5rem);
}
.hero-copy h1{
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  color: var(--paper);
}
.hero-copy h1 em{
  font-style: normal;
  color: var(--accent-light);
}
.hero-lead{
  max-width: 34ch;
  font-size: 1.1rem;
  color: rgba(245,245,251,.82);
}
.hero-actions{ display:flex; gap: var(--sp-2); flex-wrap:wrap; margin-top: var(--sp-2); }

.hero-visual{
  position:relative;
  background: var(--paper);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  display:flex; align-items:center; justify-content:center;
  animation: wipe-reveal 1.1s var(--ease) both;
}
@keyframes wipe-reveal{
  from{ clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to{ clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%); }
}
.hero-mark-wrap{ position:relative; width:min(85%,460px); display:flex; align-items:center; justify-content:center; }
.hero-glow{ position:absolute; inset:-18% -6%; z-index:0; background: radial-gradient(ellipse at center, rgba(63,71,205,.18), transparent 70%); filter: blur(6px); }
.hero-mark-img{ position:relative; width:100%; z-index:2; filter: drop-shadow(0 10px 24px rgba(30,34,96,.18)); }
.spark{ position:absolute; width:32px; height:32px; z-index:1; }
.spark-top{ top:-10%; right:2%; }
.spark-bottom{ bottom:-14%; left:2%; }

.trust-strip{
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}
.trust-list{
  display:flex; flex-wrap:wrap; gap: var(--sp-4);
  padding-block: var(--sp-3);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-list li{ display:flex; align-items:center; gap:.6em; }
.trust-list .icon{ width:18px; height:18px; color: var(--brand); }

@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; min-height:auto; }
  .hero-visual{ clip-path:none; min-height: 260px; padding: var(--sp-5) 0; animation:none; }
  .hero-copy{ padding-top: var(--sp-6); }
}

/* ===================== SECTIONS ===================== */
section{ padding-block: var(--sp-7); }
section.dark{ background: var(--ink); color: var(--paper); }
.section-head{ max-width: 640px; display:flex; flex-direction:column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.section-head h2{ font-size: clamp(2rem, 3.6vw, 3rem); }
.section-head .lead{ font-size: 1.05rem; color: var(--ink-soft); }
section.dark .section-head .lead{ color: rgba(245,245,251,.75); }

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

/* ===================== ABOUT ===================== */
.about-grid{
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap: var(--sp-6);
  align-items:start;
}
.stat-card{
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-3);
  display:flex; flex-direction:column; align-items:flex-start;
  gap: .3rem;
  position:relative;
  overflow:hidden;
}
.stat-card-mark{ height: 34px; width:auto; margin-bottom: var(--sp-3); opacity:.9; }
.stat-number{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 9vw, 6.5rem);
  line-height: .85;
  color: var(--accent-light);
}
.stat-label{
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(245,245,251,.8);
  margin-bottom: var(--sp-4);
}
.stat-quote{
  font-size: .98rem;
  font-style: italic;
  color: rgba(245,245,251,.85);
  border-top: 1px solid rgba(245,245,251,.2);
  padding-top: var(--sp-2);
  margin-top: auto;
}

.about-copy p{ font-size: 1.05rem; margin-bottom: var(--sp-3); max-width: 62ch; }
.about-copy p:last-of-type{ margin-bottom: 0; }

.value-list{
  margin-top: var(--sp-5);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.value-card{
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-2);
}
.value-card .icon{ color: var(--coral); margin-bottom: var(--sp-1); }
.value-card h3{ font-size: 1.1rem; text-transform:none; letter-spacing:0; margin-bottom: .35rem; font-family: var(--font-body); font-weight:700; }
.value-card p{ font-size: .92rem; color: var(--ink-soft); }

@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
  .stat-card{ max-width: 320px; }
  .value-list{ grid-template-columns: 1fr; }
}

/* ===================== ACTIVITIES ===================== */
.activities-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.activity-card{
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4);
  display:flex; flex-direction:column;
  position:relative;
  overflow:hidden;
}
.activity-card::before{
  content:"";
  position:absolute; inset: 0 auto 0 0; width:4px;
  background: var(--brand);
  transition: background .3s var(--ease);
}
.activity-card.variant-b::before{ background: var(--coral); }
.activity-card.variant-c::before{ background: var(--violet); }

.activity-icon{
  width:56px; height:56px; border-radius: 50%;
  background: var(--ink);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: var(--sp-3);
}
.activity-icon .icon{ color: var(--accent-light); width:26px; height:26px; }

.activity-card h3{ font-size: 1.7rem; margin-bottom: .5rem; }
.activity-card .tagline{ color: var(--ink-soft); margin-bottom: var(--sp-3); font-size: .98rem; }

.service-list{ display:flex; flex-direction:column; gap: .6rem; margin-bottom: var(--sp-4); flex-grow:1; }
.service-list li{
  display:flex; align-items:flex-start; gap: .7em;
  font-size: .96rem;
  padding-block: .35rem;
  border-bottom: 1px solid var(--line);
}
.service-list li:last-child{ border-bottom:none; }
.service-list .icon{ width:19px; height:19px; color: var(--brand); margin-top: .15em; }
.activity-card.variant-b .service-list .icon{ color: var(--coral); }
.activity-card.variant-c .service-list .icon{ color: var(--violet); }

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

/* ===================== CONTACT ===================== */
.contact-grid{
  display:grid;
  grid-template-columns: .85fr 1.15fr;
  gap: var(--sp-6);
}
.contact-info-list{ display:flex; flex-direction:column; gap: var(--sp-4); margin-top: var(--sp-4); }
.contact-info-item{ display:flex; gap: var(--sp-2); align-items:flex-start; }
.contact-info-item .icon{ color: var(--accent-light); margin-top:.2rem; }
.contact-info-item h3{ font-family: var(--font-body); font-size: .78rem; font-weight:700; color: var(--accent-light); text-transform:uppercase; letter-spacing:.08em; margin-bottom:.25rem; }
.contact-info-item p{ color: rgba(245,245,251,.85); }

form{
  background: var(--paper-card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* deux colonnes toujours égales */
  gap: var(--sp-3);
}
.field{ display:flex; flex-direction:column; gap: .4rem; }
.field.full{ grid-column: 1 / -1; }
label{ font-size: .8rem; font-weight:700; letter-spacing:.03em; }
input, select, textarea{
  font-family: var(--font-body);
  font-size: .98rem;
  padding: .8em .9em;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
}
textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size: .82rem; color: var(--ink-soft); }
.form-status{
  display:none; grid-column: 1/-1;
  padding: .9em 1.1em; border-radius: var(--radius); font-size: .92rem;
}
.form-status.is-success{ display:block; background: var(--brand); color:#fff; }
.form-status.is-error{ display:block; background:#FBEDE7; color: var(--danger); border: 1.5px solid var(--danger); }
.form-status a{ text-decoration: underline; }

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

/* ===================== NOUS REJOINDRE ===================== */
.join-grid{
  display:grid;
  grid-template-columns: .85fr 1.15fr;
  gap: var(--sp-6);
  align-items:start;
}
.join-intro h2{ margin-top: var(--sp-2); font-size: clamp(2rem, 3.6vw, 3rem); }
.join-intro .lead{ margin-top: var(--sp-2); font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; }
.join-list{ display:flex; flex-direction:column; gap: var(--sp-3); margin-top: var(--sp-4); }
.join-item{ display:flex; gap: var(--sp-2); align-items:flex-start; padding-top: var(--sp-2); border-top: 2px solid var(--ink); }
.join-item .icon{ color: var(--coral); margin-top: .1rem; }
.join-item h3{ font-family: var(--font-body); font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.3; margin-bottom: .25rem; }
.join-item p{ font-size: .95rem; color: var(--ink-soft); }
.join-form{ border: 1px solid var(--line); }

.field-hint{ font-size: .82rem; color: var(--ink-soft); }
input[type="file"]{ padding: .55em; cursor: pointer; max-width: 100%; }
input[type="file"]::file-selector-button{
  font-family: var(--font-mono); font-weight: 600; font-size: .75rem;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: var(--radius);
  padding: .75em 1.1em; margin-right: .9em; cursor: pointer;
  transition: background-color .25s var(--ease);
}
input[type="file"]:hover::file-selector-button{ background: var(--brand); }

@media (max-width: 860px){
  .join-grid{ grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ===================== FOOTER ===================== */
footer{ background: var(--ink); color: rgba(245,245,251,.7); padding-block: var(--sp-5) var(--sp-3); }
.footer-top{
  display:flex; flex-wrap:wrap; gap: var(--sp-5);
  justify-content:space-between;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(245,245,251,.15);
  margin-bottom: var(--sp-3);
}
.footer-brand .logo{ color: var(--paper); }
.footer-brand p{ max-width: 30ch; margin-top: var(--sp-2); font-size: .92rem; }
.footer-cols{ display:flex; gap: var(--sp-6); flex-wrap:wrap; }
.footer-col h3{ font-family: var(--font-mono); font-size:.75rem; text-transform:uppercase; letter-spacing:.1em; color: var(--accent-light); margin-bottom: var(--sp-2); font-weight:600; }
.footer-col ul{ display:flex; flex-direction:column; gap:.55rem; font-size:.92rem; }
.footer-col a:hover{ color: var(--paper); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; font-size:.8rem; }

@media (max-width: 600px){
  .footer-top{ flex-direction:column; }
}

/* ===================== UTILITAIRES DE SECTION ===================== */
.section-flush{ padding: 0; }
.section-soft{ background: var(--paper-soft); }
.hero .eyebrow{ color: var(--accent-light); }
.contact-intro h2{ margin-top: var(--sp-2); font-size: clamp(2rem, 3.6vw, 3rem); }
.contact-intro .lead{ margin-top: var(--sp-2); font-size: 1.05rem; color: rgba(245,245,251,.75); }

/* ===================== LIENS TÉLÉPHONE / EMAIL ===================== */
.contact-info-item a,
.footer-col li a.contact-link{
  text-decoration: underline;
  text-decoration-color: rgba(245,245,251,.35);
  text-underline-offset: .2em;
}
.contact-info-item a:hover,
.footer-col li a.contact-link:hover{ text-decoration-color: currentColor; }
.footer-bottom a{ text-decoration: underline; text-underline-offset: .2em; }
.footer-bottom a:hover{ color: var(--paper); }

/* ===================== FORMULAIRE : validation et envoi ===================== */
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; } /* piège à robots, invisible */
.optional{ font-weight: 500; color: var(--ink-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"]{ border-color: var(--danger); }
.field-error{ font-size: .82rem; font-weight: 600; color: var(--danger); min-height: 0; }
.field-error:empty{ display:none; }
.form-note{ margin-top: .6rem; }
.form-note a{ text-decoration: underline; text-underline-offset: .2em; }
.btn[disabled]{ opacity: .65; cursor: progress; transform: none; }

/* ===================== À COMPLÉTER =====================
   Surligne en jaune tout ce qu'il vous reste à remplacer.
   Quand tout est rempli, plus rien n'est surligné. */
.todo{ background: #FFE27A; color: #1E2260; padding: 0 .25em; border-radius: 2px; }

/* ===================== PAGE MENTIONS LÉGALES ===================== */
.legal{ padding-block: var(--sp-6) var(--sp-7); }
.legal-inner{ max-width: 72ch; }
.legal h1{ font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: var(--sp-2) 0 var(--sp-3); }
.legal h2{ font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: var(--sp-5) 0 var(--sp-2); padding-top: var(--sp-3); border-top: 2px solid var(--ink); }
.legal h3{ font-size: 1.3rem; margin: var(--sp-3) 0 var(--sp-1); }
.legal p, .legal li{ font-size: 1.02rem; }
.legal p{ margin-bottom: var(--sp-2); }
.legal ul{ list-style: disc; padding-left: 1.3em; margin-bottom: var(--sp-2); display:flex; flex-direction:column; gap:.4rem; }
.legal a{ color: var(--brand-deep); text-decoration: underline; text-underline-offset: .2em; }
.legal .updated{ font-family: var(--font-mono); font-weight: 600; font-size: .78rem; color: var(--ink-soft); }
.back-link{ font-weight: 600; font-size: .95rem; }
.back-link:hover{ color: var(--brand); }
