rebours/public/style.css
2026-02-27 18:36:09 +01:00

617 lines
14 KiB
CSS

/* ==========================================================================
REBOUR — RAW HTML 2000s + GRILLE GUFRAM + PANEL PRODUIT
========================================================================== */
:root {
--clr-bg: #c8c8c8;
--clr-black: #111;
--clr-white: #dcdcdc;
--clr-card-bg: #d0d0d0;
--clr-grid: rgba(0,0,0,0.10);
--clr-red: #e8a800;
--font-mono: 'Space Mono', monospace;
--border: 1px solid #111;
--pad: 2rem;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 13px; }
body {
background: var(--clr-bg);
color: var(--clr-black);
font-family: var(--font-mono);
overflow-x: hidden;
cursor: none;
}
/* ---- CURSOR ---- */
.cursor-dot {
width: 5px; height: 5px;
background: var(--clr-red);
position: fixed; top: 0; left: 0;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 999999;
opacity: 0;
will-change: transform;
}
.cursor-outline {
width: 26px; height: 26px;
border: 1px solid var(--clr-black);
position: fixed; top: 0; left: 0;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 999998;
opacity: 0;
transition: width 0.15s, height 0.15s, opacity 0.15s;
will-change: transform;
}
/* ---- INTERACTIVE GRID (derrière tout) ---- */
.interactive-grid {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
z-index: 0;
pointer-events: auto;
overflow: hidden;
}
.grid-cell {
border-right: 1px solid var(--clr-grid);
border-bottom: 1px solid var(--clr-grid);
pointer-events: auto;
transition: background-color 1.3s ease-out;
}
/* ---- PAGE WRAPPER ---- */
.page-wrapper {
position: relative;
z-index: 1;
pointer-events: none; /* laisse passer vers la grid */
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Re-active pointer-events sur les éléments interactifs */
.page-wrapper a,
.page-wrapper button,
.page-wrapper input,
.page-wrapper form,
.page-wrapper nav,
.page-wrapper .product-card,
.page-wrapper summary,
.page-wrapper details {
pointer-events: auto;
}
/* ---- HEADER ---- */
.header {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 1.1rem var(--pad);
border-bottom: var(--border);
background: var(--clr-bg);
pointer-events: auto;
}
.logo-text {
font-size: 1rem;
font-weight: 700;
letter-spacing: 0.18em;
text-decoration: none;
color: var(--clr-black);
}
.header-nav {
display: flex;
align-items: baseline;
gap: 2.5rem;
font-size: 0.82rem;
}
.header-nav a {
color: var(--clr-black);
text-decoration: none;
}
.header-nav a:hover { text-decoration: underline; }
.wip-tag { color: #999; font-size: 0.78rem; }
/* ---- UTILS ---- */
.label { font-size: 0.75rem; color: #888; letter-spacing: 0.04em; }
.mono-sm { font-size: 0.75rem; line-height: 1.9; color: #777; }
.red { color: var(--clr-red); font-weight: 700; }
.blink { animation: blink 1.4s step-end infinite; color: var(--clr-red); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
hr { border: none; border-top: var(--border); margin: 0; }
/* ---- HERO ---- */
.hero {
display: grid;
grid-template-columns: 1fr 1fr;
height: calc(100vh - var(--header-h, 44px));
pointer-events: none;
}
.hero-left {
padding: 5rem var(--pad) 3rem;
border-right: var(--border);
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 1.6rem;
position: relative;
overflow: hidden;
}
.hero-left h1 {
font-size: clamp(3.5rem, 7vw, 6rem);
font-weight: 700;
line-height: 0.92;
letter-spacing: -0.02em;
}
.hero-sub { font-size: 0.85rem; line-height: 1.75; max-width: 300px; }
.hero-right { overflow: hidden; background: #1c1c1c; }
.hero-img {
width: 100%; height: 100%;
object-fit: cover; display: block;
filter: grayscale(10%);
opacity: 0.92;
transition: opacity 0.5s, filter 0.5s;
}
.hero-right:hover .hero-img { opacity: 1; filter: grayscale(0%); }
/* ---- COLLECTION ---- */
.collection { pointer-events: none; }
.collection-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem var(--pad);
}
/* ---- PRODUCT GRID — style Gufram ---- */
/* 3 colonnes, image centrée sur fond neutre, bordure fine */
.product-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-top: 2px solid #111;
border-left: 2px solid #111;
}
.product-card {
border-right: 2px solid #111;
border-bottom: 2px solid #111;
background: var(--clr-card-bg);
cursor: none;
pointer-events: auto;
display: flex;
flex-direction: column;
transition: background 0.2s;
position: relative;
}
.product-card::before {
content: '';
position: absolute;
inset: -2px;
border: 2px solid transparent;
pointer-events: none;
transition: border-color 0.15s;
z-index: 2;
}
.product-card:hover::before {
border-color: var(--clr-red);
}
.product-card:hover .card-name {
color: var(--clr-red);
}
.product-card:hover .card-index {
color: var(--clr-black);
}
.product-card:hover .card-arrow {
opacity: 1;
color: var(--clr-black);
}
/* Image : objet centré sur fond neutre, comme Gufram */
.card-img-wrap {
aspect-ratio: 1 / 1;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
border-bottom: 2px solid #111;
background: var(--clr-card-bg);
transition: background 0.2s, border-color 0.15s;
}
.product-card:hover .card-img-wrap {
border-bottom-color: var(--clr-red);
}
.product-card:hover .card-img-wrap {
background: var(--clr-card-bg);
}
.card-img-wrap img {
width: 88%;
height: 88%;
object-fit: contain;
display: block;
filter: grayscale(15%);
}
/* Bas de la card : index + nom + flèche, tout en ligne */
.card-meta {
display: flex;
align-items: baseline;
justify-content: space-between;
padding: 0.9rem 1.1rem;
gap: 0.8rem;
}
.card-index {
font-size: 0.72rem;
color: #999;
flex-shrink: 0;
}
.card-name {
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.04em;
flex-grow: 1;
}
.card-arrow {
font-size: 1rem;
opacity: 0.4;
}
/* ---- PRODUCT PANEL (overlay) ---- */
.product-panel {
position: fixed;
inset: 0;
z-index: 1000;
background: var(--clr-bg);
display: flex;
flex-direction: column;
transform: translateY(100%);
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
pointer-events: none;
overflow: hidden;
}
.product-panel.is-open {
transform: translateY(0);
pointer-events: auto;
}
.panel-close {
display: flex;
align-items: center;
padding: 1.1rem var(--pad);
border-bottom: var(--border);
font-size: 0.78rem;
font-weight: 700;
cursor: none;
background: var(--clr-bg);
letter-spacing: 0.05em;
pointer-events: auto;
flex-shrink: 0;
}
.panel-close:hover { background: var(--clr-white); }
.panel-close span { pointer-events: none; }
.panel-inner {
display: grid;
grid-template-columns: 1fr 1fr;
flex-grow: 1;
overflow: hidden;
}
/* Colonne image : sticky, fond sombre, image centrée */
.panel-img-col {
border-right: var(--border);
background: #1a1a1a;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
}
#panel-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
opacity: 0.92;
}
/* Colonne infos : scrollable */
.panel-info-col {
overflow-y: auto;
padding: 2.5rem var(--pad);
display: flex;
flex-direction: column;
gap: 1.4rem;
background: var(--clr-bg);
}
.panel-index {
font-size: 0.72rem;
color: #999;
letter-spacing: 0.05em;
}
.panel-info-col h2 {
font-size: clamp(1.8rem, 3vw, 2.8rem);
font-weight: 700;
line-height: 1;
letter-spacing: -0.01em;
}
/* Meta table */
.panel-meta {
display: flex;
flex-direction: column;
gap: 0;
}
.panel-meta-row {
display: flex;
gap: 1.5rem;
padding: 0.55rem 0;
border-bottom: 1px solid rgba(0,0,0,0.1);
font-size: 0.8rem;
align-items: baseline;
}
.meta-key {
color: #888;
width: 7rem;
flex-shrink: 0;
font-size: 0.72rem;
}
.panel-desc {
font-size: 0.85rem;
line-height: 1.85;
color: #333;
}
/* Accordion */
.accordion {
border-bottom: var(--border);
}
.accordion summary {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.04em;
cursor: none;
list-style: none;
pointer-events: auto;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span {
transition: transform 0.2s;
display: inline-block;
}
.accordion[open] summary span { transform: rotate(180deg); }
.accordion-body {
font-size: 0.78rem;
line-height: 2;
color: #444;
padding-bottom: 1rem;
white-space: pre-line;
}
.panel-footer {
font-size: 0.75rem;
color: #888;
padding-top: 0.5rem;
}
/* ---- CHECKOUT SECTION ---- */
.checkout-price-line {
display: flex;
align-items: baseline;
gap: 1.2rem;
margin-bottom: 1rem;
}
.checkout-price {
font-size: 1.6rem;
font-weight: 700;
letter-spacing: -0.01em;
}
.checkout-edition {
font-size: 0.72rem;
color: #888;
}
/* Bouton jaune parking rectangulaire — aucun border-radius */
.checkout-btn {
display: block;
width: 100%;
background: #e8a800;
color: var(--clr-black);
border: var(--border);
font-family: var(--font-mono);
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.04em;
padding: 1.1rem 1.5rem;
text-align: center;
cursor: none;
transition: background 0.15s, color 0.15s;
pointer-events: auto;
}
.checkout-btn:hover {
background: var(--clr-black);
color: #e8a800;
}
/* Form qui se déploie */
.checkout-form-wrap {
border: var(--border);
border-top: none;
background: var(--clr-white);
}
.checkout-form {
display: flex;
flex-direction: column;
gap: 0;
}
.checkout-form-field {
display: flex;
flex-direction: column;
gap: 0.4rem;
padding: 1.1rem;
border-bottom: var(--border);
}
.checkout-form-field label {
font-size: 0.68rem;
font-weight: 700;
color: #888;
letter-spacing: 0.05em;
}
.checkout-form-field input {
border: none;
background: transparent;
font-family: var(--font-mono);
font-size: 0.85rem;
outline: none;
cursor: none;
padding: 0;
color: var(--clr-black);
pointer-events: auto;
}
.checkout-form-field input::placeholder { color: #bbb; }
.checkout-form-field input:focus { outline: none; }
.checkout-form-note {
padding: 0.9rem 1.1rem;
font-size: 0.72rem;
line-height: 1.8;
color: #777;
border-bottom: var(--border);
}
.checkout-submit {
background: var(--clr-black);
color: #e8a800;
border: none;
font-family: var(--font-mono);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.04em;
padding: 1.1rem 1.5rem;
cursor: none;
text-align: center;
transition: background 0.15s, color 0.15s;
pointer-events: auto;
}
.checkout-submit:hover {
background: #e8a800;
color: var(--clr-black);
}
.checkout-submit:disabled {
opacity: 0.5;
pointer-events: none;
}
/* ---- NEWSLETTER ---- */
.newsletter {
display: grid;
grid-template-columns: 1fr 1fr;
pointer-events: none;
}
.nl-left {
padding: 3rem var(--pad);
border-right: var(--border);
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 1rem;
}
.nl-left h2 {
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 700;
line-height: 0.95;
letter-spacing: -0.02em;
}
.nl-right {
padding: 3rem var(--pad);
display: flex;
align-items: flex-end;
}
.nl-form {
width: 100%;
display: flex;
flex-direction: column;
gap: 0.7rem;
pointer-events: auto;
}
.nl-form label { font-size: 0.75rem; font-weight: 700; }
.nl-row {
display: flex;
border: var(--border);
background: var(--clr-white);
}
.nl-row input {
flex-grow: 1;
border: none;
background: transparent;
font-family: var(--font-mono);
font-size: 0.85rem;
padding: 0.9rem;
outline: none;
cursor: none;
}
.nl-row input::placeholder { color: #bbb; }
.nl-row input:focus { background: rgba(0,0,0,0.03); }
.nl-row button {
border: none;
border-left: var(--border);
background: var(--clr-black);
color: var(--clr-white);
font-family: var(--font-mono);
font-size: 0.75rem;
font-weight: 700;
padding: 0 1.3rem;
cursor: none;
transition: background 0.15s;
pointer-events: auto;
}
.nl-row button:hover { background: var(--clr-red); color: var(--clr-black); }
/* ---- FOOTER ---- */
.footer {
margin-top: auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.1rem var(--pad);
border-top: var(--border);
font-size: 0.75rem;
pointer-events: auto;
background: var(--clr-bg);
}
.footer a { color: var(--clr-black); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
.hero, .newsletter { grid-template-columns: 1fr; }
.hero-left { border-right: none; border-bottom: var(--border); min-height: 70vw; padding: 3rem var(--pad); order: -1; }
.hero-right { height: 55vw; }
.nl-left { border-right: none; border-bottom: var(--border); }
.product-grid { grid-template-columns: 1fr 1fr; }
.panel-inner { grid-template-columns: 1fr; }
.panel-img-col { height: 50vw; }
.panel-info-col { overflow-y: auto; }
}
@media (max-width: 600px) {
.product-grid { grid-template-columns: 1fr; margin: 0 1rem; border-left: none; }
.product-card { border-left: 2px solid #111; }
.header-nav { gap: 1rem; }
.hero { height: auto; }
.hero-left { min-height: unset; padding: 2rem var(--pad); order: -1; }
.hero-right { height: 60vw; }
.cursor-dot, .cursor-outline { display: none; }
body { cursor: auto; }
}