/* =========================================================
   Shigeryu Studio — feuille de style
   0. Polices  1. Jetons  2. Base  3. Composants  4. Sections  5. Mobile
   ========================================================= */

/* ---------- 0. POLICES (hébergées sur le site, plus de Google Fonts) ----------
   Fichiers identiques à ceux de Google Fonts, téléchargés le 15/10/2026.
   Licences dans assets/fonts/ : SIL Open Font License 1.1 (Caveat, Nunito, Pixelify Sans)
   et Apache 2.0 (Permanent Marker). */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("../fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Permanent Marker"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/permanentmarker-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/pixelifysans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/pixelifysans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. JETONS ---------- */
:root {
  --nuit: #0E1030;        /* fond principal */
  --nuit-2: #151843;      /* sections alternées */
  --nuit-3: #1D2152;      /* cartes */
  --abysse: #07081A;      /* contours, pied de page */
  --texte: #F3F1FF;
  --brume: #B9B8E6;       /* texte secondaire */
  --violet: #7C4DFF;
  --violet-clair: #C4B5FD;
  --orange: #FF7A2F;
  --orange-clair: #FFB27A;
  --jaune: #FFD23F;
  --rose: #FF5FA2;
  --bleu: #3D7BFF;
  --vert: #2BD982;
  --cyan: #22D3EE;

  --f-main: "Permanent Marker", "Comic Sans MS", cursive;   /* titres manuscrits */
  --f-note: "Caveat", "Comic Sans MS", cursive;             /* annotations */
  --f-texte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-pixel: "Pixelify Sans", ui-monospace, Consolas, monospace;

  --rayon: 18px;
  --contour: 3px solid var(--abysse);
  --ombre: 5px 5px 0 var(--abysse);
  --largeur: 1180px;
  --entete-h: 72px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 12px); }
body {
  margin: 0; background: var(--nuit); color: var(--texte);
  font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 400; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pixel { font-family: var(--f-pixel); letter-spacing: .04em; }

:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 8px; }
.evitement { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--jaune); color: var(--abysse); font-weight: 800; border-radius: 10px; text-decoration: none; }
.evitement:focus { top: 12px; }

/* Titres manuscrits */
.titre-main { font-family: var(--f-main); letter-spacing: .01em; }
h2.titre-main { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .35em; transform: rotate(-1.2deg); transform-origin: left; }
.surligne { position: relative; color: var(--abysse); white-space: nowrap; z-index: 0; padding: 0 .12em; }
.surligne::before { content: ""; position: absolute; inset: .08em -.04em .02em; background: var(--orange); border-radius: .25em .5em .3em .45em; transform: rotate(-2deg); z-index: -1; box-shadow: 4px 4px 0 var(--violet); }

/* ---------- 3. COMPOSANTS ---------- */
/* Petite étiquette pixel au-dessus des titres */
.etiquette {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--f-pixel); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jaune);
}
.etiquette::before { content: ""; width: 10px; height: 10px; background: var(--orange); box-shadow: 4px 4px 0 var(--violet); }

/* Boutons « autocollant » */
.bouton {
  --fond: var(--texte); --txt: var(--abysse);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 24px; border: var(--contour); border-radius: 999px;
  background: var(--fond); color: var(--txt); font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--violet-clair);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s;
}
.bouton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--violet-clair); }
.bouton:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--violet-clair); }
.bouton .ico { transition: transform .2s; }
.bouton:hover .ico { transform: translateX(3px); }
.bouton--orange { --fond: var(--orange); }
.bouton--contour { --fond: transparent; --txt: var(--texte); border-color: var(--texte); box-shadow: none; }
.bouton--contour:hover { --fond: rgba(255,255,255,.08); box-shadow: 4px 4px 0 var(--orange); }
.bouton--large { width: 100%; }
.bouton[aria-disabled="true"] { --fond: transparent; --txt: var(--brume); border-color: rgba(185,184,230,.45); border-style: dashed; box-shadow: none; cursor: default; transform: none; }

