/* =====================================================================
   Design commun du site damdam.me
   ---------------------------------------------------------------------
   Une seule feuille pour toutes les pages (accueil + une page par app).
   Chaque page d'app ne redéfinit QUE sa couleur d'accent :

       <style>:root{ --accent:#f6b23f; --accent-ink:#231a08 }</style>

   `--accent-ink` est la couleur du texte POSÉ sur l'accent (bouton plein) :
   sombre sur un accent clair, blanc sur un accent foncé.
   ===================================================================== */

:root{
  --accent:#f6b23f;          /* remplacé par chaque page d'app */
  --accent-ink:#231a08;
  --plum:#967da9;
  --bg:#f5f3f7;
  --surface:#ffffff;
  --text:#2a2238;
  --muted:#6f6880;
  --line:rgba(150,125,169,.22);
  --shadow:0 20px 50px -18px rgba(42,34,56,.28);
  --radius:22px;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#151021; --surface:#1e1830; --text:#efeaf6; --muted:#a79fb8;
    --line:rgba(150,125,169,.28);
    --shadow:0 20px 50px -18px rgba(0,0,0,.6);
  }
}

*{box-sizing:border-box}
/* Lu par les lecteurs d'écran, invisible à l'œil. */
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
.wrap{width:min(1080px,92vw); margin-inline:auto}
.wrap-narrow{width:min(760px,92vw); margin-inline:auto}

/* ---- Barre du haut ------------------------------------------------- */
header.site{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(180%) blur(14px);
  background:color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom:1px solid var(--line);
}
.bar{display:flex; align-items:center; gap:12px; padding:12px 0}
.bar img{width:34px; height:34px; border-radius:9px}
.bar strong,.bar>a{font-size:17px; letter-spacing:-.2px; font-weight:650; text-decoration:none}
.bar nav{margin-left:auto; display:flex; gap:22px; font-size:14.5px}
.bar nav a{color:var(--muted); text-decoration:none}
.bar nav a:hover{color:var(--text)}
@media (max-width:560px){ .bar nav{display:none} }

/* ---- Héros ---------------------------------------------------------- */
.hero{position:relative; overflow:hidden; padding:78px 0 40px}
.hero::before,.hero::after{
  content:""; position:absolute; border-radius:50%; filter:blur(70px); z-index:0;
}
.hero::before{
  width:520px;height:520px;top:-220px;left:-140px;
  background:color-mix(in srgb, var(--accent) 30%, transparent);
}
.hero::after{
  width:460px;height:460px;bottom:-240px;right:-120px;
  background:color-mix(in srgb, var(--plum) 28%, transparent);
}
.hero .wrap{position:relative; z-index:1}
.hero .appicon{width:96px;height:96px;border-radius:22px;box-shadow:var(--shadow);display:block}
h1{
  font-size:clamp(40px,7vw,68px); line-height:1.04; letter-spacing:-.03em;
  margin:22px 0 0; font-weight:800;
}
.tagline{font-size:clamp(19px,2.6vw,25px); color:var(--muted); margin:14px 0 0; max-width:34ch}
.lede{margin:22px 0 0; max-width:52ch; font-size:17px}

/* ---- Boutons --------------------------------------------------------- */
.cta{display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:30px}
.badge{
  display:inline-flex; align-items:center; gap:9px;
  background:var(--accent); color:var(--accent-ink); font-weight:700; font-size:15px;
  padding:13px 22px; border-radius:999px; text-decoration:none;
  box-shadow:0 10px 24px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}
.badge.soon{
  background:transparent; color:var(--muted);
  border:1px solid var(--line); box-shadow:none; font-weight:600;
}
.platforms{font-size:14px; color:var(--muted); margin-top:14px}

/* ---- Captures d'écran ------------------------------------------------ */
.shots{display:flex; gap:26px; justify-content:center; flex-wrap:wrap; padding:20px 0 70px}
.shots figure{margin:0; text-align:center; width:216px}
.shots img{
  width:100%; border-radius:26px; display:block;
  box-shadow:var(--shadow); border:1px solid var(--line); background:var(--surface);
}
.shots figcaption{margin-top:14px; font-size:14px; color:var(--muted)}

/* ---- Sections -------------------------------------------------------- */
section{padding:64px 0; border-top:1px solid var(--line)}
h2{font-size:clamp(26px,3.6vw,36px); letter-spacing:-.02em; margin:0 0 10px; font-weight:750}
.sub{color:var(--muted); margin:0 0 34px; max-width:56ch}

/* minmax 300px → 3 colonnes sur grand écran : 6 cartes tombent en 3+3
   (équilibré) plutôt qu'en 4+2 (rangée bancale). */
