/* =========================================================
   pytchoun interactive — feuille de style principale
   Couleurs tirées du logo
   ========================================================= */
:root {
  --yellow: #F4BE24;      /* pull de la mascotte */
  --yellow-soft: #FFE9A8;
  --py-blue: #2F5D9A;     /* logo Python, bleu */
  --blue: #0F4FAE;        /* "Interactive" */
  --blue-deep: #1B3F75;
  --navy: #141B33;        /* "while True: build()" */
  --coral: #F07258;       /* sourire */
  --coral-deep: #D9553B;
  --brown: #8A4A1E;       /* cheveux */
  --peach: #FDC8A4;       /* peau */
  --ink: #2A2112;         /* contours */
  --paper: #F7F5F0;
  --white: #FFFFFF;

  --font-title: "Unbounded", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  /* Police de code : point et virgule bien distincts */
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(20, 27, 51, .45);

  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Titres à deux tons (comme la référence) ---------- */
.title-duo { text-transform: uppercase; font-size: clamp(1.9rem, 4.4vw, 3.3rem); }
.title-duo .light { display: block; font-weight: 300; }
.title-duo .bold { display: block; font-weight: 800; color: var(--blue); }
.on-dark .title-duo .bold { color: var(--yellow); }
/* Titre en noir sur fond bleu (!important : passe devant les couleurs d'Elementor sur WordPress) */
.title-duo.title-dark, .title-duo.title-dark .light, .title-duo.title-dark .bold { color: var(--navy) !important; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: lowercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--yellow-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-title);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--coral { background: var(--coral); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--white { background: var(--white); color: var(--ink); }
.btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Motifs hexagonaux ---------- */
.hex-light {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='194' height='168' fill='%23141B33'%3E%3Cdefs%3E%3Cpolygon id='h' points='0,-54 46.8,-27 46.8,27 0,54 -46.8,27 -46.8,-27'/%3E%3C/defs%3E%3Cuse href='%23h' x='48.5' y='56' fill-opacity='.05'/%3E%3Cuse href='%23h' x='145.5' y='56' fill-opacity='.018'/%3E%3Cuse href='%23h' x='0' y='140' fill-opacity='.032'/%3E%3Cuse href='%23h' x='194' y='140' fill-opacity='.032'/%3E%3Cuse href='%23h' x='97' y='140' fill-opacity='.065'/%3E%3Cuse href='%23h' x='0' y='-28' fill-opacity='.032'/%3E%3Cuse href='%23h' x='194' y='-28' fill-opacity='.032'/%3E%3Cuse href='%23h' x='97' y='-28' fill-opacity='.065'/%3E%3C/svg%3E");
}
.hex-white {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='194' height='168' fill='%23fff'%3E%3Cdefs%3E%3Cpolygon id='h' points='0,-54 46.8,-27 46.8,27 0,54 -46.8,27 -46.8,-27'/%3E%3C/defs%3E%3Cuse href='%23h' x='48.5' y='56' fill-opacity='.09'/%3E%3Cuse href='%23h' x='145.5' y='56' fill-opacity='.03'/%3E%3Cuse href='%23h' x='0' y='140' fill-opacity='.06'/%3E%3Cuse href='%23h' x='194' y='140' fill-opacity='.06'/%3E%3Cuse href='%23h' x='97' y='140' fill-opacity='.12'/%3E%3Cuse href='%23h' x='0' y='-28' fill-opacity='.06'/%3E%3Cuse href='%23h' x='194' y='-28' fill-opacity='.06'/%3E%3Cuse href='%23h' x='97' y='-28' fill-opacity='.12'/%3E%3C/svg%3E");
}

/* Bords en pointes d'hexagones entre les bandes */
.edge-blue, .edge-warm, .edge-ink { position: relative; }
.edge-blue::before, .edge-warm::before, .edge-ink::before {
  content: ""; position: absolute; left: 0; right: 0; top: -27px; height: 28px;
  background-repeat: repeat-x; background-position: center top;
}
.edge-blue::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='97' height='28'%3E%3Cpolygon points='0,28 48.5,0 97,28' fill='%232F5D9A'/%3E%3C/svg%3E");
}
.edge-warm::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='97' height='28'%3E%3Cpolygon points='0,28 48.5,0 97,28' fill='%23F4BE24'/%3E%3C/svg%3E");
}
.edge-ink::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='97' height='28'%3E%3Cpolygon points='0,28 48.5,0 97,28' fill='%231D1A14'/%3E%3C/svg%3E");
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 27, 51, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
  width: 54px; height: 54px; object-fit: cover; object-position: 50% 22%;
  border-radius: 50%; border: 2px solid var(--ink); background: var(--white);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand-text span { font-family: var(--font-title); font-size: .62rem; letter-spacing: .42em; color: var(--blue); margin-top: 4px; }

