mirror of
https://github.com/arthur-pbty/clock.git
synced 2026-06-03 15:07:20 +02:00
458 lines
8.6 KiB
CSS
458 lines
8.6 KiB
CSS
@import "tailwindcss";
|
|
|
|
:root {
|
|
--background: #0f172a;
|
|
--foreground: #f8fafc;
|
|
--primary: #3b82f6;
|
|
--secondary: #64748b;
|
|
--accent: #8b5cf6;
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-primary: var(--primary);
|
|
--color-secondary: var(--secondary);
|
|
--color-accent: var(--accent);
|
|
--font-sans: var(--font-geist-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
transition: background-color 0.5s ease, color 0.5s ease;
|
|
}
|
|
|
|
/* Transitions fluides pour les thèmes */
|
|
.theme-transition {
|
|
transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
|
|
color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
|
|
border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
|
|
box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* Animation de l'horloge numérique */
|
|
@keyframes pulse-subtle {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.7; }
|
|
}
|
|
|
|
.clock-pulse {
|
|
animation: pulse-subtle 1s ease-in-out infinite;
|
|
}
|
|
|
|
/* Animation pour les secondes de l'horloge analogique */
|
|
@keyframes smooth-second {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.second-hand-smooth {
|
|
animation: smooth-second 60s linear infinite;
|
|
}
|
|
|
|
/* Styles pour le mode plein écran */
|
|
.fullscreen-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Focus visible pour l'accessibilité */
|
|
*:focus-visible {
|
|
outline: 2px solid var(--primary);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Amélioration du contraste pour l'accessibilité */
|
|
.high-contrast {
|
|
--background: #000000;
|
|
--foreground: #ffffff;
|
|
}
|
|
|
|
/* Scrollbar personnalisée */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--secondary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--primary);
|
|
}
|
|
|
|
/* Styles pour les sélecteurs */
|
|
select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.75rem center;
|
|
background-size: 1rem;
|
|
padding-right: 2.5rem;
|
|
}
|
|
|
|
/* Animation d'apparition */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.animate-fade-in {
|
|
animation: fadeIn 0.3s ease-out forwards;
|
|
}
|
|
|
|
/* Styles pour le panneau de paramètres */
|
|
.settings-panel {
|
|
backdrop-filter: blur(12px);
|
|
background: rgba(15, 23, 42, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Horloge analogique - styles de base */
|
|
.clock-face {
|
|
position: relative;
|
|
border-radius: 50%;
|
|
background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(0,0,0,0.2));
|
|
box-shadow:
|
|
inset 0 0 30px rgba(0,0,0,0.3),
|
|
0 0 50px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.clock-hand {
|
|
position: absolute;
|
|
bottom: 50%;
|
|
left: 50%;
|
|
transform-origin: bottom center;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.clock-center {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
border-radius: 50%;
|
|
z-index: 10;
|
|
}
|
|
|
|
/* ===== Contenu SEO visible en bas de page ===== */
|
|
.seo-content {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 3rem 1.5rem 4rem;
|
|
color: rgba(148, 163, 184, 0.85);
|
|
font-size: 0.95rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.seo-content h1 {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
color: rgba(248, 250, 252, 0.95);
|
|
margin-bottom: 1rem;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.seo-content .seo-intro {
|
|
font-size: 1.05rem;
|
|
margin-bottom: 2.5rem;
|
|
color: rgba(148, 163, 184, 0.9);
|
|
}
|
|
|
|
.seo-content h2 {
|
|
font-size: 1.35rem;
|
|
font-weight: 600;
|
|
color: rgba(248, 250, 252, 0.9);
|
|
margin-bottom: 1.25rem;
|
|
margin-top: 2.5rem;
|
|
}
|
|
|
|
.seo-content h3 {
|
|
font-size: 1.05rem;
|
|
font-weight: 600;
|
|
color: rgba(248, 250, 252, 0.85);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.seo-features {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.seo-feature {
|
|
padding: 1.25rem;
|
|
border-radius: 0.75rem;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.seo-feature p {
|
|
margin-top: 0.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* FAQ en bas de page */
|
|
.seo-faq {
|
|
margin-top: 3rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
.seo-faq details {
|
|
margin-bottom: 0.75rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.seo-faq details summary {
|
|
padding: 0.875rem 1.25rem;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
color: rgba(248, 250, 252, 0.9);
|
|
font-size: 0.95rem;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
transition: background 0.2s;
|
|
list-style: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.seo-faq details summary::before {
|
|
content: '▸';
|
|
transition: transform 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.seo-faq details[open] summary::before {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.seo-faq details summary:hover {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.seo-faq details summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.seo-faq details > div {
|
|
padding: 0 1.25rem 1rem;
|
|
}
|
|
|
|
.seo-faq details p {
|
|
font-size: 0.9rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.seo-content {
|
|
padding: 2rem 1rem 3rem;
|
|
}
|
|
|
|
.seo-content h1 {
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.seo-features {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ===== Skip to content (accessibilité) ===== */
|
|
.skip-to-content {
|
|
position: absolute;
|
|
top: -100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 0.75rem 1.5rem;
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border-radius: 0 0 0.5rem 0.5rem;
|
|
z-index: 9999;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: top 0.2s;
|
|
}
|
|
|
|
.skip-to-content:focus {
|
|
top: 0;
|
|
}
|
|
|
|
/* ===== Footer SEO ===== */
|
|
.seo-footer {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: 3rem 1.5rem 2.25rem;
|
|
color: rgba(148, 163, 184, 0.75);
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(15, 23, 42, 0) 0%,
|
|
rgba(15, 23, 42, 0.35) 20%,
|
|
rgba(15, 23, 42, 0.65) 100%
|
|
);
|
|
}
|
|
|
|
.footer-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 2rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.seo-footer h2 {
|
|
font-size: 1rem;
|
|
font-weight: 650;
|
|
letter-spacing: 0.02em;
|
|
margin-bottom: 0.9rem;
|
|
color: rgba(248, 250, 252, 0.95);
|
|
}
|
|
|
|
.seo-footer ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.seo-footer a {
|
|
color: rgba(148, 163, 184, 0.82);
|
|
text-decoration: none;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.seo-footer a:hover {
|
|
color: rgba(248, 250, 252, 0.98);
|
|
}
|
|
|
|
.footer-bottom {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
padding-top: 1rem;
|
|
font-size: 0.9rem;
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.footer-bottom p {
|
|
margin: 0;
|
|
}
|
|
|
|
/* ===== Pages legales ===== */
|
|
.legal-page {
|
|
width: min(100% - 2rem, 760px);
|
|
margin: 0 auto;
|
|
padding: 3rem 0 4rem;
|
|
color: rgba(226, 232, 240, 0.92);
|
|
}
|
|
|
|
.legal-header {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
|
padding-bottom: 1.1rem;
|
|
}
|
|
|
|
.legal-header h1 {
|
|
font-size: clamp(1.8rem, 3vw, 2.25rem);
|
|
line-height: 1.15;
|
|
letter-spacing: -0.01em;
|
|
color: rgba(248, 250, 252, 0.98);
|
|
font-weight: 650;
|
|
}
|
|
|
|
.legal-header p {
|
|
margin-top: 0.45rem;
|
|
color: rgba(148, 163, 184, 0.85);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.legal-sections {
|
|
margin-top: 1.8rem;
|
|
}
|
|
|
|
.legal-sections section {
|
|
padding-top: 1.1rem;
|
|
}
|
|
|
|
.legal-sections section + section {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
margin-top: 1.2rem;
|
|
}
|
|
|
|
.legal-sections h2 {
|
|
font-size: 1.15rem;
|
|
font-weight: 600;
|
|
color: rgba(248, 250, 252, 0.96);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.legal-sections p {
|
|
line-height: 1.65;
|
|
color: rgba(203, 213, 225, 0.95);
|
|
}
|
|
|
|
.legal-sections a {
|
|
color: rgba(224, 242, 254, 0.94);
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.legal-page {
|
|
width: min(100% - 1.25rem, 760px);
|
|
padding: 2.25rem 0 3rem;
|
|
}
|
|
|
|
.legal-sections section {
|
|
padding-top: 0.95rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.footer-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.seo-footer {
|
|
padding: 2.5rem 1rem 1.75rem;
|
|
}
|
|
|
|
.footer-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.footer-bottom {
|
|
font-size: 0.85rem;
|
|
}
|
|
}
|