Files

502 lines
8.6 KiB
CSS

@import "./var.css";
* {
box-sizing: border-box;
}
/* ── Skip link (accessibilité) ── */
.skip-link {
position: absolute;
top: -100%;
left: 0.5rem;
z-index: 9999;
padding: 0.6rem 1rem;
background: var(--accent);
color: var(--surface-dim);
font-weight: 600;
border-radius: 0 0 0.5rem 0.5rem;
text-decoration: none;
transition: top 200ms ease;
}
.skip-link:focus {
top: 0;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
color: var(--text);
font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
background: var(--surface-dim);
background-image:
radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 40%),
radial-gradient(circle at bottom right, rgba(125, 211, 252, 0.05), transparent 40%);
}
.page-shell {
position: relative;
z-index: 1;
width: 100%;
margin: 0 auto;
min-height: 100vh;
display: grid;
grid-template-rows: auto 1fr auto;
gap: 0;
}
/* ── Header ── */
.site-header {
background: var(--surface);
border-bottom: 1px solid var(--border);
box-shadow: var(--shadow-sm);
position: sticky;
top: 0;
z-index: 100;
}
.header-brand-block {
width: 100%;
margin: 0 auto;
max-width: 1200px;
display: flex;
align-items: center;
gap: 0.85rem;
justify-content: space-between;
padding: 0.75rem 1.25rem;
}
.brand {
display: inline-flex;
align-items: center;
gap: 0.75rem;
color: var(--text);
text-decoration: none;
}
.brand-mark {
width: 2.75rem;
height: 2.75rem;
object-fit: cover;
display: block;
border-radius: 0.5rem;
}
.brand-text {
display: grid;
font-size: 1.5rem;
line-height: 1.1;
}
.brand-text strong {
font-family: "Georgia", "Palatino Linotype", serif;
color: var(--text);
}
.brand-text small {
color: var(--muted);
font-size: 0.75rem;
}
/* ── Navigation ── */
.site-nav {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
/* Burger mobile : bouton visible <900px, la nav devient un panneau dépliant */
.nav-burger {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 2.75rem;
height: 2.75rem;
padding: 0 0.6rem;
border: 1px solid var(--border);
border-radius: 0.5rem;
background: var(--surface-raised);
cursor: pointer;
flex: none;
}
.nav-burger span {
display: block;
width: 100%;
height: 2px;
border-radius: 2px;
background: var(--text);
transition: transform 180ms ease, opacity 180ms ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}
.site-nav a {
padding: 0.5rem 1rem;
color: var(--text-secondary);
text-decoration: none;
border-radius: 0.5rem;
font-weight: 500;
font-size: 0.95rem;
transition: all 160ms ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
color: var(--accent);
background: var(--accent-bg);
}
.site-nav a:hover {
transform: translateY(-1px);
}
/* ── Main ── */
.site-main {
margin: 0 auto;
max-width: 1200px;
width: 100%;
padding: 2rem 1.25rem;
display: grid;
gap: 2rem;
align-content: start;
}
/* ── Footer ── */
.site-footer {
background: var(--surface);
border-top: 1px solid var(--border);
padding: 2rem 1.25rem;
}
.site-footer p {
margin: 0;
}
.footer-brand-row {
display: flex;
align-items: start;
justify-content: space-between;
gap: 1rem;
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--border);
}
.footer-content {
margin: 0 auto;
max-width: 1200px;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.footer-brand-block {
display: flex;
align-items: center;
gap: 0.85rem;
max-width: 42rem;
}
.footer-brand-mark {
width: 2.5rem;
height: 2.5rem;
border-radius: 0.5rem;
object-fit: cover;
display: block;
flex: none;
}
.footer-brand-block strong {
display: block;
color: var(--text);
font-family: "Georgia", "Palatino Linotype", serif;
font-size: 1.05rem;
}
.footer-brand-block p,
.footer-note,
.footer-bottom p {
color: var(--muted);
line-height: 1.6;
}
.footer-note {
max-width: 20rem;
}
.footer-links-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1.5rem;
padding: 1.5rem 0;
}
.footer-links-grid section,
.footer-links-grid nav {
display: grid;
gap: 0.5rem;
align-content: start;
}
.footer-links-grid h2 {
margin: 0 0 0.25rem;
color: var(--text);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.footer-links-grid a {
color: var(--text-secondary);
text-decoration: none;
width: fit-content;
font-size: 0.95rem;
transition: color 160ms ease, transform 160ms ease;
}
.footer-links-grid a:hover {
color: var(--accent);
transform: translateX(2px);
}
.footer-bottom {
display: flex;
justify-content: space-between;
gap: 1rem;
padding-top: 1.25rem;
border-top: 1px solid var(--border);
font-size: 0.9rem;
color: var(--muted);
}
.footer-hosting {
text-align: right;
}
.footer-hosting a {
color: var(--text-secondary);
text-decoration: none;
border-bottom: 1px solid var(--border);
transition: color 160ms ease;
}
.footer-hosting a:hover,
.footer-hosting a:focus-visible {
color: var(--accent);
}
.footer-release,
.footer-commit {
text-align: right;
}
.footer-release span,
.footer-commit span {
color: var(--text-secondary);
}
/* ── Buttons ── */
.button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.7rem 1.4rem;
border-radius: 0.5rem;
text-decoration: none;
font-weight: 600;
font-size: 0.95rem;
border: 1px solid transparent;
cursor: pointer;
transition: all 180ms ease;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
.button-primary {
background: var(--accent);
color: var(--surface-dim);
box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}
.button-secondary {
background: var(--surface-raised);
color: var(--text-secondary);
border-color: var(--border);
}
.button:hover,
.button:focus-visible {
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.button-primary:hover,
.button-primary:focus-visible {
background: var(--accent-strong);
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}
.button-secondary:hover,
.button-secondary:focus-visible {
background: rgba(56, 189, 248, 0.12);
border-color: var(--accent-soft);
color: var(--accent);
}
.button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.button[aria-disabled="true"],
.button:disabled {
opacity: 0.5;
pointer-events: none;
transform: none;
box-shadow: none;
}
/* ── Responsive ── */
@media (max-width: 900px) {
.footer-links-grid {
grid-template-columns: 1fr;
}
/* Header : burger à droite, nav en panneau dépliant sous la marque */
.header-brand-block {
flex-direction: row;
align-items: center;
flex-wrap: wrap;
padding: 0.6rem 1rem;
gap: 0.6rem;
}
.nav-burger {
display: flex;
margin-left: auto;
}
.site-nav {
display: none;
flex-basis: 100%;
flex-direction: column;
gap: 0.3rem;
padding: 0.35rem 0 0.5rem;
border-top: 1px solid var(--border-soft);
}
.site-nav.is-open {
display: flex;
}
.site-nav a,
.nav-dropdown-toggle {
width: 100%;
text-align: center;
justify-content: center;
padding: 0.65rem 1rem;
font-size: 1rem;
}
/* Le panneau déroulant devient statique : il se déploie dans le flux */
.nav-dropdown {
width: 100%;
}
.nav-dropdown-panel {
position: static;
left: auto;
min-width: 0;
max-width: none;
width: 100%;
transform: none;
box-shadow: none;
background: var(--surface);
}
.nav-dropdown.is-open .nav-dropdown-panel {
transform: none;
}
.nav-dropdown-panel-inner {
max-height: 16rem;
}
.site-main {
padding: 1.25rem 1rem;
}
}
@media (max-width: 700px) {
.page-shell {
width: 100%;
}
.header-brand-block {
padding: 0.55rem 0.85rem;
}
.brand-text {
font-size: 1.25rem;
}
.footer-brand-row,
.footer-bottom {
flex-direction: column;
}
.footer-brand-block {
align-items: flex-start;
}
.footer-bottom p {
text-align: center;
}
.hero-actions .button {
width: 100%;
}
}
/* Très petits écrans (<380px) : marges réduites, tailles resserrées */
@media (max-width: 380px) {
.site-main {
padding: 1rem 0.65rem;
}
.hero {
min-height: 24rem;
}
.hero-title {
font-size: clamp(2rem, 9vw, 2.5rem);
}
.footer-links-grid {
gap: 1rem;
}
}