.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--yellow-soft); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--coral); border-radius: 0; }
.nav .nav-cta a { background: var(--yellow); border: 2px solid var(--ink); margin-left: 8px; }
.nav .nav-cta a:hover { background: var(--coral); color: var(--white); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--yellow); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; content: "";
  transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 110px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero h1 { text-transform: uppercase; font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
.hero h1 .light { display: block; font-weight: 300; }
.hero h1 .bold { display: block; font-weight: 800; color: var(--blue); }
.hero h1 .bold em { font-style: normal; color: var(--coral); }
.hero-lead { font-size: 1.12rem; max-width: 34em; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tagline {
  margin-top: 34px; font-family: var(--font-mono); font-size: .95rem; color: var(--navy);
  letter-spacing: .12em;
}
.hero-tagline .kw { color: var(--blue); font-weight: 700; }
.hero-tagline .fn { color: var(--coral-deep); font-weight: 700; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--yellow); vertical-align: -0.2em; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: center; width: 100%; }
.hero-art .hx { position: absolute; clip-path: var(--hex); }
.hero-art .hx-yellow { inset: 6% 4% 2% 10%; background: var(--yellow); transform: rotate(8deg); }
.hero-art .hx-blue { width: 26%; aspect-ratio: .866; background: var(--py-blue); top: 0; left: 0; }
.hero-art .hx-coral { width: 16%; aspect-ratio: .866; background: var(--coral); bottom: 4%; right: 2%; }
.hero-art .hx-mascot {
  inset: 10% 10% 6% 14%; background: var(--white);
  display: grid; place-items: center; overflow: hidden;
}
/* Mascotte qui sort de l'hexagone */
.hero-art .mascot-pop {
  position: absolute; z-index: 2;
  height: 98%; width: auto; max-width: none; /* image presque carrée (mascotte au casque) */
  left: 50%; bottom: 0;
  transform: translateX(-48%) rotate(-3deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(8px 10px 0 rgba(42, 33, 18, .18));
  animation: mascot-bob 5s ease-in-out infinite;
}
@keyframes mascot-bob {
  50% { transform: translateX(-48%) rotate(-1deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .hero-art .mascot-pop { animation: none; } }
.hero-art .outline-hex {
  position: absolute; width: 18%; right: 0; top: 8%;
  color: var(--blue-deep);
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Section "Nous sommes" ---------- */
.about { padding: 30px 0 150px; text-align: center; }
.about .title-duo .light, .about .title-duo .bold { display: inline; }
.about-intro { max-width: 640px; margin: 18px auto 50px; }
.hex-cards { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.hex-card {
  width: 300px; aspect-ratio: .866;
  clip-path: var(--hex);
  background: linear-gradient(160deg, var(--blue) 0%, var(--py-blue) 100%);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 42px 40px; text-align: center;
  transition: transform .25s ease;
}
.hex-card:nth-child(2) { background: linear-gradient(160deg, var(--py-blue) 0%, var(--blue-deep) 100%); margin-top: 80px; }
.hex-card.is-visible:hover { transform: translateY(-6px); }
.hex-card svg { width: 64px; height: 64px; margin-bottom: 16px; color: var(--yellow); }
.hex-card h3 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.hex-card p { font-size: .92rem; line-height: 1.5; margin: 0; opacity: .92; }
.about .btn { margin-top: 80px; }

/* ---------- Bande bleue ---------- */
.band-blue { background-color: var(--py-blue); color: var(--white); padding: 90px 0 120px; }
.band-blue .section-head { text-align: center; margin-bottom: 70px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 90px; }
.feature:last-child { margin-bottom: 0; }
.feature > *, .hero .wrap > * { min-width: 0; }
.feature--reverse .feature-media { order: 2; }
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-transform: uppercase; margin-bottom: 18px; }
.feature h3 .bold { color: var(--yellow); display: block; }
.feature h3 .light { font-weight: 300; display: block; }
.feature ul { list-style: none; padding: 0; margin: 0 0 28px; }
.feature li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 16px;
  background: var(--yellow); clip-path: var(--hex);
}

.photo-hex { position: relative; max-width: 460px; margin-inline: auto; }
.photo-hex .back {
  position: absolute; inset: -6% 8% 6% -6%; background: var(--yellow); clip-path: var(--hex);
}
.photo-hex .front { position: relative; clip-path: var(--hex); aspect-ratio: .866; overflow: hidden; }
.photo-hex .front img { width: 100%; height: 100%; object-fit: cover; }
.photo-hex .outline { position: absolute; width: 22%; left: -4%; bottom: 2%; color: var(--yellow); }

/* Carte de code style terminal */
.code-card {
  background: #10162B; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--yellow);
  overflow: hidden; max-width: 520px; margin-inline: auto; width: 100%;
}
.code-card .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #1C2442; }
.code-card .bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.code-card .bar i:nth-child(1) { background: var(--coral); }
.code-card .bar i:nth-child(2) { background: var(--yellow); }
.code-card .bar i:nth-child(3) { background: #7FBF5A; }
.code-card .bar span { margin-left: auto; font-family: var(--font-mono); font-size: .78rem; color: #9AA6C9; }
.code-card pre {
  margin: 0; padding: 20px 22px; overflow-x: auto; max-width: none; background: #10162B; border: 0;
  font-family: var(--font-mono); font-size: .84rem; line-height: 1.7; color: #E8ECF8;
}
/* Neutralise le style des blocs de code du thème WordPress (fond gris clair) */
.code-card pre code { background: none; padding: 0; border: 0; color: inherit; font: inherit; }
.tok-kw { color: #FFB86B; }
.tok-fn { color: var(--yellow); }
.tok-str { color: #9BE38B; }
.tok-num { color: #F59AC0; }
.tok-com { color: #7D8AB3; font-style: italic; }

/* ---------- Bande chaude (jaune -> corail) ---------- */
.band-warm {
  background-color: var(--yellow);
  background-image: linear-gradient(180deg, var(--yellow) 0%, #F59A3E 45%, var(--coral) 100%);
  padding: 80px 0 120px;
  color: var(--ink);
}
.band-warm .hex-overlay { position: absolute; inset: 0; pointer-events: none; }
.band-warm > .wrap { position: relative; }
.band-warm .section-head { text-align: center; margin-bottom: 50px; }
.band-warm .title-duo .bold { color: var(--blue-deep); }
.band-warm .eyebrow { color: var(--blue-deep); }

/* Trio d'outils (comme les offres d'emploi de la référence) */
.tools { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 120px; flex-wrap: wrap; }
.tool {
  width: 230px; aspect-ratio: .866; clip-path: var(--hex);
  background: var(--white); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 34px;
}
.tool svg { width: 52px; height: 52px; color: var(--py-blue); margin-bottom: 12px; }
.tool h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.tool p { font-size: .85rem; line-height: 1.45; margin: 0; }
.tool--main { width: 290px; background: var(--py-blue); color: var(--white); }
.tool--main svg { color: var(--yellow); width: 64px; height: 64px; }
.tool--main .btn { margin-top: 16px; padding: 10px 16px; font-size: .7rem; box-shadow: 3px 3px 0 var(--ink); }

/* Grille des remakes */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.game {
  position: relative; aspect-ratio: 1 / 1; border: 3px solid var(--ink); border-radius: 6px;
  overflow: hidden; background: var(--navy); color: var(--white);
  box-shadow: 6px 6px 0 rgba(42, 33, 18, .85);
}
.game img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; filter: saturate(1.1); }
.game:hover img { transform: scale(1.06); }
.game .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(16, 22, 43, .92));
}
.game h3 {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--yellow); text-shadow: 2px 2px 0 var(--ink);
}
.game .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  font-family: var(--font-mono); font-size: .7rem; padding: 2px 8px; border-radius: 4px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.game--featured { background: var(--py-blue); display: flex; flex-direction: column; }
.game--featured .feat-top {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18px;
}
.feat-title {
  font-family: var(--font-title); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--yellow); text-transform: uppercase; line-height: 1;
  text-shadow: 3px 3px 0 var(--ink);
}
.game--featured p { font-size: .9rem; margin: 12px 0 0; opacity: .92; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; }
.platforms span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 6px; font-family: var(--font-title); font-weight: 600; font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.platforms .gb { background: #9BBC0F; color: #0F380F; }
.platforms .md { background: #111; color: var(--white); }
.platforms .nin { background: #E4002B; color: var(--white); }
.platforms .py { background: var(--yellow); color: var(--ink); }

.games-cta { text-align: center; margin-top: 50px; }

/* Bloc contact */
.contact-cta {
  background: var(--white); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 10px 10px 0 var(--ink); padding: 50px; display: grid; grid-template-columns: auto 1fr auto;
  gap: 36px; align-items: center;
}
.contact-hex {
  width: 120px; aspect-ratio: .866; clip-path: var(--hex); overflow: hidden;
  background: var(--white); outline: 0;
}
.contact-hex img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.6); transform-origin: 50% 12%;
}
.contact-cta h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); text-transform: uppercase; margin-bottom: 8px; }
.contact-cta h2 span { color: var(--blue); }
.contact-cta p { margin: 0; }
.mail { font-family: var(--font-mono); font-weight: 700; color: var(--blue); white-space: nowrap; }
@media (max-width: 420px) { .mail { white-space: normal; overflow-wrap: anywhere; } }

/* ---------- Pied de page ---------- */
.site-footer { background: #1D1A14; color: #D9D3C4; padding: 70px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-text strong { color: var(--white); }
.site-footer .brand-text span { color: var(--yellow); }
.site-footer h4 { font-family: var(--font-title); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-about { max-width: 30em; margin-top: 18px; font-size: .95rem; }
.footer-bottom {
  margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #9C9483;
}
.footer-bottom code { font-family: var(--font-mono); color: var(--yellow); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { max-width: 400px; }
  .feature--reverse .feature-media { order: 0; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .contact-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hex-card:nth-child(2) { margin-top: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; }
  .nav a { padding: 12px 14px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--coral); }
  .nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .games { grid-template-columns: 1fr; }
  .game { aspect-ratio: 4 / 3; }
  .game--featured { aspect-ratio: auto; }
  .hex-card { width: 290px; }
  .tool, .tool--main { width: 260px; }
  .tools { gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text span { letter-spacing: .3em; }
  .about .btn { margin-top: 40px; }
}

/* =========================================================
   Pages Retrogaming et Contact
   ========================================================= */
.section-head { text-align: center; margin-bottom: 50px; }
.section-intro { max-width: 620px; margin: 16px auto 0; }

/* Étapes de la démarche */
.retro-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.retro-steps li {
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .35); border-radius: 18px;
  padding: 26px 22px; position: relative;
}
.rs-num {
  display: inline-grid; place-items: center; width: 46px; height: 52px; clip-path: var(--hex);
  background: var(--yellow); color: var(--ink); font-family: var(--font-title); font-weight: 800; margin-bottom: 14px;
}
.retro-steps h3 { font-size: 1.02rem; text-transform: uppercase; margin-bottom: 10px; color: var(--yellow); }
.retro-steps p { font-size: .94rem; margin: 0; }

/* Consoles */
.consoles { padding: 90px 0 130px; }
.console-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.console-card {
  background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 26px 24px;
  box-shadow: 6px 6px 0 var(--ink); transition: transform .2s ease;
}
.console-card.is-visible:hover { transform: translateY(-4px); }
.cc-tag { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.console-card h3 { font-size: 1.4rem; text-transform: uppercase; margin: 6px 0 14px; }
.cc-palette { display: flex; gap: 6px; margin-bottom: 16px; }
.cc-palette span { flex: 1; height: 26px; border: 2px solid var(--ink); border-radius: 6px; }
.console-card dl { margin: 0 0 16px; display: grid; gap: 6px; }
.console-card dl div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(20, 27, 51, .18); padding-bottom: 6px; }
.console-card dt { font-weight: 700; }
.console-card dd { margin: 0; text-align: right; }
.cc-code { display: block; font-family: var(--font-mono); font-size: .82rem; background: #10162B; color: var(--yellow); border-radius: 8px; padding: 8px 12px; }
.console-card--gb { border-top: 10px solid #9BBC0F; }
.console-card--nes { border-top: 10px solid #E4002B; }
.console-card--md { border-top: 10px solid #111; }

/* Passerelle vers le cours */
.retro-learn {
  margin-top: 90px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: var(--py-blue); color: var(--white); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 10px 10px 0 var(--ink); padding: 44px;
}
.retro-learn > * { min-width: 0; }
.retro-learn .eyebrow { color: var(--yellow-soft); }
.retro-learn h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); text-transform: uppercase; margin-bottom: 14px; }
.retro-learn h2 span { color: var(--yellow); }
.retro-learn .hero-actions { margin-top: 20px; }
.retro-learn .code-card { box-shadow: 8px 8px 0 var(--yellow); }
.band-warm .contact-cta { margin-top: 70px; }

/* Page Contact */
.contact-page { padding: 64px 0 110px; }
.contact-page .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-page .wrap > * { min-width: 0; }
.contact-intro { position: relative; }
.contact-intro .title-duo { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.contact-intro .hero-lead { margin: 20px 0 26px; }
.mail-card { position: relative; z-index: 1; max-width: 460px; padding-top: 22px; border-top: 2px dashed rgba(20, 27, 51, .18); }
.mc-label { display: block; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 6px; }
.mc-mail { font-family: var(--font-mono); font-weight: 700; font-size: clamp(.95rem, 2.4vw, 1.15rem); color: var(--navy); overflow-wrap: anywhere; }
.mc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.mc-actions .btn { font-size: .72rem; padding: 12px 18px; }
.contact-mascot { width: 220px; height: auto; margin: 30px 0 0 auto; filter: drop-shadow(6px 8px 0 rgba(42, 33, 18, .15)); }
.mail-form { display: grid; gap: 8px; padding-top: 6px; }
.mail-form h2 { font-size: 1.3rem; text-transform: uppercase; }
.mf-help { font-size: .9rem; color: rgba(20, 27, 51, .75); margin: 0 0 10px; }
.mail-form label { font-weight: 700; font-size: .92rem; margin-top: 8px; }
.mail-form input, .mail-form select, .mail-form textarea {
  font: inherit; font-size: 1rem; color: var(--navy); width: 100%;
  background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px;
}
.mail-form textarea { resize: vertical; min-height: 130px; }
.mail-form input:focus, .mail-form select:focus, .mail-form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; background: var(--white); }
.mf-error { color: var(--coral-deep); font-weight: 700; font-size: .9rem; min-height: 1.3em; margin: 4px 0; }
.mail-form .btn { justify-self: start; }
.reason-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.reason { display: block; text-decoration: none; color: var(--white); text-align: center; transition: transform .2s; }
.reason:hover { transform: translateY(-4px); }
.reason:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.reason svg { width: 48px; height: 48px; color: var(--yellow); margin-bottom: 12px; }
.reason h3 { font-size: 1.02rem; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.reason p { margin: 0; font-size: .94rem; }

@media (max-width: 960px) {
  .retro-steps { grid-template-columns: repeat(2, 1fr); }
  .console-cards, .reason-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .retro-learn { grid-template-columns: 1fr; padding: 30px 22px; }
  .contact-page .wrap { grid-template-columns: 1fr; }
  .mail-form { padding-top: 30px; border-top: 2px dashed rgba(20, 27, 51, .18); }
  .contact-mascot { display: none; }
}
@media (max-width: 560px) {
  .retro-steps { grid-template-columns: 1fr; }
}

/* Adresse sur la page Contact */
.address-card { position: relative; z-index: 1; margin-top: 26px; max-width: 460px; padding-top: 22px; border-top: 2px dashed rgba(20, 27, 51, .18); }
.address-card address { font-style: normal; line-height: 1.55; }
.rdv-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 6px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-title); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
}
.rdv-help { margin: 0; font-size: .88rem; color: rgba(20, 27, 51, .75); }

/* Page Mentions légales */
.legal-hero { padding: 56px 0 50px; border-bottom: 2px solid rgba(20, 27, 51, .08); }
.legal-hero .title-duo { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal-update { margin: 14px 0 0; font-size: .9rem; color: rgba(20, 27, 51, .7); }
.legal { padding: 56px 0 110px; }
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-toc ol { list-style: none; margin: 0; padding: 14px; counter-reset: lg; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); }
.legal-toc li { counter-increment: lg; }
.legal-toc a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 500; }
.legal-toc a::before { content: counter(lg, decimal-leading-zero) "  "; font-family: var(--font-mono); font-size: .75rem; color: var(--blue); }
.legal-toc a:hover { background: var(--yellow-soft); }
.legal-body { display: grid; gap: 20px; }
.legal-card { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 26px 28px; scroll-margin-top: 100px; }
.legal-card h2 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.legal-card h2 span {
  display: inline-grid; place-items: center; width: 38px; height: 44px; clip-path: var(--hex); flex: none;
  background: var(--py-blue); color: var(--white); font-size: .78rem;
}
.legal-card p { margin: 0 0 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a { color: var(--blue); font-weight: 600; }
.legal-list { margin: 0; display: grid; gap: 0; }
.legal-list div { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 10px 0; border-top: 1px dashed rgba(20, 27, 51, .18); }
.legal-list dt { font-weight: 700; }
.legal-list dd { margin: 0; }
.legal-list dd.todo { color: var(--coral-deep); font-weight: 700; background: #FFF4EF; border-radius: 6px; padding: 2px 8px; justify-self: start; }
.legal-bullets { margin: 0 0 12px; padding-left: 20px; }
.legal-bullets li { margin-bottom: 8px; }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-list div { grid-template-columns: 1fr; gap: 2px; }
  .legal-card { padding: 22px 18px; }
}

/* Mascotte de la page Contact (format carré) */
.contact-mascot { width: 280px; }

/* Retrogaming : passerelle en premier dans la bande */
.band-warm .wrap > .retro-learn:first-child { margin-top: 0; }

/* =========================================================
   Livres : encart de l'accueil + page Livres
   ========================================================= */
.books { padding: 90px 0 130px; }
.book-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin-inline: auto; }
.book-card {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center;
  background: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--yellow);
  padding: 24px;
}
.book-card--pygame { box-shadow: 8px 8px 0 #9BBC0F; }
.book-cover { display: block; transform: rotate(-3deg); transition: transform .25s ease; }
.book-card:hover .book-cover { transform: rotate(0) scale(1.03); }
.book-cover img, .hero-books img, .cover-frame img {
  width: 100%; height: auto; border-radius: 4px 10px 10px 4px; background: var(--white);
  box-shadow: inset 6px 0 8px -4px rgba(0, 0, 0, .25), 0 14px 26px -10px rgba(20, 27, 51, .55);
  border: 1px solid rgba(20, 27, 51, .15);
}
.book-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--yellow); color: var(--ink); border-radius: 6px; padding: 3px 9px; margin-bottom: 10px;
}
.book-tag--green { background: #9BBC0F; }
.book-info h3 { font-family: var(--font-title); font-size: 1.08rem; line-height: 1.25; margin-bottom: 10px; }
.book-info p { margin: 0; font-size: .94rem; }
.books-cta { text-align: center; margin-top: 46px; }

/* Page Livres */
.books-hero { padding: 64px 0 90px; }
.books-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.books-hero .wrap > * { min-width: 0; }
.books-hero .title-duo { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.books-hero .hero-lead { margin: 20px 0 26px; }
.hero-books { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero-books a { width: 46%; display: block; transition: transform .25s ease; }
.hero-books a:first-child { transform: rotate(-6deg) translateX(14px); z-index: 1; }
.hero-books a:last-child { transform: rotate(5deg) translateY(-10px); }
.hero-books a:hover { transform: rotate(0) translateY(-6px); z-index: 2; }
.book-detail { padding: 100px 0; scroll-margin-top: 60px; }
.book-detail--alt { background-color: var(--py-blue); color: var(--white); }
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.book-grid > * { min-width: 0; }
.book-grid--reverse .book-visual { order: 2; }
.book-visual { position: sticky; top: 100px; }
.cover-frame { max-width: 380px; margin-inline: auto; }
.cover-toggle { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.cover-toggle button {
  cursor: pointer; font-family: var(--font-title); font-weight: 600; font-size: .72rem;
  background: var(--white); color: var(--navy); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px;
}
.cover-toggle button[aria-pressed="true"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.book-text h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); text-transform: uppercase; margin-bottom: 8px; }
.book-slogan { font-family: var(--font-title); font-weight: 600; color: var(--coral-deep); font-size: 1.05rem; margin-bottom: 18px; }
.book-detail--alt .book-slogan { color: var(--yellow); }
.book-text h3 { font-family: var(--font-title); font-size: 1rem; text-transform: uppercase; margin: 24px 0 12px; }
.book-list { list-style: none; padding: 0; margin: 0 0 18px; }
.book-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.book-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 16px; background: var(--yellow); clip-path: var(--hex); }
.game-chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.game-chips li {
  background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .45); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: .92rem;
}
.order-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px;
  background: var(--white); color: var(--navy); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); padding: 20px 22px;
}
.order-box strong { display: block; font-family: var(--font-title); font-size: 1rem; margin-bottom: 4px; }
.order-box span { font-size: .92rem; }

@media (max-width: 960px) {
  .book-cards { grid-template-columns: 1fr; max-width: 560px; }
  .books-hero .wrap, .book-grid { grid-template-columns: 1fr; }
  .book-grid--reverse .book-visual { order: 0; }
  .book-visual { position: static; }
  .hero-books { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .book-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .book-card .book-cover { width: 160px; }
  .cover-frame { max-width: 280px; }
  .book-detail { padding: 70px 0; }
}

/* Livres sur l'accueil (même haut de page que la page Livres) */

/* Page Livres : extraits des deux livres (vignettes compactes) + visionneuse */
.book-preview { padding: 90px 0 100px; scroll-margin-top: 60px; }
.preview-groups { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1000px; margin-inline: auto; gap: 56px; align-items: start; }
.preview-groups .preview-pages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.preview-page:nth-child(4) .preview-open { transform: rotate(2deg) translateY(6px); }
.preview-group-title { font-size: .95rem; text-transform: uppercase; text-align: center; margin-bottom: 26px; }
/* Groupe de 3 pages (livre Pygame) : même taille de page que le groupe de 4, centré */
.preview-groups .preview-pages.preview-pages--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 75%; margin-inline: auto; }
@media (max-width: 860px) { .preview-groups .preview-pages.preview-pages--3 { max-width: none; gap: 20px; } }
/* Ressources Pygame : exemple de dossier */
.res-block .res-folder { max-width: 440px; margin: 24px 0 8px; box-shadow: 6px 6px 0 var(--ink); }
.res-block > p { margin: 0 0 18px; }
.preview-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.preview-page { margin: 0; }
.preview-page:nth-child(1) .preview-open { transform: rotate(-2.5deg); }
.preview-page:nth-child(2) .preview-open { transform: rotate(1.5deg) translateY(10px); }
.preview-page:nth-child(3) .preview-open { transform: rotate(-1deg); }
.preview-open {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in;
  background: var(--white); border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 5px 5px 0 #9BBC0F, 0 14px 24px -14px rgba(20, 27, 51, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.preview-open img { width: 100%; height: auto; display: block; border-radius: 4px; }
.preview-open:hover, .preview-open:focus-visible { transform: rotate(0) translateY(-6px) !important; box-shadow: 8px 8px 0 #9BBC0F, 0 20px 30px -14px rgba(20, 27, 51, .5); }
.preview-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.preview-zoom {
  position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-size: .8rem; box-shadow: 2px 2px 0 var(--ink);
}
.preview-page figcaption { margin-top: 18px; font-size: .82rem; line-height: 1.35; text-align: center; }
.preview-tag { display: block; font-family: var(--font-title); font-weight: 600; font-size: .78rem; margin-bottom: 3px; }
.book-preview .books-cta { margin-top: 50px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: none; align-items: center; justify-content: center; gap: 10px;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(16, 22, 43, .88); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.lightbox img { max-width: min(760px, 82vw); max-height: 84vh; width: auto; height: auto; border-radius: 6px; background: var(--white); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.lb-caption { color: var(--white); font-family: var(--font-title); font-size: .85rem; margin-top: 12px; text-align: center; }
.lb-close, .lb-nav {
  cursor: pointer; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.4rem; font-weight: 700; display: grid; place-items: center; flex: none;
}
.lb-close { position: fixed; top: 18px; right: 18px; font-size: 1.1rem; }
.lb-nav:hover, .lb-close:hover { background: var(--coral); color: var(--white); }

@media (max-width: 960px) {
  .preview-groups { gap: 48px; }
  .preview-groups .preview-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .lightbox { gap: 4px; }
  .lightbox img { max-width: 78vw; }
  .lb-nav { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* Menu du haut : 5 liens → passage au menu burger dès 900 px, et liens sur une seule ligne */
.nav a { white-space: nowrap; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; }
  .nav a { padding: 12px 14px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--coral); }
  .nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* Code : pas de ligatures (>= doit rester « > = » et non « ≥ ») */
html { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

/* ---------- Ressources (page Bibliothèque) ---------- */
.res-howto { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.res-howto > * { min-width: 0; }
.res-steps { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; gap: 22px; }
.res-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; counter-increment: st; }
.res-steps li::before {
  content: counter(st, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 50px; clip-path: var(--hex);
  background: var(--py-blue); color: var(--white); font-family: var(--font-title); font-weight: 800;
}
.res-steps strong { display: block; font-family: var(--font-title); font-size: 1rem; margin-bottom: 4px; }
.res-steps a { color: var(--blue-deep); font-weight: 700; }
.res-steps code { font-family: var(--font-mono); font-size: .88em; background: rgba(255, 255, 255, .6); border-radius: 5px; padding: 1px 6px; }
.res-howto .code-card { max-width: 440px; }
.section-head .book-tag { margin-bottom: 14px; }
.res-download { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.res-todo { color: var(--coral-deep); font-weight: 700; font-size: .85rem; background: #FFF4EF; border-radius: 6px; padding: 2px 8px; }
.res-list { list-style: none; padding: 0; margin: 0 auto; max-width: 680px; }
.res-list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 4px; border-top: 1px solid rgba(255, 255, 255, .3); }
.res-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.res-name { flex: 1; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.res-help-line { text-align: center; margin: 44px auto 0; max-width: 620px; }
.res-help-line a { color: var(--blue-deep); font-weight: 700; }
@media (max-width: 860px) { .res-howto { grid-template-columns: 1fr; } .res-howto .code-card { max-width: 520px; } }
/* Ressources : commande à taper dans une étape */
.res-steps code.res-cmd { display: block; width: fit-content; max-width: 100%; overflow-x: auto; margin-top: 10px; padding: 10px 16px; background: #10162B; color: #E8ECF8; border: 2px solid var(--ink); border-radius: 10px; font-size: .92rem; user-select: all; }
.res-cmd-note { display: block; margin-top: 8px; font-size: .85rem; }
.res-cmd-note code { white-space: nowrap; }
.res-steps code.res-cmd { white-space: nowrap; }
@media (max-width: 560px) { .res-steps code.res-cmd { font-size: .8rem; padding: 9px 12px; } }

/* Ressources sur la page Bibliothèque : titres et liste sur fond clair */
.res-howto-title { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 22px; }
.res-downloads { padding: 90px 0 100px; }
.res-block { max-width: 860px; margin-inline: auto; scroll-margin-top: 100px; }
.res-block + .res-block { margin-top: 64px; padding-top: 56px; border-top: 2px dashed rgba(20, 27, 51, .15); }
.res-block h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 12px; }
.res-list--light { max-width: none; margin-top: 18px; }
.res-list--light li { border-color: rgba(20, 27, 51, .15); }
.res-downloads .res-help-line a { color: var(--blue); }
#ressources { scroll-margin-top: 60px; }
@media (max-width: 560px) { .preview-pages { gap: 12px; } .preview-desc { display: none; } .preview-zoom { width: 24px; height: 24px; font-size: .65rem; } }

/* ---------- Page Accompagnement de projet ---------- */
.proj-hero .wrap { align-items: center; }
.proj-slogan { font-family: var(--font-title); font-weight: 600; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--coral-deep); margin: 18px 0 0; }
.proj-hero .hero-lead { margin-top: 14px; }
.proj-hero-img { width: min(440px, 100%); height: auto; margin-inline: auto; filter: drop-shadow(0 16px 22px rgba(20, 27, 51, .22)); }
.proj-section { padding: 90px 0 100px; }
.proj-grid { display: grid; gap: 44px; }
.proj-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 940px; margin-inline: auto; }
.proj-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proj-item h3 { font-size: 1.1rem; margin: 16px 0 10px; }
.proj-item p { margin: 0; }
.proj-icon { display: grid; place-items: center; width: 58px; height: 66px; clip-path: var(--hex); background: var(--yellow); font-size: 1.7rem; }
.proj-why { max-width: 720px; margin-inline: auto; }
@media (max-width: 860px) {
  .proj-grid--2, .proj-grid--3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 36px; }
  .proj-hero-img { width: min(300px, 80%); }
}/* Accompagnement : mots longs (ACCOMPAGNEMENT, MULTIDISCIPLINAIRE) — titres réduits sur petit écran */
@media (max-width: 560px) {
  .proj-hero .title-duo, .proj-section .title-duo, #expertise .title-duo { font-size: 6.2vw; }
}
/* Accompagnement : photos des blocs, icône posée sur le coin de la photo */
.proj-photo { display: block; width: 100%; height: auto; aspect-ratio: 800 / 520; object-fit: cover; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--yellow); }
.on-dark .proj-photo { box-shadow: 6px 6px 0 var(--yellow); border-color: var(--ink); }
.proj-photo + .proj-icon { position: relative; margin: -34px 0 0 18px; }
/* Accompagnement : portrait de Letiszia à côté des deux publics */
.proj-who { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; max-width: 1000px; margin-inline: auto; }
.proj-portrait { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--yellow); }
.proj-who-items { display: grid; gap: 40px; }
@media (max-width: 860px) {
  .proj-who { grid-template-columns: 1fr; max-width: 560px; gap: 40px; }
  .proj-portrait { width: min(380px, 90%); margin-inline: auto; }
}
/* ---------- Page Bot to Be Wild ---------- */
.bot-hero-img { display: block; width: min(330px, 80%); height: auto; margin-inline: auto; filter: drop-shadow(0 16px 22px rgba(20, 27, 51, .22)); }
.bot-outro { text-align: center; max-width: 680px; margin: 56px auto 0; font-size: 1.05rem; }
.bot-outro strong { color: var(--yellow); }
@media (max-width: 860px) { .bot-hero-img { width: min(230px, 65%); } }
@media (max-width: 560px) { .proj-hero.bot-hero .title-duo { font-size: 10vw; } }
/* Bibliothèque : prix des livres dans l'encadré de commande */
.order-box .book-price { display: inline-block; font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--coral-deep); margin-bottom: 8px; }
/* Accueil : section Raspberry Pi */
.rpi-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.rpi-grid .title-duo { margin-bottom: 22px; }
.rpi-grid .book-list { margin: 18px 0 28px; }
@media (max-width: 860px) {
  .rpi-grid { grid-template-columns: 1fr; gap: 40px; max-width: 600px; margin-inline: auto; }
}
/* Accueil : fenêtre de code qui chevauche la photo du Raspberry Pi */
.rpi-visual { position: relative; padding-bottom: 370px; }
.rpi-visual .rpi-code { position: absolute; left: -48px; bottom: 0; width: min(390px, 92%); max-width: none; margin: 0; z-index: 2; }
.rpi-visual .rpi-code pre { font-size: .74rem; line-height: 1.6; padding: 14px 16px; }
@media (max-width: 1100px) { .rpi-visual .rpi-code { left: -16px; } }
@media (max-width: 860px) {
  .rpi-visual { padding-bottom: 0; }
  .rpi-visual .rpi-code { position: relative; left: auto; bottom: auto; width: 92%; margin: -36px auto 0; }
}
/* Accueil : simulateur Raspberry Pi + LED */
.rpi-sim { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 10px 10px 0 var(--coral); overflow: hidden; }
.rpi-sim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: #1C2442; color: var(--white); }
.rpi-sim-title { font-family: var(--font-title); font-size: .85rem; font-weight: 600; }
.rpi-sim-status { font-family: var(--font-mono); font-size: .75rem; color: var(--yellow-soft); margin-right: auto; }
.rpi-sim-btn { cursor: pointer; font-family: var(--font-title); font-size: .72rem; font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; background: var(--yellow); color: var(--ink); }
.rpi-sim-stop { background: var(--white); }
.rpi-sim-btn:disabled { opacity: .45; cursor: not-allowed; }
.rpi-sim-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rpi-sim-scene { padding: 16px 12px 10px; background: linear-gradient(#ffffff, #f1ede4); perspective: 1200px; }
.rpi-sim-scene svg { display: block; width: 100%; height: auto; transform: rotateX(16deg); transform-origin: 50% 100%; }
.led .led-body { fill: var(--off); transition: fill .08s; }
.led .led-halo { fill: var(--on); opacity: 0; transition: opacity .08s; }
.led.on .led-body { fill: var(--on); filter: url(#rpi-glow); }
.led.on .led-halo { opacity: .35; }
.rpi-code .ln { display: block; border-radius: 4px; padding: 0 4px; margin: 0 -4px; transition: background .1s; }
.rpi-code .ln.active { background: rgba(244, 190, 36, .3); }