/* kit.ludoc.net — charte « Les Bidouilles » (navy, jaune signal, Barlow
   Condensed en capitales). Particularité de ce site : des arrondis — fiches,
   icônes, pilules « AI Model », fanions arrondis à gauche. */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Marge horizontale : 72 px, puis tout ce qui dépasse 1200 px de contenu.
   Le menu du header (centré) tombe ainsi au même endroit sur tous les sites. */
:root { --pad: max(72px, (100% - 1200px) / 2); }

body {
  background: #08192b;
  color: #eaf2f9;
  font-family: 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #ffc72c; text-decoration: none; }
a:hover { color: #ffd968; }
:focus-visible { outline: 2px solid #ffc72c; outline-offset: 2px; }

/* ---- Menu inter-sites ---- */
.site-nav {
  display: flex; align-items: center; justify-content: center; gap: 34px;
  height: 76px; padding: 0 var(--pad);
  background: rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.site-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 17px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #8fb0cc; line-height: 1;
  transition: color .2s ease;
}
.site-nav a:hover { color: #eaf2f9; }
.site-nav a.is-active {
  font-weight: 700; color: #ffc72c;
  border-bottom: 2px solid #ffc72c; padding-bottom: 3px;
}
.site-nav a.is-active:hover { color: #ffc72c; }

/* Manuel mis en avant : pilule à la couleur du texte (bleu pâle, claire au
   survol, jaune quand l'entrée est active sur manuel-videaste.com). */
.site-nav a.nav-manuel {
  border: 1px solid currentColor;
  border-radius: 999px;
  /* padding droit réduit du letter-spacing final : le mot paraît centré. */
  padding: 6px calc(14px - 0.16em) 6px 14px;
}
.site-nav a.nav-manuel.is-active { border-bottom: 1px solid currentColor; padding-bottom: 6px; }

/* ---- Bloc titre ---- */
.page-title {
  padding: 64px var(--pad) 44px;
  display: flex; flex-direction: column; gap: 22px;
}
.page-title h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 66px; line-height: 0.92;
  text-transform: uppercase;
}
.page-title .intro { font-size: 20px; line-height: 1.55; color: #8fb0cc; max-width: 760px; text-wrap: pretty; }
.page-title .maj { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #5f89ad; }

/* ---- Catégories ---- */
.section-head { padding: 40px var(--pad) 0; display: flex; align-items: center; gap: 16px; }
.cat:first-child .section-head { padding-top: 46px; }
.section-head .rule { flex: 1; height: 1px; background: rgba(255,255,255,0.12); }

.section-tag {
  background: #ffc72c; color: #08192b;
  font: 700 15px/1 'Barlow Condensed', sans-serif;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 9px 26px 9px 16px;
  border-radius: 10px 0 0 10px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.grid {
  padding: 22px var(--pad) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  align-items: start;
}
.cat:last-child .grid { padding-bottom: 64px; }

/* ---- Fiches outil ---- */
.tool {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
  background: rgba(0,0,0,0.24); padding: 20px;
  color: #eaf2f9;
  transition: border-color .2s ease, background .2s ease;
}
.tool:hover { border-color: #ffc72c; background: #0e2740; color: #eaf2f9; }
.tool:hover .tool-name { color: #ffc72c; }

.tool-icon {
  width: 56px; height: 56px; flex: none;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: repeating-linear-gradient(135deg, #12314f 0 7px, #0f2942 7px 14px);
}
.tool-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tool-body.has-usages { gap: 12px; }

.tool-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 26px; line-height: 1;
  text-transform: uppercase; transition: color .2s ease;
}
.tool-desc { font-size: 15px; line-height: 1.5; color: #8fb0cc; }
.tool-url { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #7fa8cc; }

/* Usages Topaz : l'usage en blanc, le modèle en pilule jaune. */
.usages { display: flex; flex-direction: column; gap: 8px; }
.usage { display: flex; align-items: baseline; gap: 10px; }
.usage-label { font-size: 15px; line-height: 1.3; color: #eaf2f9; }
.usage-model {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.04em;
  color: #ffc72c;
  border: 1px solid rgba(255,199,44,0.4); border-radius: 999px;
  padding: 3px 10px; white-space: nowrap;
}

/* ---- Pied de page ---- */
.site-footer {
  margin-top: 0;
  padding: 30px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.22);
  display: flex; align-items: center; gap: 30px;
}
.site-footer .legal { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #5f89ad; }
.site-footer .spacer { flex: 1; }
.site-footer a { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #7fa8cc; }
.site-footer a:hover { color: #eaf2f9; }


/* ------------------------------------------------------------------ le livre
   Bloc repris de lesbidouilles.com : le manuel en 3D flottant, titre,
   description et bouton Commander. */
.book-section { padding: 8px var(--pad) 72px; }

.book-block {
  display: flex; align-items: center; gap: 34px;
  padding: 28px 34px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: inherit;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.book-block:hover,
.book-block:focus-visible { border-color: #ffc72c; box-shadow: 0 0 0 1.5px #ffc72c; }

.book-3d-wrap { flex: 0 0 auto; perspective: 1400px; padding: 22px 30px 34px 14px; }
.book-3d { position: relative; transform-style: preserve-3d; animation: bookFloat 7s ease-in-out infinite; will-change: transform; }
.book-cover {
  width: 168px; height: auto; display: block; border-radius: 2px 4px 4px 2px;
  box-shadow: 26px 26px 48px rgba(0, 8, 16, .62), 0 0 0 1px rgba(168, 198, 224, .14);
}
.book-pages {
  position: absolute; top: 2px; right: -9px; bottom: 2px; width: 10px; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #d8d3c6 0%, #f3efe6 35%, #cfc9bb 70%, #b8b2a4 100%);
  transform: rotateY(14deg); transform-origin: left center;
}
.book-spine-shadow {
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
  border-radius: 2px 0 0 2px; pointer-events: none;
}
.book-floor-shadow {
  position: absolute; left: 8%; right: -4%; bottom: -26px; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 6, 12, .75), rgba(0, 6, 12, 0) 70%);
  filter: blur(6px); animation: bookShadow 7s ease-in-out infinite;
}
@keyframes bookFloat {
  0%, 100% { transform: rotateY(-20deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-14deg) rotateX(2deg) translateY(-14px); }
}
@keyframes bookShadow {
  0%, 100% { transform: scaleX(1); opacity: .5; }
  50%      { transform: scaleX(.88); opacity: .32; }
}
.book-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.book-kicker { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #ffc72c; }
.book-title { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.08; text-transform: uppercase; color: #eaf2f9; }
.book-desc { color: #8fb0cc; font-size: 16px; line-height: 1.5; max-width: 46ch; }
.book-chevron {
  position: relative;
  display: inline-block;
  margin-top: 8px; margin-right: 15px; align-self: flex-start;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  text-transform: uppercase;
  background: #ffc72c; color: #08192b;
  font-size: 14px; letter-spacing: .14em;
  padding: 11px 18px;
  border-radius: 10px 0 0 10px;
}
.book-chevron::after {
  content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 15px;
  background: #ffc72c; clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 760px) {
  .book-section { padding: 0 var(--pad) 48px; }
  .book-block { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px; }
  .book-3d-wrap { padding: 10px 24px 24px 10px; }
}

/* ---- Écrans larges : troisième colonne ---- */
@media (min-width: 1500px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1100px) {
  :root { --pad: 40px; }
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
  :root { --pad: 20px; }

  .site-nav { height: 60px; gap: 24px; }

  .page-title { padding: 30px var(--pad) 24px; gap: 14px; }
  .page-title h1 { font-size: 44px; }
  .page-title .intro { font-size: 16px; }
  .page-title .maj { font-size: 11px; }

  .section-head { padding: 26px var(--pad) 0; gap: 12px; }
  .cat:first-child .section-head { padding-top: 26px; }
  .section-tag {
    font-size: 13px; letter-spacing: 0.16em;
    padding: 7px 22px 7px 12px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  }

  .grid { padding: 16px var(--pad) 0; grid-template-columns: 1fr; gap: 14px; }
  .cat:last-child .grid { padding-bottom: 40px; }

  .tool { gap: 14px; border-radius: 12px; padding: 16px; }
  .tool-icon { width: 46px; height: 46px; border-radius: 10px; }
  .tool-body { gap: 6px; }
  .tool-body.has-usages { gap: 10px; }
  .tool-name { font-size: 22px; }
  .tool-desc { font-size: 14px; }
  .tool-url { font-size: 11px; }

  .usages { gap: 7px; }
  .usage { flex-wrap: wrap; gap: 8px; }
  .usage-label { font-size: 14px; }
  .usage-model { font-size: 10px; padding: 3px 9px; }

  /* Mention seule : les liens réseaux passent sous silence. */
  .site-footer { padding: 18px var(--pad); }
  .site-footer .legal { font-size: 11px; }
  .site-footer a { display: none; }
}

@media (max-width: 480px) {
  .site-nav { justify-content: space-between; gap: 8px; padding: 0 16px; }
  .site-nav a { font-size: 14px; letter-spacing: 0.12em; }
  .site-nav a.is-active { padding-bottom: 2px; }
}

/* Six entrées de menu : resserrer sur les très petits écrans. */
@media (max-width: 400px) {
  .site-nav { padding: 0 12px; gap: 6px; }
  .site-nav a { font-size: 13px; letter-spacing: 0.08em; }
  .site-nav a.nav-manuel { padding: 4px calc(9px - 0.08em) 4px 9px; }
}
@media (max-width: 360px) {
  .site-nav { padding: 0 10px; gap: 5px; }
  .site-nav a { font-size: 12px; letter-spacing: 0.05em; }
  .site-nav a.nav-manuel { padding: 3px calc(7px - 0.05em) 3px 7px; }
}
