:root {
  --nuit: #01000E; --jaune: #FDDF03; --bleu: #015FC3; --papier: #FDFDFB; --ligne: #015FC314;
  --titre: "Be Vietnam Pro", system-ui, sans-serif;
  --machine: "Space Mono", ui-monospace, Menlo, monospace;
  --main: "Caveat", "Bradley Hand", cursive;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--titre); font-weight: 500; color: var(--nuit); line-height: 1.35; -webkit-font-smoothing: antialiased;
       background: linear-gradient(var(--ligne) 1px, transparent 1px) 0 0 / 26px 26px,
                   linear-gradient(90deg, var(--ligne) 1px, transparent 1px) 0 0 / 26px 26px, var(--papier); }
a { color: inherit; }

/* ---------- La planche : tout sur un écran ---------- */
.planche { display: grid; gap: 0 2.4vw; padding: 3vh 2.6vw 2.4vh; height: 100vh; min-height: 640px; max-width: 1760px; margin: 0 auto;
           grid-template-columns: 30fr 38fr 26fr;
           grid-template-rows: auto 5vh minmax(0, 1fr) auto;
           grid-template-areas: "gauche tele projets" "gauche tuyau tuyau" "gauche blocs blocs" "gauche bas bas"; }

.plaque { background: #fff; border: 1.5px solid #01000E3a; border-radius: 10px; box-shadow: 0 2px 0 #01000E14; }
.etiquette { font-family: var(--machine); font-weight: 700; font-size: 11px; letter-spacing: .08em; background: var(--nuit); color: #fff; padding: 2px 7px; white-space: nowrap; }
.note-main { font-family: var(--main); font-weight: 700; color: var(--bleu); font-size: clamp(18px, 1.7vw, 28px); line-height: .95; position: absolute; pointer-events: none; }

/* ---------- Gauche ---------- */
.gauche { grid-area: gauche; display: flex; flex-direction: column; min-height: 0; }
.nom { position: relative; align-self: flex-start; padding: 1.2vh 1.4vw 1.6vh; margin-left: -.4vw; }
.nom::before { content: ""; position: absolute; inset: 6% 2% 8% 0; background: var(--jaune); border-radius: 28px; transform: rotate(-2deg); filter: url(#crayon); }
.nom::after { content: ""; position: absolute; left: 10%; bottom: -4px; width: 34%; height: 6px; background: var(--bleu); border-radius: 6px; transform: rotate(-3deg); }
h1 { position: relative; font-weight: 900; line-height: .92; letter-spacing: -.02em; font-size: min(5.2vw, 10vh); }
.engrenage { position: absolute; right: -15%; top: -6%; width: 20%; z-index: 1; animation: tourne 24s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.phrase { align-self: stretch; text-wrap: balance; margin-top: 3vh; padding: 1.6vh 1.5vw; font-weight: 900; text-align: center; font-size: min(2.25vw, 4.2vh); line-height: 1.15; max-width: 100%;
          background-image: radial-gradient(circle, #01000E55 2px, transparent 2.6px), radial-gradient(circle, #01000E55 2px, transparent 2.6px), radial-gradient(circle, #01000E55 2px, transparent 2.6px), radial-gradient(circle, #01000E55 2px, transparent 2.6px);
          background-repeat: no-repeat; background-size: 10px 10px; background-position: 8px 8px, calc(100% - 8px) 8px, 8px calc(100% - 8px), calc(100% - 8px) calc(100% - 8px); }
.souligne { box-shadow: 0 5px 0 var(--jaune); }
.jordan { flex: 1; min-height: 0; width: 128%; margin: 1vh 0 -2.4vh -6.4vw; overflow: visible; mix-blend-mode: multiply; }

/* ---------- La vraie main qui dessine (animation d'arrivée) ---------- */
.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 50; }
#main-reelle { position: absolute; left: 0; top: 0; height: 96vh; width: auto; opacity: 0; will-change: transform;
               filter: drop-shadow(-14px 22px 18px #01000E55); }

/* ---------- La télé ---------- */
.tele { grid-area: tele; position: relative; display: flex; flex-direction: column; gap: 1.2vh; min-height: 0; width: 100%; max-width: calc(62vh + 8vw); justify-self: center; align-self: start; padding: 1.6vh 1.2vw 3.4vh;
        background: var(--bleu); border-radius: 30px; border: 3px solid #012F6B; box-shadow: inset 0 0 0 5px #2C7BD6, 0 3px 0 #01000E22; }
.titre-tele { align-self: center; font-weight: 900; font-size: min(1.9vw, 3.4vh); padding: .5vh 1.4vw; border-radius: 8px; white-space: nowrap; }
.corps-tele { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1vw; }
.ecran { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--nuit); border-radius: 16px; overflow: hidden; border: 3px solid #012F6B; }
.ecran img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.attente { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--machine); font-size: 13px; }
.lecture { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: #01000ECC; border: 3px solid #fff; transition: transform .15s; }
.lecture::after { content: ""; position: absolute; left: 24px; top: 17px; border: 12px solid transparent; border-left: 20px solid #fff; border-right: 0; }
.ecran:hover .lecture { transform: scale(1.12); }
.facade { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1vh; width: clamp(40px, 3.4vw, 60px); padding: 1vh 0; }
.grille { width: 100%; height: 34%; min-height: 30px; background: repeating-linear-gradient(180deg, #012F6B 0 6px, transparent 6px 14px); border-radius: 6px; }
.molette { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #012F6B; cursor: pointer; padding: 0; transition: transform .3s;
           background: linear-gradient(40deg, transparent 46%, #012F6B 46% 54%, transparent 54%), radial-gradient(circle, #F1F2F4 55%, #A9ADB6 100%); }
.molette:hover, .molette:active { transform: rotate(70deg); }
.petit { border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; opacity: .8; }
.petit:hover { opacity: 1; }
.legende { color: #fff; font-family: var(--machine); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; min-height: 16px; }
.legende #v-date { opacity: .7; }
.regarder { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); background: var(--jaune); color: var(--nuit); font-weight: 900; font-size: min(1.7vw, 3vh);
            text-decoration: none; padding: .7vh 2.2vw; border: 3px solid var(--nuit); border-radius: 10px; white-space: nowrap; z-index: 2; }
.regarder:hover { transform: translate(-50%, 50%) scale(1.06); }
.n-video { left: -1vw; bottom: -3vh; transform: translateX(-100%) rotate(-8deg); text-align: center; }
.n-video svg { display: block; width: 2.4vw; min-width: 24px; margin: 0 0 2px 55%; transform: scaleY(-1); }

/* ---------- La feuille jaune ---------- */
.projets { grid-area: projets; position: relative; align-self: start; margin-top: 2.2vh; padding: 3.4vh 1.4vw 2.4vh; transform: rotate(1.2deg);
           background: linear-gradient(135deg, #FDE94E, #FBE23A); box-shadow: 0 4px 10px -4px #01000E55; }
.projets::after { content: ""; position: absolute; right: 0; bottom: 0; border: 13px solid; border-color: #D9BF1E var(--papier) var(--papier) #D9BF1E; }
.pince { position: absolute; left: 50%; top: -1.6vh; width: 74px; height: 34px; margin-left: -37px; background: linear-gradient(#C9CCD2, #8F949D); border: 2px solid #5E626B; border-radius: 6px 6px 10px 10px; }
.pince::before { content: ""; position: absolute; left: 50%; top: -18px; width: 26px; height: 26px; margin-left: -13px; border: 5px solid #8F949D; border-radius: 50%; }
.projets h2 { font-weight: 900; font-size: min(3vw, 5.6vh); line-height: 1; text-align: center; padding-bottom: 1.2vh; border-bottom: 5px solid var(--bleu); border-radius: 3px; display: table; margin: 0 auto 1vh; }
.projets ul { list-style: none; padding: 0; }
.projets li { border-top: 1.5px solid #01000E55; }
.projets li > * { display: block; position: relative; padding: 1.25vh 0 1.25vh 2vw; font-weight: 700; font-size: min(1.45vw, 2.7vh); line-height: 1.15; text-decoration: none; }
.projets li > *::before { content: ""; position: absolute; left: .3vw; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 13px solid var(--bleu); border-right: 0; }
.projets a:hover { background: #ffffff66; }
.projets small { font-weight: 500; font-size: .85em; }

/* ---------- Le tuyau ---------- */
.tuyau { grid-area: tuyau; width: 100%; height: 100%; margin-top: 0; overflow: visible; }

/* ---------- Les trois blocs ---------- */
.blocs { grid-area: blocs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2vw; min-height: 0; }
.bloc { background: #fff; border: 1.5px solid #01000E3a; border-radius: 12px; box-shadow: 0 2px 0 #01000E14; padding: 2vh 1.3vw 1.6vh; display: flex; flex-direction: column; min-height: 0; }
.bloc h2 { font-weight: 900; font-size: min(2.2vw, 4vh); line-height: 1.05; }
.bloc p { font-size: min(1.2vw, 2.3vh); margin-top: .6vh; }
.inscription { display: flex; flex-direction: column; gap: 1vh; margin-top: auto; padding-top: 1vh; }
.inscription input[type=email] { width: 100%; font: 500 min(1.2vw, 2.3vh) var(--titre); padding: 1vh .9vw; border: 1.5px solid #01000E77; border-radius: 6px; background: #fff; color: var(--nuit); }
.inscription button { font: 900 min(1.5vw, 2.7vh) var(--titre); color: #fff; background: var(--bleu); border: 0; border-radius: 7px; padding: 1.1vh .6vw; cursor: pointer; }
.inscription button:hover { background: #014A99; }
.inscription .piege { position: absolute; left: -9999px; }
.retour { font-family: var(--machine); font-size: 11px; margin-top: 0; min-height: 14px; }

/* ---------- Le bas ---------- */
.bas-planche { grid-area: bas; position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2vw; margin-top: 2.2vh; align-items: stretch; }
.bas-planche .plaque { display: flex; align-items: center; gap: 1vw; padding: 1.3vh 1.2vw; text-decoration: none; min-width: 0; }
.boulot p { font-size: min(1.15vw, 2.2vh); }
.trouver { position: relative; }
.trouver:hover { background: #FFFBE0; }
.youtube { display: flex; align-items: center; gap: .5vw; font-weight: 900; font-size: min(1.9vw, 3.4vh); letter-spacing: -.02em; }
.youtube i { width: 1.5em; height: 1.05em; background: #E50302; border-radius: .28em; position: relative; }
.youtube i::after { content: ""; position: absolute; left: 38%; top: 24%; border: .28em solid transparent; border-left: .46em solid #fff; border-right: 0; }
.n-chaine { display: none; }
.donnees { position: absolute; right: 0; bottom: -1.9vh; font-family: var(--machine); font-size: 9px; letter-spacing: .08em; text-decoration: none; opacity: .55; }
.donnees:hover { opacity: 1; }

/* ---------- Écrans moyens et téléphones : la page défile, les blocs s'empilent ---------- */
@media (max-width: 1000px), (max-height: 639px) {
  .planche { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 34px; }
  .tuyau, .n-video { display: none; }
  h1 { font-size: clamp(48px, 15vw, 88px); }
  .nom { padding: 10px 18px 14px; margin-left: 0; }
  .phrase { font-size: clamp(19px, 5.4vw, 28px); margin-top: 22px; padding: 16px 18px; align-self: stretch; }
  .jordan { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1120 / 790; margin: 10px auto -22px; flex: none; }
  .tele { padding: 14px 12px 34px; gap: 10px; }
  .titre-tele { font-size: clamp(17px, 4.6vw, 24px); padding: 5px 14px; }
  .corps-tele { gap: 10px; }
  .ecran { aspect-ratio: 16 / 9; }
  .facade { width: 42px; padding: 6px 0; }
  .regarder { font-size: 19px; padding: 7px 24px; }
  .projets { margin: 26px 6px 0; padding: 30px 18px 22px; align-self: stretch; }
  .projets h2 { font-size: 34px; padding-bottom: 8px; margin-bottom: 8px; }
  .projets li > * { font-size: 18px; padding: 12px 0 12px 28px; }
  .projets li > *::before { left: 4px; }
  .blocs { grid-template-columns: 1fr; gap: 16px; }
  .bloc { padding: 18px 16px 14px; }
  .bloc h2 { font-size: 27px; }
  .bloc p { font-size: 16px; margin-top: 4px; }
  .inscription { gap: 8px; padding-top: 12px; }
  .inscription input[type=email] { font-size: 16px; padding: 10px 12px; }
  .inscription button { font-size: 18px; padding: 11px; }
  .bas-planche { grid-template-columns: 1fr; gap: 16px; margin-top: 0; }
  .bas-planche .plaque { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .boulot p { font-size: 15px; flex: 1 1 200px; }
  .youtube { font-size: 26px; gap: 8px; }
  .n-chaine { font-size: 22px; right: 16px; }
  .donnees { position: static; text-align: center; font-size: 10px; margin-top: 6px; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .blocs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bas-planche { grid-template-columns: 1.4fr 1fr; }
  .donnees { grid-column: 1 / -1; }
}

/* ---------- Page de texte (données personnelles) ---------- */
.barre { display: flex; align-items: center; gap: 22px; padding: 12px 16px; font-family: var(--machine); font-size: 13px; }
.marque { background: var(--nuit); color: #fff; padding: 3px 9px; text-decoration: none; letter-spacing: .08em; font-weight: 700; }
.barre nav a { text-decoration: none; }
.barre nav a:hover { background: var(--jaune); }
.texte { max-width: 720px; margin: 8px auto 24px; background: #fff; padding: 28px; border-radius: 10px; border: 1.5px solid #01000E3a; }
.texte h1 { font-size: 30px; line-height: 1.1; letter-spacing: 0; margin-bottom: 16px; }
.texte h2 { font-size: 19px; font-weight: 900; margin-top: 22px; }
.texte p { font-size: 16px; margin-top: 8px; }
