/* ADBL.ca — feuille de style publique (V4.6)
   Aucun style en ligne n'est nécessaire : la CSP interdit « style-src unsafe-inline ». */

:root {
  --ink: #183248;
  --ink-soft: #3F566A;
  --paper: #FFFEFB;
  --sky-bg: #EEF9FF;
  --sun-bg: #FFF7DD;
  --line: #D6E4ED;
  --field-line: #6F8CA0;

  --rose: #FF6D85;
  --sky: #4EB6E5;
  --mint: #43BF98;
  --sun: #FFD76A;

  --rose-text: #A92646;
  --focus: #0A5C85;

  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: max(20px, calc((100% - 1120px) / 2));
  --gutter-wide: max(16px, calc((100% - 1240px) / 2));
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 26px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  font: 700 17px/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: #0E2130; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(24, 50, 72, .08); }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: 15px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 251, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(24, 50, 72, .08); }
.bar {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--header-h); padding: 8px var(--gutter-wide);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; min-width: 0; border-radius: 12px; }
.header-cta { white-space: nowrap; }
.brand-logo { flex: none; display: block; height: 80px; width: auto; max-width: none; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font: 700 16px/1.2 var(--font-display);
}
.nav a:hover { background: var(--sky-bg); }

.bar-right { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 4px; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 6px 12px; border-radius: 999px; background: #EDF3F7; color: var(--ink);
  text-decoration: none; font: 800 14px/1 var(--font-display);
}
.lang:hover { background: #DCE9F1; }
.lang.is-active { background: var(--ink); color: #fff; }
.flags { display: inline-flex; flex: none; }
.flags img { display: block; width: 27px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(24, 50, 72, .22); }

.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 800 15px/1 var(--font-display); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2.5px; background: currentColor; border-radius: 2px; content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end; gap: clamp(16px, 4vw, 56px);
  padding: clamp(40px, 7vw, 88px) var(--gutter-wide) 0;
  background: var(--sky-bg);
  overflow: hidden;
}
.hero-copy { align-self: center; padding-bottom: clamp(32px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(46px, 7.2vw, 92px); line-height: .98; font-weight: 800;
  letter-spacing: -.028em; margin-bottom: .32em; text-wrap: balance;
}
.lead { max-width: 56ch; }
.lead p { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-soft); }
.lead p:first-child { font-size: clamp(19px, 1.7vw, 22px); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { align-self: end; margin-bottom: -2px; }
.hero-svg { display: block; width: 100%; height: auto; }

/* L'unique moment animé de la page : l'arc-en-ciel se dessine, le soleil se lève. */
.rainbow path { animation: draw 1.15s cubic-bezier(.35, .1, .2, 1) both; }
.rainbow path:nth-child(2) { animation-delay: .16s; }
.rainbow path:nth-child(3) { animation-delay: .32s; }
.rainbow path:nth-child(4) { animation-delay: .48s; }
.sun { animation: rise 1.1s .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes draw {
  0% { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
  4% { opacity: 1; }
  100% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes rise {
  from { transform: translateY(46px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rainbow path, .sun { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.section h2 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: .55em; text-wrap: balance;
}
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 88px); align-items: start;
}
.muted { color: var(--ink-soft); }

.manifest .split h2 { position: sticky; top: calc(var(--header-h) + 24px); }
.manifest-body { max-width: 62ch; }
.manifest-body p { font-size: 19px; line-height: 1.75; margin-bottom: 1.15em; }
.manifest-body .manifest-lead {
  font: 700 clamp(25px, 2.8vw, 34px)/1.25 var(--font-display); letter-spacing: -.01em; margin-bottom: 1em;
}
.manifest-body .manifest-key {
  font: 800 clamp(26px, 3vw, 36px)/1.2 var(--font-display); color: var(--rose-text); margin: 1.1em 0;
}

.mission { background: var(--sky-bg); }
.mission-text { font-size: 21px; line-height: 1.6; max-width: 34ch; }
.values-title { font: 700 17px/1.3 var(--font-display); color: var(--ink-soft); margin-bottom: 14px; }
.values { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.values li {
  padding: 11px 20px; border-radius: 999px; font: 700 19px/1.2 var(--font-display);
  transform: rotate(-1.2deg);
}
.values li:nth-child(even) { transform: rotate(1.2deg); }
.c-rose { background: #FFDFE6; color: #6E1329; }
.c-sky { background: #D3EFFB; color: #08425E; }
.c-mint { background: #CFF1E4; color: #0B503C; }
.c-sun { background: #FFEBB0; color: #553B00; }

.projects .project {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center;
  max-width: 880px; padding: clamp(22px, 3vw, 34px); border-radius: 32px; background: #FFEDF1;
}
.projects .project + .project { margin-top: 20px; }
.project-icon svg { display: block; width: 96px; height: 96px; }
.project h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 800; }
.project p { margin: 0; }
.project .badge {
  display: inline-block; margin: 10px 0 12px; padding: 4px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 700 15px/1.5 var(--font-display);
}

.journal { background: var(--sun-bg); }
.posts { max-width: 880px; }
.post {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 8px 28px;
  padding: 22px 0; border-top: 2px solid rgba(24, 50, 72, .14);
}
.post time { font: 700 16px/1.5 var(--font-display); color: var(--ink-soft); }
.post h3 { font-size: 26px; line-height: 1.2; font-weight: 800; margin-bottom: .3em; }
.post p { margin: 0; }

.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 8px; width: 5px; border-radius: 3px;
  background: linear-gradient(var(--rose), var(--sun), var(--mint), var(--sky));
}
.timeline li { position: relative; padding-bottom: 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -44px; top: 4px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; border: 6px solid var(--rose);
}
.timeline li:nth-child(2)::before { border-color: var(--sky); }
.timeline time { display: block; font: 700 17px/1.4 var(--font-display); color: var(--ink-soft); margin-bottom: 2px; }
.timeline h3 { font-size: 28px; line-height: 1.15; font-weight: 800; margin-bottom: .25em; }
.timeline p { margin: 0 0 .6em; }
.timeline .detail { color: var(--ink-soft); }

.contact { background: var(--sky-bg); }
.contact .split { align-items: start; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.channels a {
  display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff;
  border: 2px solid var(--line); font: 700 16px/1.2 var(--font-display); text-decoration: none;
}
.channels a:hover { border-color: var(--ink); }

.contact-form {
  background: #fff; border-radius: 32px; padding: clamp(22px, 3.2vw, 38px);
  box-shadow: 0 18px 50px rgba(24, 50, 72, .1);
}
.field { margin-bottom: 18px; }
.field label { display: block; font: 700 16px/1.3 var(--font-display); margin-bottom: 6px; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--field-line); border-radius: 14px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin: 0 0 20px; padding: 14px 18px 8px; border: 2px solid var(--line); border-radius: 18px; }
.captcha legend { padding: 0 8px; font: 700 17px/1.3 var(--font-display); }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; cursor: pointer; }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.form-status { margin: 16px 0 0; min-height: 1.6em; font-weight: 700; }
.form-status.is-ok, .form-status.is-error { padding: 12px 16px; border-radius: 14px; }
.form-status.is-ok { background: #D9F5EA; color: #0B503C; }
.form-status.is-error { background: #FFE3E8; color: #8A1530; }

.tribute { padding: clamp(56px, 8vw, 96px) var(--gutter); text-align: center; }
.tribute p {
  max-width: 44em; margin: 0 auto; font: italic 400 clamp(20px, 2.2vw, 25px)/1.7 Georgia, "Times New Roman", serif;
  color: var(--ink-soft);
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #E8F3F9; }
.stripe { display: flex; height: 8px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--rose); }
.stripe span:nth-child(2) { background: var(--sun); }
.stripe span:nth-child(3) { background: var(--mint); }
.stripe span:nth-child(4) { background: var(--sky); }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  padding: 30px var(--gutter-wide); font-size: 16px;
}
.foot p { margin: 0; }
.foot-brand strong { font: 800 22px var(--font-display); color: #fff; margin-right: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.foot a { color: var(--sun); text-underline-offset: 3px; }
.foot a:focus-visible { outline-color: var(--sun); }
.foot-copy { color: #B9CCD8; }

/* ---------- Adaptation : tablettes puis téléphones ---------- */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
    padding: 8px var(--gutter-wide) 16px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(24, 50, 72, .1);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 18px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
  .split { grid-template-columns: 1fr; }
  .manifest .split h2 { position: static; }
  .post { grid-template-columns: 1fr; }
  .mission-text { max-width: none; }
}
@media (max-width: 760px) {
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  body { font-size: 17px; }
  .bar { gap: 8px; padding-inline: 12px; }
  .brand-logo { height: 52px; }
  .bar-right { gap: 6px; }
  .langs { gap: 3px; }
  .lang { padding: 6px 8px; min-height: 40px; min-width: 40px; justify-content: center; }
  .lang .code { display: none; }
  .menu-text { display: none; }
  .menu-btn { padding: 8px 12px; }
  .project { grid-template-columns: 1fr; }
  .project-icon svg { width: 72px; height: 72px; }
  .values li { font-size: 17px; }
}
@media (max-width: 360px) {
  .bar { gap: 6px; padding-inline: 8px; }
  .brand-logo { height: 44px; }
  .langs { gap: 2px; }
  .lang { padding-inline: 5px; min-width: 38px; }
  .flags img { width: 25px; height: 17px; }
}

/* ---------- Pages secondaires (réseaux sociaux, erreurs) : même en-tête et même pied de page que l'accueil ---------- */
.sub { padding: clamp(40px, 7vw, 96px) var(--gutter); min-height: 52vh; background: var(--sky-bg); }
.sub:focus { outline: none; }
.sub-box { max-width: 760px; margin: 0 auto; }
.sub-box h1 { margin: 0 0 14px; font: 800 clamp(30px, 5vw, 46px)/1.15 var(--font-display); letter-spacing: -.01em; }
.sub-lead { margin: 0 0 8px; font-size: clamp(18px, 2.2vw, 21px); max-width: 38em; }
.sub-en { margin: 0 0 24px; color: var(--ink-soft); font-size: 16px; max-width: 38em; }
.sub-code {
  margin: 0; font: 800 clamp(72px, 20vw, 120px)/1 var(--font-display);
  background: linear-gradient(90deg, var(--rose), var(--sun), var(--mint), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.sub-tag { margin: 28px 0 0; color: var(--ink-soft); font-size: 16px; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; list-style: none; margin: 28px 0 0; padding: 0; }
.social-card {
  display: block; height: 100%; padding: 18px 20px; border-radius: 20px; background: #fff;
  border: 2px solid var(--line); color: var(--ink); text-decoration: none;
}
.social-card strong { display: block; font: 800 20px/1.2 var(--font-display); }
.social-card span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-soft); overflow-wrap: anywhere; }
a.social-card:hover { border-color: var(--ink); }
.social-card.is-soon { background: transparent; border-style: dashed; }
.social-card.is-soon strong { color: var(--ink-soft); }
.sub-center { text-align: center; }
.sub-center .sub-lead, .sub-center .sub-en { margin-inline: auto; }
.sub-center .sub-actions { justify-content: center; }