/* États de projet */
.etat {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px;
  font-family: var(--f-pixel); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
  border: 2px solid var(--abysse); border-radius: 8px; background: var(--fond-etat); color: var(--abysse); box-shadow: 2px 2px 0 var(--abysse); white-space: nowrap;
}
.etat::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.etat--idee { --fond-etat: var(--jaune); }
.etat--encours { --fond-etat: var(--bleu); color: #fff; }
.etat--prototype { --fond-etat: var(--violet); color: #fff; }
.etat--termine { --fond-etat: var(--vert); }

/* Barre d'avancement façon XP */
.xp { font-family: var(--f-pixel); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brume); }
.xp-ligne { display: flex; justify-content: space-between; margin-bottom: 4px; }
.xp-jauge { height: 12px; border: 2px solid var(--abysse); border-radius: 4px; background: var(--abysse); overflow: hidden; }
.xp-jauge i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--c, var(--orange)) 0 10px, color-mix(in srgb, var(--c, var(--orange)) 75%, #fff) 10px 12px); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }

/* Couleurs par domaine */
[data-couleur="violet"] { --c: var(--violet); --c-clair: var(--violet-clair); }
[data-couleur="orange"] { --c: var(--orange); --c-clair: var(--orange-clair); }
[data-couleur="rose"]   { --c: var(--rose);   --c-clair: #FFB3D3; }
[data-couleur="bleu"]   { --c: var(--bleu);   --c-clair: #A9C4FF; }
[data-couleur="vert"]   { --c: var(--vert);   --c-clair: #A3F0C8; }
[data-couleur="cyan"]   { --c: var(--cyan);   --c-clair: #A5F0FA; }
[data-couleur="jaune"]  { --c: var(--jaune);  --c-clair: #FFE89A; }

/* Apparition au défilement */
.js [data-apparait] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js [data-apparait].vu { opacity: 1; transform: none; }

/* ---------- 4. SECTIONS ---------- */

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(14,16,48,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid transparent; transition: border-color .2s, background .2s; }
.entete.defile { border-bottom-color: rgba(196,181,253,.18); background: rgba(14,16,48,.94); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--entete-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.logo-icone { width: auto; height: 42px; transition: transform .3s; }
.logo:hover .logo-icone { transform: rotate(-10deg) scale(1.08); }
.logo-texte { font-family: var(--f-main); font-size: 1.45rem; line-height: 1; }
.logo-texte em { font-style: normal; color: var(--orange); }
.menu ul { display: flex; align-items: center; gap: 6px; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--brume); transition: color .2s, background .2s; }
.menu a:hover, .menu a[aria-current="true"] { color: var(--texte); background: rgba(124,77,255,.22); }
.menu .menu-contact { color: var(--abysse); background: var(--orange); border: 2px solid var(--abysse); box-shadow: 3px 3px 0 var(--violet); margin-left: 6px; }
.menu .menu-contact:hover { color: var(--abysse); background: var(--orange-clair); }
.menu-bouton { display: none; width: 48px; height: 48px; border: var(--contour); border-radius: 14px; background: var(--jaune); cursor: pointer; position: relative; box-shadow: 3px 3px 0 var(--violet); }
.menu-barres, .menu-barres::before, .menu-barres::after { position: absolute; left: 12px; right: 12px; height: 3px; background: var(--abysse); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-barres { top: 50%; margin-top: -1.5px; }
.menu-barres::before { content: ""; left: 0; right: 0; top: -8px; }
.menu-barres::after { content: ""; left: 0; right: 0; top: 8px; }
.menu-bouton[aria-expanded="true"] .menu-barres { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-barres::before { transform: translateY(8px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-barres::after { transform: translateY(-8px) rotate(-45deg); }

/* Héros */
.heros {
  position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 0;
  background:
    radial-gradient(2px 2px at 10% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 85% 12%, var(--jaune) 50%, transparent 51%),
    radial-gradient(2px 2px at 48% 82%, var(--violet-clair) 50%, transparent 51%),
    radial-gradient(2px 2px at 92% 70%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 40%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(124,77,255,.35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255,122,47,.16), transparent 70%),
    var(--nuit);
}
.heros-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hud { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 2px solid rgba(196,181,253,.35); border-radius: 999px; font-family: var(--f-pixel); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-clair); }
.hud-point { width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(43,217,130,.25); animation: pulse 1.8s ease-in-out infinite; }
.heros h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); margin: 22px 0 22px; }
.heros h1 .ligne { display: block; }
.heros h1 .ligne:first-child { transform: rotate(-2deg); transform-origin: left; color: var(--violet-clair); }
.heros-intro { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--brume); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.note-main { display: flex; align-items: flex-end; gap: 4px; margin: 18px 0 0 150px; font-family: var(--f-note); font-size: 1.6rem; font-weight: 700; color: var(--jaune); transform: rotate(-4deg); }
.note-fleche { width: 54px; height: 36px; fill: none; stroke: var(--jaune); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: scaleY(-1) translateY(6px); }

.heros-scene { position: relative; }
.scene { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 20px 40px rgba(7,8,26,.55)); }
.scene-main { font-family: var(--f-main); font-size: 17px; fill: var(--abysse); }
.scene-sticker { font-family: var(--f-main); font-size: 17px; fill: #fff; }
.scene-sticker--sombre { fill: var(--abysse); }
.scene-orbite { transform-origin: 270px 220px; animation: tourne 40s linear infinite; }
.scene-cube { transform-origin: 179px 194px; animation: flotte 3.4s ease-in-out infinite; }
/* Impression synchronisée du bateau : une seule horloge de 9,6 s pour les 4 éléments.
   Pour chaque couche : le portique monte à sa hauteur, la buse balaie la largeur du bateau à cette hauteur
   (sens alterné) et la couche apparaît derrière elle ; puis elle rejoint les couches terminées.
   Les @keyframes sont générées (voir plus bas) : ne pas changer une durée sans changer les autres. */
.scene-buse, .scene-portique, .clip-en-cours, .clip-faites { animation-duration: 9.6s; animation-timing-function: linear; animation-iteration-count: infinite; }
.scene-buse { animation-name: buse; }
.scene-portique { animation-name: portique; }
.clip-en-cours { animation-name: couche-en-cours; transform-origin: 355px 0; }
.clip-faites { animation-name: couches-faites; }
/* Effet « magique » de validation : même horloge de 9,6 s, déclenché quand la dernière couche est finie (77,5 %).
   Invisible par défaut (donc absent si l'appareil demande moins d'animations). */
.lueur-fin, .etincelle, .particule { opacity: 0; animation-duration: 9.6s; animation-iteration-count: infinite; animation-timing-function: ease-out; }
.lueur-fin { animation-name: lueur-fin; }
.etincelle { animation-name: etincelle; transform-box: fill-box; transform-origin: center; }
.particule { animation-name: particule; }
/* léger décalage entre les étoiles et les particules (toujours au même endroit du cycle) */
.e2, .p2 { animation-delay: .12s; } .e3, .p3 { animation-delay: .24s; } .e4, .p4 { animation-delay: .36s; }
.e5 { animation-delay: .48s; } .e6 { animation-delay: .6s; }
@keyframes lueur-fin { 0%, 77.5% { opacity: 0; } 81% { opacity: .9; } 89% { opacity: .6; } 96%, 100% { opacity: 0; } }
@keyframes etincelle {
  0%, 77.5% { opacity: 0; transform: scale(0) rotate(0deg); }
  80% { opacity: 1; transform: scale(1.3) rotate(45deg); }
  86% { opacity: 1; transform: scale(.85) rotate(90deg); }
  93%, 100% { opacity: 0; transform: scale(0) rotate(135deg); }
}
@keyframes particule {
  0%, 78% { opacity: 0; transform: translateY(0); }
  80% { opacity: 1; }
  94%, 100% { opacity: 0; transform: translateY(-48px); }
}
.sticker { animation: flotte 4s ease-in-out infinite; }
.sticker.s1 { transform-origin: 66px 58px; animation-delay: -.6s; }
.sticker.s2 { animation-delay: -1.8s; }
.sticker.s3 { animation-delay: -2.6s; }
.sticker.s4 { animation-delay: -1.1s; }
.scintille { transform-box: fill-box; transform-origin: center; animation: scintille 2.4s ease-in-out infinite; }
.scintille.t2 { animation-delay: -.8s; } .scintille.t3 { animation-delay: -1.6s; }

.bandeau { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: clamp(32px, 5vw, 56px); padding: 18px 16px; background: var(--violet); color: #fff; border-block: var(--contour); font-family: var(--f-pixel); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; transform: rotate(-1deg) scale(1.02); }
.bandeau { gap: 10px 18px; }
.bandeau li { display: inline-flex; align-items: center; }
.bandeau li + li::before { content: "✦"; color: var(--jaune); margin-right: 18px; }

@keyframes flotte { 50% { transform: translateY(-8px); } }
@keyframes tourne { to { transform: rotate(360deg); } }
/* ----- Impression du Benchy, synchronisée (générée par script) -----
   15 couches de 4,933 unités, cycle de 9,6 s : 15 × 0,5 s d'impression (0,44 s de balayage + 0,06 s pour
   monter à la couche suivante), puis la tête se relève et le bateau terminé reste affiché.
   Étendues balayées par couche (gauche-droite) : 0:370-437, 1:368-442, 2:366-447, 3:364-451, 4:363-451,
   5:371-451, 6:377-451, 7-8:377-420, 9-10:373-424 (toit), 11-12:393-406 (cheminée), 13-14:390-409 (chapeau). */
@keyframes buse {
  0.000% { transform: translateX(-34.56px); }
  4.583% { transform: translateX(32.43px); }
  5.208% { transform: translateX(37.37px); }
  9.792% { transform: translateX(-36.61px); }
  10.417% { transform: translateX(-38.67px); }
  15.000% { transform: translateX(42.3px); }
  15.625% { transform: translateX(45.5px); }
  20.208% { transform: translateX(-40.72px); }
  20.833% { transform: translateX(-42.47px); }
  25.417% { transform: translateX(45.5px); }
  26.042% { transform: translateX(45.5px); }
  30.625% { transform: translateX(-34.5px); }
  31.250% { transform: translateX(-28.5px); }
  35.833% { transform: translateX(45.5px); }
  36.458% { transform: translateX(14.5px); }
  41.042% { transform: translateX(-28.5px); }
  41.667% { transform: translateX(-28.5px); }
  46.250% { transform: translateX(14.5px); }
  46.875% { transform: translateX(18.5px); }
  51.458% { transform: translateX(-32.5px); }
  52.083% { transform: translateX(-32.5px); }
  56.667% { transform: translateX(18.5px); }
  57.292% { transform: translateX(0.5px); }
  61.875% { transform: translateX(-12.5px); }
  62.500% { transform: translateX(-12.5px); }
  67.083% { transform: translateX(0.5px); }
  67.708% { transform: translateX(3.5px); }
  72.292% { transform: translateX(-15.5px); }
  72.917% { transform: translateX(-15.5px); }
  77.500% { transform: translateX(3.5px); }
  82.708% { transform: translateX(0px); }
  100.000% { transform: translateX(0px); }
}
@keyframes portique {
  0.000% { transform: translateY(88.07px); }
  4.583% { transform: translateY(88.07px); }
  5.208% { transform: translateY(83.13px); }
  9.792% { transform: translateY(83.13px); }
  10.417% { transform: translateY(78.2px); }
  15.000% { transform: translateY(78.2px); }
  15.625% { transform: translateY(73.27px); }
  20.208% { transform: translateY(73.27px); }
  20.833% { transform: translateY(68.33px); }
  25.417% { transform: translateY(68.33px); }
  26.042% { transform: translateY(63.4px); }
  30.625% { transform: translateY(63.4px); }
  31.250% { transform: translateY(58.47px); }
  35.833% { transform: translateY(58.47px); }
  36.458% { transform: translateY(53.53px); }
  41.042% { transform: translateY(53.53px); }
  41.667% { transform: translateY(48.6px); }
  46.250% { transform: translateY(48.6px); }
  46.875% { transform: translateY(43.67px); }
  51.458% { transform: translateY(43.67px); }
  52.083% { transform: translateY(38.73px); }
  56.667% { transform: translateY(38.73px); }
  57.292% { transform: translateY(33.8px); }
  61.875% { transform: translateY(33.8px); }
  62.500% { transform: translateY(28.87px); }
  67.083% { transform: translateY(28.87px); }
  67.708% { transform: translateY(23.93px); }
  72.292% { transform: translateY(23.93px); }
  72.917% { transform: translateY(19px); }
  77.500% { transform: translateY(19px); }
  82.708% { transform: translateY(0px); }
  100.000% { transform: translateY(0px); }
}
@keyframes couche-en-cours {
  0.000% { transform: translate(0px, 0px) scaleX(0.1544); }
  4.583% { transform: translate(0px, 0px) scaleX(0.8243); }
  4.635% { transform: translate(87.37px, -4.93px) scaleX(0.1263); }
  5.208% { transform: translate(87.37px, -4.93px) scaleX(0.1263); }
  9.792% { transform: translate(13.39px, -4.93px) scaleX(0.8661); }
  9.844% { transform: translate(0px, -9.87px) scaleX(0.1133); }
  10.417% { transform: translate(0px, -9.87px) scaleX(0.1133); }
  15.000% { transform: translate(0px, -9.87px) scaleX(0.9230); }
  15.052% { transform: translate(95.5px, -14.8px) scaleX(0.0450); }
  15.625% { transform: translate(95.5px, -14.8px) scaleX(0.0450); }
  20.208% { transform: translate(9.28px, -14.8px) scaleX(0.9072); }
  20.260% { transform: translate(0px, -19.73px) scaleX(0.0753); }
  20.833% { transform: translate(0px, -19.73px) scaleX(0.0753); }
  25.417% { transform: translate(0px, -19.73px) scaleX(0.9550); }
  25.469% { transform: translate(95.5px, -24.67px) scaleX(0.0450); }
  26.042% { transform: translate(95.5px, -24.67px) scaleX(0.0450); }
  30.625% { transform: translate(15.5px, -24.67px) scaleX(0.8450); }
  30.677% { transform: translate(0px, -29.6px) scaleX(0.2150); }
  31.250% { transform: translate(0px, -29.6px) scaleX(0.2150); }
  35.833% { transform: translate(0px, -29.6px) scaleX(0.9550); }
  35.885% { transform: translate(64.5px, -34.53px) scaleX(0.3550); }
  36.458% { transform: translate(64.5px, -34.53px) scaleX(0.3550); }
  41.042% { transform: translate(21.5px, -34.53px) scaleX(0.7850); }
  41.094% { transform: translate(0px, -39.47px) scaleX(0.2150); }
  41.667% { transform: translate(0px, -39.47px) scaleX(0.2150); }
  46.250% { transform: translate(0px, -39.47px) scaleX(0.6450); }
  46.302% { transform: translate(68.5px, -44.4px) scaleX(0.3150); }
  46.875% { transform: translate(68.5px, -44.4px) scaleX(0.3150); }
  51.458% { transform: translate(17.5px, -44.4px) scaleX(0.8250); }
  51.510% { transform: translate(0px, -49.33px) scaleX(0.1750); }
  52.083% { transform: translate(0px, -49.33px) scaleX(0.1750); }
  56.667% { transform: translate(0px, -49.33px) scaleX(0.6850); }
  56.719% { transform: translate(50.5px, -54.27px) scaleX(0.4950); }
  57.292% { transform: translate(50.5px, -54.27px) scaleX(0.4950); }
  61.875% { transform: translate(37.5px, -54.27px) scaleX(0.6250); }
  61.927% { transform: translate(0px, -59.2px) scaleX(0.3750); }
  62.500% { transform: translate(0px, -59.2px) scaleX(0.3750); }
  67.083% { transform: translate(0px, -59.2px) scaleX(0.5050); }
  67.135% { transform: translate(53.5px, -64.13px) scaleX(0.4650); }
  67.708% { transform: translate(53.5px, -64.13px) scaleX(0.4650); }
  72.292% { transform: translate(34.5px, -64.13px) scaleX(0.6550); }
  72.344% { transform: translate(0px, -69.07px) scaleX(0.3450); }
  72.917% { transform: translate(0px, -69.07px) scaleX(0.3450); }
  77.500% { transform: translate(0px, -69.07px) scaleX(0.5350); }
  77.552% { transform: translate(0px, -74px) scaleX(0); }
  100.000% { transform: translate(0px, -74px) scaleX(0); }
}
@keyframes couches-faites {
  0.000% { transform: translateY(78px); }
  4.583% { transform: translateY(78px); }
  4.635% { transform: translateY(71.07px); }
  5.208% { transform: translateY(71.07px); }
  9.792% { transform: translateY(71.07px); }
  9.844% { transform: translateY(66.13px); }
  10.417% { transform: translateY(66.13px); }
  15.000% { transform: translateY(66.13px); }
  15.052% { transform: translateY(61.2px); }
  15.625% { transform: translateY(61.2px); }
  20.208% { transform: translateY(61.2px); }
  20.260% { transform: translateY(56.27px); }
  20.833% { transform: translateY(56.27px); }
  25.417% { transform: translateY(56.27px); }
  25.469% { transform: translateY(51.33px); }
  26.042% { transform: translateY(51.33px); }
  30.625% { transform: translateY(51.33px); }
  30.677% { transform: translateY(46.4px); }
  31.250% { transform: translateY(46.4px); }
  35.833% { transform: translateY(46.4px); }
  35.885% { transform: translateY(41.47px); }
  36.458% { transform: translateY(41.47px); }
  41.042% { transform: translateY(41.47px); }
  41.094% { transform: translateY(36.53px); }
  41.667% { transform: translateY(36.53px); }
  46.250% { transform: translateY(36.53px); }
  46.302% { transform: translateY(31.6px); }
  46.875% { transform: translateY(31.6px); }
  51.458% { transform: translateY(31.6px); }
  51.510% { transform: translateY(26.67px); }
  52.083% { transform: translateY(26.67px); }
  56.667% { transform: translateY(26.67px); }
  56.719% { transform: translateY(21.73px); }
  57.292% { transform: translateY(21.73px); }
  61.875% { transform: translateY(21.73px); }
  61.927% { transform: translateY(16.8px); }
  62.500% { transform: translateY(16.8px); }
  67.083% { transform: translateY(16.8px); }
  67.135% { transform: translateY(11.87px); }
  67.708% { transform: translateY(11.87px); }
  72.292% { transform: translateY(11.87px); }
  72.344% { transform: translateY(6.93px); }
  72.917% { transform: translateY(6.93px); }
  77.500% { transform: translateY(6.93px); }
  77.552% { transform: translateY(-2px); }
  100.000% { transform: translateY(-2px); }
}
@keyframes scintille { 50% { transform: scale(.55) rotate(20deg); opacity: .6; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(43,217,130,0); } }
@keyframes clignote { 50% { opacity: 0; } }

/* Sections génériques */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-tete { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-tete > p:last-child { color: var(--brume); font-size: 1.12rem; margin: 0; }

/* Domaines */
.section--domaines { background: var(--nuit-2); }
.domaines { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.domaine {
  position: relative; padding: 24px 22px 22px; background: var(--nuit-3); border: var(--contour); border-radius: var(--rayon);
  box-shadow: 6px 6px 0 var(--c); transition: transform .2s ease, box-shadow .2s ease;
}
.domaine:hover { transform: translate(-3px, -4px) rotate(-.6deg); box-shadow: 9px 10px 0 var(--c); }
.domaine-icone { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border: var(--contour); border-radius: 16px; background: var(--c); color: var(--abysse); transform: rotate(-4deg); transition: transform .3s; }
.domaine:hover .domaine-icone { transform: rotate(4deg) scale(1.06); }
.domaine-icone .ico { width: 32px; height: 32px; stroke-width: 2.2; }
.domaine h3 { font-family: var(--f-main); font-size: 1.45rem; margin-bottom: 8px; }
.domaine p { margin: 0; color: var(--brume); font-size: .98rem; }
.domaine-numero { position: absolute; top: 14px; right: 16px; font-family: var(--f-pixel); font-size: .85rem; color: var(--c-clair); opacity: .8; }

/* Projets */
.section--projets { background: var(--nuit); }
.avis-demo { margin: 0 0 22px; padding: 12px 16px; border: 2px dashed var(--jaune); border-radius: 12px; color: var(--jaune); background: rgba(255,210,63,.07); font-size: .98rem; }
.filtres { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.filtre-groupe { display: flex; flex-wrap: wrap; gap: 8px; }
.filtre {
  min-height: 44px; padding: 6px 16px; border: 2px solid rgba(196,181,253,.35); border-radius: 999px; background: transparent; color: var(--brume);
  font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.filtre:hover { border-color: var(--violet-clair); color: var(--texte); transform: translateY(-2px); }
.filtre[aria-pressed="true"] { background: var(--violet); border-color: var(--abysse); color: #fff; box-shadow: 3px 3px 0 var(--abysse); }
.filtre-groupe--etats .filtre { font-family: var(--f-pixel); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.filtre-groupe--etats .filtre[aria-pressed="true"] { background: var(--orange); color: var(--abysse); }
.compteur { font-family: var(--f-pixel); color: var(--brume); font-size: .9rem; letter-spacing: .05em; margin-bottom: 22px; }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.projet {
  position: relative; display: flex; flex-direction: column; background: var(--nuit-3); border: var(--contour); border-radius: var(--rayon);
  box-shadow: var(--ombre); transition: transform .2s ease, box-shadow .2s ease; animation: entree .45s ease both;
}
.projet:hover { transform: translate(-3px, -4px); box-shadow: 8px 9px 0 var(--abysse), 0 0 0 2px var(--c) inset; }
@keyframes entree { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.projet-visuel {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center;
  border-bottom: var(--contour); border-radius: calc(var(--rayon) - 3px) calc(var(--rayon) - 3px) 0 0;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, var(--nuit)));
}
.projet-visuel::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
/* Vrais visuels : affichés en entier (sans recadrage), au-dessus de la grille décorative */
.projet-visuel img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 14px; filter: drop-shadow(4px 5px 0 rgba(7,8,26,.35)); }
/* Deuxième visuel (souvent une animation) : apparaît en fondu au survol de la carte */
.projet-visuel .projet-survol { z-index: 2; opacity: 0; transition: opacity .3s ease; }
.projet:hover .projet-survol, .projet:focus-within .projet-survol { opacity: 1; }
.projet-visuel .ico { width: 34%; height: auto; aspect-ratio: 1; color: var(--abysse); stroke-width: 1.8; position: relative; z-index: 1; filter: drop-shadow(3px 3px 0 rgba(255,255,255,.35)); transition: transform .35s; }
.projet:hover .projet-visuel .ico { transform: rotate(-6deg) scale(1.08); }
.projet-demo { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 2px 8px; border-radius: 6px; background: var(--abysse); color: var(--jaune); font-family: var(--f-pixel); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.projet-legende { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 1px 10px; border-radius: 999px; background: rgba(7,8,26,.72); color: var(--texte); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.projet-corps { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 16px 18px 20px; }
.projet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.projet-domaine { font-size: .85rem; font-weight: 800; color: var(--c-clair); }
.projet h3 { font-family: var(--f-main); font-size: 1.3rem; }
.projet p { margin: 0; color: var(--brume); font-size: .95rem; }
.projet .xp { margin-top: auto; }
.projet-lien { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--orange-clair); text-decoration: underline; text-underline-offset: 3px; }
.projet-lien::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.vide { text-align: center; padding: 40px 16px; border: 2px dashed rgba(196,181,253,.35); border-radius: var(--rayon); }
.vide p { color: var(--brume); font-size: 1.1rem; }

/* Shop */
.section--shop {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255,122,47,.25), transparent 65%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(124,77,255,.35), transparent 65%),
    var(--nuit-2);
}
.boutiques { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 26px; }
.boutique {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 24px; position: relative;
  background: var(--texte); color: var(--abysse); border: var(--contour); border-radius: var(--rayon); box-shadow: 7px 7px 0 var(--c);
  transition: transform .2s ease;
}
.boutique:nth-child(odd) { transform: rotate(-.8deg); }
.boutique:nth-child(even) { transform: rotate(.8deg); }
.boutique:hover { transform: rotate(0) translateY(-4px); }
.boutique-tete { display: flex; align-items: center; gap: 14px; }
.boutique-icone { display: grid; place-items: center; width: 56px; height: 56px; border: var(--contour); border-radius: 14px; background: var(--c); flex: none; }
.boutique-icone .ico { width: 30px; height: 30px; stroke-width: 2.2; color: var(--abysse); }
.boutique h3 { font-family: var(--f-main); font-size: 1.8rem; }
.boutique-type { display: inline-block; font-family: var(--f-pixel); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--abysse); color: var(--jaune); }
.boutique p { margin: 0; color: #3A3B63; }
.boutique .bouton { margin-top: auto; box-shadow: 4px 4px 0 var(--abysse); }
.boutique .bouton:hover { box-shadow: 6px 6px 0 var(--abysse); }
.boutique .bouton[aria-disabled="true"] { color: #55577A; border-color: #8A8CB0; box-shadow: none; }
.boutique-note { font-family: var(--f-note); font-size: 1.25rem; font-weight: 700; color: var(--violet); }

/* Réseaux */
.section--reseaux { background: var(--nuit); }
.reseaux-grille { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.reseaux { display: grid; gap: 16px; }
.reseau a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none;
  background: var(--nuit-3); border: var(--contour); border-radius: var(--rayon); box-shadow: 5px 5px 0 var(--c);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.reseau a:hover { transform: translateX(6px); box-shadow: 8px 5px 0 var(--c); background: #252a63; }
.reseau-icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: var(--contour); background: var(--c); color: var(--abysse); flex: none; }
.reseau-icone .ico { width: 26px; height: 26px; }
.reseau-nom { font-family: var(--f-main); font-size: 1.35rem; display: block; line-height: 1.2; }
.reseau-pseudo { color: var(--brume); font-size: .95rem; }
.reseau-sortie { margin-left: auto; color: var(--brume); }

/* À propos + contact */
.section--apropos { background: var(--nuit-2); }
.apropos-grille { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.carte-papier {
  position: relative; padding: clamp(28px, 4vw, 44px); color: var(--abysse); border: var(--contour); border-radius: 6px 22px 10px 18px;
  background: linear-gradient(transparent 31px, rgba(124,77,255,.13) 32px) 0 14px / 100% 32px, #FFF7EA;
  box-shadow: 8px 8px 0 var(--violet); transform: rotate(-.6deg);
}
.carte-papier::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: rgba(255,210,63,.85); border: 2px solid rgba(7,8,26,.25); transform: rotate(-3deg); }
.carte-papier .etiquette { color: var(--violet); }
.carte-papier p { color: #34355C; }
.signature { font-family: var(--f-note); font-size: 1.8rem; font-weight: 700; color: var(--orange) !important; margin: 0; transform: rotate(-3deg); display: inline-block; }
.carte-contact { padding: clamp(26px, 4vw, 36px); background: var(--nuit-3); border: var(--contour); border-radius: var(--rayon); box-shadow: 8px 8px 0 var(--orange); }
.carte-contact p { color: var(--brume); }
.carte-contact .bouton { margin: 8px 0 14px; word-break: break-all; text-align: center; }
.petit { font-size: .92rem; margin: 0; }

/* Pied de page */
.pied { background: var(--nuit-2); position: relative; }
.pied-paysage { display: block; width: 100%; height: 90px; }
.pied-contenu { background: var(--abysse); padding: 30px 0 26px; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 2px dashed rgba(196,181,253,.2); }
.pied-marque p { color: var(--brume); margin: 14px 0 0; max-width: 30em; }
.continuer { color: var(--jaune) !important; font-size: 1.05rem; }
.clignote { color: var(--orange); animation: clignote 1.2s steps(1) infinite; }
.pied-titre { font-family: var(--f-pixel); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-clair); margin-bottom: 12px; }
.pied-nav ul { display: grid; gap: 4px; }
.pied-nav a, .pied-reseaux a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--brume); text-decoration: none; font-weight: 700; transition: color .2s, transform .2s; }
.pied-nav a:hover, .pied-reseaux a:hover { color: var(--orange-clair); transform: translateX(4px); }
.pied-reseaux ul { display: grid; gap: 4px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 20px; font-size: .92rem; color: var(--brume); }
.pied-bas p { margin: 0; }
.haut { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid rgba(196,181,253,.35); border-radius: 999px; color: var(--texte); text-decoration: none; font-family: var(--f-pixel); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; transition: border-color .2s, transform .2s; }
.haut:hover { border-color: var(--orange); transform: translateY(-3px); }

/* ---------- 4 bis. LANGUE (bouton FR | EN) ---------- */
/* Masquage très bref, seulement si l'anglais a été choisi lors d'une visite précédente,
   le temps d'afficher les textes anglais. Retiré par i18n.js, et au plus tard après 1,2 s par js-actif.js. */
.i18n-attente body { visibility: hidden; }

.menu { margin-left: auto; }                      /* le menu se range à droite, juste avant le choix de langue */
.langue {
  display: none;                                  /* affiché seulement quand i18n.js fonctionne */
  flex: none; align-items: center; gap: 2px; padding: 3px;
  border: 2px solid rgba(196,181,253,.35); border-radius: 999px;
}
.i18n-ok .langue { display: inline-flex; }
.langue-choix {
  min-width: 44px; min-height: 40px; padding: 4px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--brume);
  font-family: var(--f-pixel); font-weight: 600; font-size: .9rem; letter-spacing: .06em;
  transition: background .2s, color .2s;
}
.langue-choix:hover { color: var(--texte); background: rgba(124,77,255,.22); }
.langue-choix[aria-pressed="true"] { color: #fff; background: var(--violet); box-shadow: 0 0 0 2px var(--abysse) inset; }
.langue-sep { color: rgba(196,181,253,.45); font-family: var(--f-pixel); }
/* En anglais, « creative workshop » (non coupable) est plus long que « atelier créatif » :
   sur petit écran seulement, la 2e ligne du titre rapetisse juste assez pour tenir. Taille normale ailleurs. */
html[lang="en"] .heros h1 .ligne:last-child { font-size: min(1em, calc((100vw - 36px) / 9.9)); }
/* Même principe en français pour « atelier créatif ! » : ne s'active que sur les très petits écrans (moins de 375 px) */
html[lang="fr"] .heros h1 .ligne:last-child { font-size: min(1em, calc((100vw - 32px) / 8.22)); }

/* ---------- 5. MOBILE ET TABLETTE ---------- */
@media (max-width: 980px) {
  .heros-grille { grid-template-columns: 1fr; }
  .heros-scene { max-width: 560px; margin: 0 auto; width: 100%; }
  .note-main { margin-left: 120px; }
  .reseaux-grille, .apropos-grille { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-bouton { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; padding: 12px 16px 20px;
    background: var(--nuit); border-bottom: var(--contour); box-shadow: 0 20px 40px rgba(7,8,26,.6);
    display: none;
  }
  .menu.ouvert { display: block; animation: deroule .25s ease; }
  .menu ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .menu a { width: 100%; font-size: 1.1rem; padding: 10px 16px; }
  .menu .menu-contact { margin: 8px 0 0; justify-content: center; }
  @keyframes deroule { from { opacity: 0; transform: translateY(-8px); } }
  /* Sur mobile, le choix de langue reste visible dans la barre, juste avant le bouton du menu */
  .langue { order: 2; margin-left: auto; }
  .menu-bouton { order: 3; }
}
@media (max-width: 560px) {
  :root { --entete-h: 64px; }
  .logo-texte { font-size: 1.25rem; }
  .actions .bouton { flex: 1 1 100%; }
  .note-main { margin-left: 40px; font-size: 1.4rem; }
  .bandeau { gap: 8px 12px; font-size: .82rem; }
  .bandeau li + li::before { margin-right: 12px; }
  .pied-grille { grid-template-columns: 1fr; }
  .boutique:nth-child(n) { transform: none; }
  .reseau a { padding: 14px 16px; }
  .carte-contact .bouton { padding-inline: 14px; gap: 8px; font-size: .95rem; word-break: normal; overflow-wrap: anywhere; }
}
/* Très petits écrans (moins de 375 px) : logo, choix de langue et bouton du menu tiennent côte à côte,
   sans se chevaucher ni s'écraser. Aucun effet à partir de 375 px. */
@media (max-width: 374px) {
  .entete-ligne { gap: 8px; }
  .logo { gap: 6px; }
  .langue-choix { min-width: 38px; padding-inline: 6px; }
  .menu-bouton { flex: none; }
}

/* Moins d'animations si l'appareil le demande */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-apparait] { opacity: 1; transform: none; }
}
