146 lines
6 KiB
PHP
146 lines
6 KiB
PHP
<?php http_response_code(404); ?>
|
|
<!DOCTYPE html>
|
|
<html lang="fr" data-theme="light">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Page introuvable — Tony AVERTY</title>
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<link rel="icon" href="/assets/img/favicon.svg" type="image/svg+xml">
|
|
<link rel="stylesheet" href="/assets/css/style.css">
|
|
<script>
|
|
(function () {
|
|
var t = localStorage.getItem('theme') || 'light';
|
|
document.documentElement.setAttribute('data-theme', t);
|
|
document.documentElement.classList.add('no-transition');
|
|
})();
|
|
</script>
|
|
<style>
|
|
.error-page__nav { justify-content: space-between; }
|
|
</style>
|
|
<style>
|
|
.error-page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.error-page__nav {
|
|
height: var(--navbar-height);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 var(--space-xl);
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--navbar-bg);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
.error-page__logo {
|
|
font-family: var(--font-main);
|
|
font-size: 1.25rem;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
.error-page__logo span { color: var(--accent); }
|
|
.error-page__main {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--space-4xl) var(--space-xl);
|
|
}
|
|
.error-page__inner {
|
|
max-width: 560px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
.error-page__code {
|
|
font-family: var(--font-mono);
|
|
font-size: clamp(5rem, 15vw, 9rem);
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
color: var(--accent);
|
|
opacity: 0.15;
|
|
letter-spacing: -0.04em;
|
|
margin-bottom: -1rem;
|
|
display: block;
|
|
}
|
|
.error-page__title {
|
|
font-size: clamp(1.5rem, 4vw, 2.25rem);
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: var(--space-md);
|
|
line-height: 1.2;
|
|
}
|
|
.error-page__desc {
|
|
font-size: 1rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
margin-bottom: var(--space-2xl);
|
|
}
|
|
.error-page__actions {
|
|
display: flex;
|
|
gap: var(--space-md);
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
.error-page__footer {
|
|
padding: var(--space-xl);
|
|
text-align: center;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.error-page__footer-text {
|
|
font-size: 0.8125rem;
|
|
color: var(--text-tertiary);
|
|
}
|
|
.error-page__footer-text a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
.error-page__footer-text a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="error-page">
|
|
<nav class="error-page__nav">
|
|
<a href="/" class="error-page__logo">Tony<span>.</span></a>
|
|
<button class="theme-switch" id="themeSwitch" type="button" aria-label="Changer de thème">
|
|
<span class="theme-switch__icon theme-switch__icon--sun" aria-hidden="true">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
|
|
</span>
|
|
<span class="theme-switch__icon theme-switch__icon--moon" aria-hidden="true">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
|
|
</span>
|
|
</button>
|
|
</nav>
|
|
|
|
<main class="error-page__main">
|
|
<div class="error-page__inner">
|
|
<span class="error-page__code" aria-hidden="true">404</span>
|
|
<h1 class="error-page__title">Cette page n'existe pas</h1>
|
|
<p class="error-page__desc">
|
|
L'adresse que vous avez demandée est introuvable — elle a peut-être été déplacée, supprimée, ou vous avez suivi un lien incorrect.
|
|
</p>
|
|
<div class="error-page__actions">
|
|
<a href="/" class="btn btn--primary">Retourner au site</a>
|
|
<a href="mailto:contact@tony-averty.dev?subject=Page introuvable — <?php echo htmlspecialchars($_SERVER['REQUEST_URI'] ?? ''); ?>&body=Bonjour, j'ai tenté d'accéder à cette adresse : <?php echo htmlspecialchars('https://' . ($_SERVER['HTTP_HOST'] ?? 'tony-averty.dev') . ($_SERVER['REQUEST_URI'] ?? '')); ?>" class="btn btn--outline">Signaler le problème</a>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="error-page__footer">
|
|
<p class="error-page__footer-text">
|
|
Tony AVERTY — Développeur web freelance • <a href="mailto:contact@tony-averty.dev">contact@tony-averty.dev</a>
|
|
</p>
|
|
</footer>
|
|
</div>
|
|
|
|
<!-- Curseur personnalisé -->
|
|
<div class="cursor-dot" id="cursorDot" aria-hidden="true"></div>
|
|
<div class="cursor-ring" id="cursorRing" aria-hidden="true"></div>
|
|
|
|
<script src="/assets/js/error-page.js"></script>
|
|
</body>
|
|
</html>
|