/* pzcms.fr : écran unique plein écran. Fond WebGL (assets/js/pzcms.js), titre animé.
   Couleurs de Position Zero, tranchées pour Charles (daltonien) : marine, bleu vif
   #0057D9, ambre #F0A830, jamais deux teintes proches portant une information.
   Sans JavaScript ou sans WebGL : dégradé fixe, texte entier et lisible.
   Mouvement réduit : aucune animation. Police Outfit (OFL) servie par le site. */

@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-latin.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
    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: "Outfit";
    src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
    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;
}

:root {
    --nuit: #0B1A2B;
    --encre: #183048;
    --bleu: #0057D9;
    --ambre: #F0A830;
    --clair: #EAF1F7;
    --clair-2: #A9BCCE;
    --police: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0; overflow: hidden; color: var(--clair); font-family: var(--police);
    /* Repli sans WebGL : le canevas reste transparent et ce fond se voit. */
    background:
        radial-gradient(60% 50% at 25% 30%, rgba(0, 87, 217, 0.55), transparent 70%),
        radial-gradient(45% 40% at 78% 72%, rgba(240, 168, 48, 0.32), transparent 70%),
        radial-gradient(80% 70% at 50% 50%, var(--encre), var(--nuit));
}

.fond { position: fixed; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.fond.pret { opacity: 1; }

/* Grain fin par-dessus le fond : casse l'aspect « dégradé numérique ». */
.grain {
    position: fixed; inset: -50%; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.scene {
    position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px 72px; text-align: center; perspective: 900px;
}

.titre {
    margin: 0; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
    font-size: clamp(4.2rem, 19vw, 17rem);
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transform-style: preserve-3d; transition: transform 0.25s ease-out;
    white-space: nowrap;
}
.titre span {
    display: inline-block;
    background: linear-gradient(105deg, #FFFFFF 0%, var(--clair) 30%, var(--ambre) 47%, #FFF3D6 52%, var(--clair) 68%, #FFFFFF 100%);
    background-size: 280% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 10px 40px rgba(0, 87, 217, 0.45));
    transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1), filter 0.35s ease;
    position: relative;
}
/* Décodage (pzcms.js) : les signes défilent dans un calque décoratif posé sur la lettre, qui
   reste écrite dessous. Le calque disparaît avec la classe .code à la fin du décodage. */
.titre span.code::after {
    content: attr(data-signe);
    position: absolute; inset: 0; text-align: center;
    color: var(--ambre); -webkit-text-fill-color: var(--ambre);
    background: none; filter: none; opacity: 0.3;
}

.accroche {
    margin: 0.55em 0 0; font-size: clamp(1.25rem, 3.4vw, 2.4rem); font-weight: 600;
    letter-spacing: -0.01em; color: #FFFFFF;
}
.accroche span { display: inline-block; }

.statut {
    margin: 1.6rem 0 0; display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--clair-2);
    padding: 0.5rem 1rem; border: 1px solid rgba(234, 241, 247, 0.22); border-radius: 999px;
    background: rgba(11, 26, 43, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.statut-point { width: 8px; height: 8px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 0 rgba(240, 168, 48, 0.7); }

.pied {
    position: fixed; z-index: 1; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    font-size: 0.8rem;
    /* Crédit Position Zero sur fond sombre : survol en or. Il garde la couleur du texte
       (--clair) : --clair-2 tomberait sous 4,5:1 là où le fond passe au bleu vif. */
    --pz-credit-survol: #F2A900;
}
/* Enfants directs seulement : le lien du crédit garde ses propres règles. */
.pied > a { color: var(--clair-2); text-decoration: none; }
.pied > a:hover, .pied > a:focus-visible { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }

/* Animations : seulement quand le script tourne (classe pz-anim posée par pzcms.js) et que
   le visiteur n'a pas demandé de mouvement réduit. Sans elles, tout est visible tel quel. */
@media (prefers-reduced-motion: no-preference) {
    /* Le reflet traverse le mot : chaque lettre le reçoit avec un temps de retard. */
    .pz-anim .titre span { animation: reflet 7s ease-in-out 2.2s infinite; }
    .pz-anim .titre span:nth-child(2) { animation-delay: 2.32s; }
    .pz-anim .titre span:nth-child(3) { animation-delay: 2.44s; }
    .pz-anim .titre span:nth-child(4) { animation-delay: 2.56s; }
    .pz-anim .titre span:nth-child(5) { animation-delay: 2.68s; }
    .titre span:hover {
        transform: translateY(-0.08em) scale(1.06);
        filter: drop-shadow(0 12px 46px rgba(240, 168, 48, 0.75));
    }
    .pz-anim .accroche span { animation: net 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
    .pz-anim .accroche span:nth-child(1) { animation-delay: 1.1s; }
    .pz-anim .accroche span:nth-child(2) { animation-delay: 1.3s; }
    .pz-anim .accroche span:nth-child(3) { animation-delay: 1.5s; }
    .pz-anim .statut { animation: net 1s cubic-bezier(0.2, 0.8, 0.2, 1) 2s both; }
    .pz-anim .statut-point { animation: pouls 2.4s ease-out 3s infinite; }
}
@keyframes reflet {
    0% { background-position: 100% 0; }
    45%, 100% { background-position: 0% 0; }
}
@keyframes net {
    from { opacity: 0; filter: blur(14px); transform: translateY(0.4em); }
    to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes pouls {
    0% { box-shadow: 0 0 0 0 rgba(240, 168, 48, 0.7); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(240, 168, 48, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .titre { transform: none; transition: none; }
}

/* Page 404 : le lien de retour reprend la pastille du statut. */
.retour { text-decoration: none; }
.retour:hover, .retour:focus-visible { color: #FFFFFF; border-color: rgba(234, 241, 247, 0.5); }

/* Crédit Position Zero du pied (20/10/2026), copie conforme du modèle
   ~/claudecode/signature-mail/credit-pied/credit.css : le modifier là-bas puis le recopier. */
/* Crédit Position Zero, pied de page (modèle du 20/10/2026).
   Prend la couleur du texte du pied de page du site, sans l'atténuer (un pied déjà
   atténué passait sous 4,5:1 de contraste, campings du 20/10/2026) ; --pz-credit-survol se règle par site
   (bleu sur fond clair, or sur fond sombre). */
.pz-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: inherit;
  text-align: left;
}
.pz-credit__cible { flex: none; width: 16px; height: 16px; display: block; }
.pz-credit__texte { display: block; }
.pz-credit__nom {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.pz-credit__nom:hover,
.pz-credit__nom:focus-visible {
  color: var(--pz-credit-survol, #0057D9);
  border-bottom-color: currentColor;
}
.pz-credit__nom:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pz-credit__nom { transition: none; } }
