/*
 * Kairo Labs — site du studio (kairolabs.fr), direction « Clin ».
 * Ivoire et vert sapin, un soleil ambre ; formes arrondies, boutons en pilule, aucune ombre.
 * Pas de cookie, polices hébergées ici, un seul petit script (fermeture du menu burger).
 */

@import url('fonts/fonts.css');

:root {
  --bg: #F7F4EC;
  --surface: #FFFFFF;
  --ink: #1E3A34;
  --ink-2: #55655F;
  --rule: #E2DDCF;
  --accent: #A86A00;
  --on-accent: #FFFFFF;
  --sun: #FFB547;
  --sun-mark: #E09A1F;
  --panel: #1E3A34;
  --on-panel: #F7F4EC;
  --on-panel-2: #C9D3CE;
  --tint: #FFF1D6;
  --on-tint: #6E4A00;
  --display: 'Baloo 2', 'Segoe UI', Roboto, sans-serif;
  --sans: 'Nunito', 'Segoe UI', Roboto, sans-serif;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11211C;
    --surface: #1A302A;
    --ink: #EEF0E8;
    --ink-2: #A9B7B1;
    --rule: #2B443C;
    --accent: #FFB547;
    --on-accent: #11211C;
    --sun-mark: #FFB547;
    --tint: #3A3018;
    --on-tint: #FFD58A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pill { align-self: flex-start; padding: 5px 14px; border-radius: 999px; background: var(--tint); color: var(--on-tint); font-weight: 800; font-size: 14px; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 38px; height: 38px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.wordmark span { font-weight: 600; color: var(--accent); }
.site-nav { margin-left: auto; display: flex; gap: 28px; align-items: center; font-size: 16px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.lang { padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); font-size: 14px; }

/* Menu burger (téléphone) : <details> ; le script de la page le referme après un lien. */
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .icon { width: 24px; height: 24px; }
.menu .close-icon, .menu[open] .open-icon { display: none; }
.menu[open] .close-icon { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--rule); border-radius: 0 0 24px 24px; display: flex; flex-direction: column; padding: 8px 16px 18px; font-weight: 700; }
.menu-panel a { color: var(--ink); text-decoration: none; font-size: 18px; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.menu-panel a.lang { align-self: flex-start; margin-top: 14px; padding: 4px 14px; border: 1px solid var(--rule); }
@media (max-width: 720px) {
  .site-header { position: relative; }
  .site-nav { display: none; }
  .menu { display: block; }
}

/* Accueil */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 72px; padding-bottom: 96px; align-items: center; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; }
}
.hero-text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0; font-size: 21px; max-width: 30em; color: var(--ink-2); }
.hero-art { display: block; width: 100%; height: auto; }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 800; font-size: 17px; border: 2px solid var(--ink); border-radius: 999px; }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Sections numérotées */
section.part { padding: 0 0 96px; }
.part-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.part-num { width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: #1E3A34; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 44px); line-height: 1.05; }

/* Produits */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px; background: var(--surface); border: 1px solid var(--rule); border-radius: 32px; }
@media (min-width: 760px) {
  .product { grid-template-columns: 168px minmax(0, 1fr); gap: 36px; align-items: center; }
}
.product-icon { width: 168px; height: 168px; border-radius: 38px; display: block; }
.product-body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.product .pill { font-size: 13px; }
.product h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.product p { margin: 0; max-width: 36em; color: var(--ink-2); }
.product .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* Principes */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.principle { padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; display: flex; flex-direction: column; gap: 10px; }
.principle-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--on-tint); display: flex; align-items: center; justify-content: center; }
.principle h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.principle p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* Contact : panneau sapin, le même dans les deux thèmes */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; padding: 56px; background: var(--panel); color: var(--on-panel); border-radius: 36px; }
@media (min-width: 760px) {
  .contact { grid-template-columns: minmax(0, 1fr) 150px; gap: 40px; }
}
.contact-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact-num { font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); }
.contact h2 { font-size: clamp(32px, 4vw, 48px); text-wrap: balance; }
.contact .mail { display: inline-flex; align-items: center; gap: 10px; color: var(--on-panel); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact .mail:hover { color: var(--sun); }
.contact p { margin: 0; font-size: 16px; color: var(--on-panel-2); }
.contact p a { color: var(--on-panel); }
.contact p a:hover { color: var(--sun); }
.contact-mark { width: 150px; height: 150px; }
.contact :focus-visible { outline-color: var(--sun); }

/* Pages de texte */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 808px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); }
.doc h2 { margin-top: 24px; font-size: 26px; }
.doc p { margin: 0; font-size: 17px; }
.doc .updated { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.todo { background: var(--tint); color: var(--on-tint); padding: 0 6px; border-radius: 6px; font-weight: 700; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 15px; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .mark { width: 24px; height: 24px; color: var(--ink); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer p { margin: 0; flex-basis: 100%; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 68px; }
  .brand .mark { width: 32px; height: 32px; }
  .wordmark { font-size: 24px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 56px; gap: 28px; }
  .lead { font-size: 18px; }
  section.part { padding-bottom: 56px; }
  .product { padding: 22px; border-radius: 28px; }
  .product-icon { width: 84px; height: 84px; border-radius: 20px; }
  .product .actions { flex-direction: column; align-items: stretch; }
  .product .actions .button { justify-content: center; }
  .contact { padding: 28px 22px; border-radius: 28px; }
  .contact-mark { width: 56px; height: 56px; order: -1; }
}