.grid{display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:24px;
}
.card .ico{
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
  background:color-mix(in srgb, var(--accent) 16%, transparent);
  font-size:21px; margin-bottom:14px;
}
.card h3{margin:0 0 7px; font-size:17.5px; letter-spacing:-.01em}
.card p{margin:0; color:var(--muted); font-size:15px}

/* ---- Deux colonnes (bloc Apple Watch, etc.) -------------------------- */
.split{display:grid; grid-template-columns:1fr auto; gap:44px; align-items:center}
@media (max-width:720px){ .split{grid-template-columns:1fr; gap:30px} }
.watchshot{
  width:210px; border-radius:34px; display:block; justify-self:center;
  box-shadow:var(--shadow); border:1px solid var(--line);
}
ul.ticks{list-style:none; padding:0; margin:22px 0 0}
ul.ticks li{padding-left:28px; position:relative; margin-bottom:11px; color:var(--muted)}
ul.ticks li::before{content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:800}

/* ---- Encart mis en avant --------------------------------------------- */
.callout{
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 13%, transparent),
    color-mix(in srgb, var(--plum) 13%, transparent));
  border:1px solid var(--line); border-radius:var(--radius); padding:34px;
}
.callout h2{margin-bottom:8px}

/* ---- Liste des apps (page d'accueil) --------------------------------- */
.apps{display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); padding-bottom:10px}
.app{
  display:flex; gap:18px; align-items:flex-start; text-decoration:none;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:22px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.app:hover{transform:translateY(-3px); box-shadow:var(--shadow)}
.app img{width:62px;height:62px;border-radius:15px;flex:none}
.app h3{margin:2px 0 5px; font-size:18px; letter-spacing:-.01em}
.app p{margin:0; color:var(--muted); font-size:14.5px}
.app .placeholder{
  width:62px;height:62px;border-radius:15px;flex:none;
  display:grid;place-items:center;
  background:color-mix(in srgb, var(--plum) 18%, transparent);
  color:var(--plum); font-weight:800; font-size:26px;
}
.app .state{
  display:inline-block; margin-top:10px; font-size:12px; font-weight:700;
  letter-spacing:.02em; text-transform:uppercase;
  color:var(--muted); border:1px solid var(--line);
  padding:3px 9px; border-radius:999px;
}
.app .state.live{
  color:var(--accent-ink); background:var(--accent); border-color:transparent;
}
/* Une carte sans page dédiée n'est pas cliquable : pas de faux lien. */
.app.disabled{pointer-events:none; opacity:.72}

/* ---- Pages de texte (confidentialité, mentions) ----------------------- */
.doc h1{font-size:clamp(30px,5vw,42px); letter-spacing:-.02em; margin:0 0 8px}
.doc .updated{color:var(--muted); font-size:14.5px; margin:0 0 34px}
.doc h2{font-size:20px; letter-spacing:-.01em; margin:38px 0 10px}
.doc .lead{font-size:18px}
.doc .callout{padding:22px 24px; margin:26px 0; border-radius:18px}
.doc .callout strong{font-size:17px}
/* Une liste énumère, elle ne commence pas une nouvelle section : puces
   rapprochées du texte, et pas d'espace supplémentaire avant/après. */
.doc ul{padding-left:22px; margin:0 0 16px}
.doc li{margin-bottom:6px}
/* Ici .sub est une note de bas de paragraphe, pas un chapô de section :
   elle se colle au paragraphe qu'elle précise. */
.doc .sub{margin:-6px 0 0; font-size:15px}

/* ---- Bloc perso (haut de la page d'accueil) ---------------------------
   Reprise de l'ancienne page carrd. Fond sombre FIXE : ce bloc ne suit pas
   le thème clair/sombre du système, sinon il perd tout son caractère. Le
   reste du site continue de le suivre normalement.

   Les deux polices sont auto-hébergées (sous-ensemble latin, 12 Ko chacune)
   plutôt que chargées depuis Google Fonts : aucun appel réseau externe,
   donc rien à déclarer côté RGPD et rien qui casse si Google bouge une URL.
   Elles ne sont téléchargées que par les pages qui les utilisent.
   ----------------------------------------------------------------------- */
@font-face{
  font-family:MuseoModerno; font-style:normal; font-weight:700; font-display:swap;
  src:url(fonts/museomoderno-700-latin.woff2) format("woff2");
}
@font-face{
  font-family:Inconsolata; font-style:normal; font-weight:400; font-display:swap;
  src:url(fonts/inconsolata-400-latin.woff2) format("woff2");
}

/* L'accueil tient dans une seule vue, sans scroll : le document occupe la
   hauteur de l'écran, le bloc perso prend toute la place restante et la
   photo se cale sur la hauteur disponible au lieu d'une taille fixe. */
body.home{min-height:100svh; display:flex; flex-direction:column}
.me{
  flex:1 0 auto; display:flex; align-items:center;
  background:#191919; color:#f8f6f4;
  border-top:none; padding:40px 0;
}
.me-grid{
  display:grid; grid-template-columns:1fr auto; gap:34px 60px;
  align-items:center; text-align:right;
}
.me h1{
  font-family:MuseoModerno,sans-serif; font-weight:700; color:inherit;
  font-size:clamp(38px,5.6vw,60px); line-height:1.125; letter-spacing:2px;
  margin:0;
}
.me-tag{
  font-family:Inconsolata,ui-monospace,monospace;
  font-size:16px; letter-spacing:2px; margin:20px 0 0; color:inherit;
}
.me-photo{
  width:auto; aspect-ratio:3/4; object-fit:cover; display:block;
  height:clamp(260px,55vh,560px);
  height:clamp(260px,55svh,560px);   /* svh : ignore la barre d'URL mobile */
}

/* Réseaux sociaux : même rangée que les apps, séparés par un filet, et
   calés sur la hauteur des logos — pas sur celle des libellés. */
.me-links{
  list-style:none; margin:0; padding:0 0 0 28px;
  display:flex; align-items:center; gap:14px; height:64px;
  border-left:1px solid rgba(248,246,244,.18);
}
.me-links a{display:block; opacity:.8; transition:opacity .18s ease}
.me-links a:hover{opacity:1}
.me-links svg{width:26px; height:26px; fill:#f8f6f4; display:block}

/* Les apps sur l'accueil : le logo et le nom, rien d'autre. Le descriptif,
   les captures et la politique de confidentialité vivent sur la page de
   chaque app — c'est là qu'on va en cliquant. */
.me-shelf{grid-column:1/-1}
.me-row{display:flex; justify-content:flex-end; align-items:flex-start; gap:28px}
.me-apps{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:flex-end; gap:22px;
}
/* Largeur libre plutôt que fixe : « Convertisseur » est bien plus large que
   son icône et déborderait sur son voisin. */
.me-apps li{min-width:72px}
.me-apps a,.me-apps .off{display:block; text-decoration:none; color:inherit; text-align:center}
.me-apps a{transition:transform .18s ease}
.me-apps a:hover{transform:translateY(-4px)}
/* Une app sans page dédiée n'est pas un lien : pas de faux clic. */
.me-apps .off{opacity:.4}
.me-apps img,.me-apps .ph{width:64px; height:64px; border-radius:15px; margin:0 auto; display:block}
.me-apps .ph{
  display:grid; place-items:center; background:rgba(248,246,244,.1);
  color:rgba(248,246,244,.8); font-weight:700; font-size:26px;
}
.me-apps span{
  display:block; margin-top:10px;
  font-family:Inconsolata,ui-monospace,monospace; font-size:12px; letter-spacing:1px;
}

/* Pied de page sombre et compact, pour que l'accueil reste d'un seul bloc
   et tienne dans la hauteur de l'écran. */
/* `footer.site.me-foot` et non `.me-foot` seul : `footer.site` est plus loin
   dans la feuille et l'emporterait à spécificité égale, le padding compact
   ne s'appliquerait pas. */
footer.site.me-foot{
  background:#191919; color:rgba(248,246,244,.5); padding:20px 0 26px;
  border-top:1px solid rgba(248,246,244,.13);
}
.me-foot a{color:rgba(248,246,244,.5)}
.me-foot a:hover{color:#f8f6f4}

@media (max-width:720px){
  .me{padding:20px 0}
  .me-grid{grid-template-columns:1fr; gap:22px}
  .me-photo{
    justify-self:end;
    height:clamp(200px,42vh,420px);
    height:clamp(200px,42svh,420px);
  }
  /* Logos resserrés : à 375 px de large, la rangée débordait d'une poignée
     de pixels et Platine repassait à la ligne. */
  .me-apps{gap:12px}
  .me-apps li{min-width:60px}
  .me-apps img,.me-apps .ph{width:54px; height:54px; border-radius:13px}
  .me-apps .ph{font-size:22px}
  .me-apps span{margin-top:8px; font-size:11px; letter-spacing:.5px}
  .me-row{gap:16px}
  .me-links{padding-left:16px; gap:12px; height:54px}
  .me-links svg{width:24px; height:24px}
}

/* ---- Pied de page ----------------------------------------------------- */
footer.site{padding:44px 0 60px; color:var(--muted); font-size:14.5px; border-top:1px solid var(--line)}
footer.site a{color:var(--muted)}
.foot{display:flex; gap:20px; flex-wrap:wrap; align-items:center}
.foot .sp{margin-left:auto}
