feat(vitrine): proposition « Horizon nuit » (nocturne, or, serif)
- Cormorant Garamond + Sora, fond profond et halos discrets - Accueil en colonnes : prose vitrée, principes en file or, zone constellation - Nav minimaliste caps, menu mobile, CTA en contours dorés - Pages intérieures en panneau translucide Made-with: Cursor
This commit is contained in:
+498
-146
@@ -1,180 +1,532 @@
|
||||
/* Charte Graphique P'titsPas */
|
||||
/* Proposition « Horizon nuit » — nocturne, lumière et serif (contraste maximal avec « Cahier pop ») */
|
||||
|
||||
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Sora:wght@300;400;500;600&display=swap");
|
||||
|
||||
/* Variables de Couleurs */
|
||||
:root {
|
||||
--color-peche-doux: #FFD7A8;
|
||||
--color-menthe-claire: #AEE1CD;
|
||||
--color-rose-tendre: #F6B2C4;
|
||||
--color-jaune-pale: #FFECB3;
|
||||
--color-lavande: #E6E6FA; /* Approximation, à ajuster si vous avez un hex exact */
|
||||
--color-corail-leger: #FFDAB9; /* Approximation, à ajuster */
|
||||
--color-texte-principal: #333333;
|
||||
--color-texte-secondaire: #555555;
|
||||
--color-blanc: #FFFFFF;
|
||||
--padding-module: 8px;
|
||||
--hn-void: #06080c;
|
||||
--hn-deep: #0e1219;
|
||||
--hn-mist: rgba(230, 223, 209, 0.92);
|
||||
--hn-mist-dim: rgba(200, 190, 175, 0.75);
|
||||
--hn-gold: #e8c547;
|
||||
--hn-gold-soft: rgba(232, 197, 71, 0.35);
|
||||
--hn-aurora: rgba(120, 190, 255, 0.12);
|
||||
--hn-line: rgba(232, 197, 71, 0.22);
|
||||
--font-serif: "Cormorant Garamond", Georgia, serif;
|
||||
--font-sans: "Sora", system-ui, sans-serif;
|
||||
--nav-cut: 52rem;
|
||||
}
|
||||
|
||||
/* Import des polices (exemple avec Google Fonts) */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@400;700&family=Open+Sans:wght@400;700&family=Poppins:wght@700&family=Quicksand:wght@500;700&family=Montserrat:wght@400;700&display=swap');
|
||||
/* Si vous avez une police script/brushed spécifique, elle devra être importée ici aussi, potentiellement localement */
|
||||
.hn-brand__gold {
|
||||
color: var(--hn-gold);
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* Styles de Base */
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
color: var(--color-texte-principal);
|
||||
background-color: var(--color-blanc); /* Ou une teinte pastel très claire comme fond général */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit {
|
||||
margin: 0;
|
||||
font-family: var(--font-sans);
|
||||
font-weight: 300;
|
||||
font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
|
||||
line-height: 1.7;
|
||||
color: var(--hn-mist);
|
||||
background: var(--hn-void);
|
||||
background-image:
|
||||
radial-gradient(ellipse 120% 80% at 50% -30%, var(--hn-gold-soft), transparent 55%),
|
||||
radial-gradient(ellipse 70% 50% at 100% 20%, var(--hn-aurora), transparent 50%),
|
||||
radial-gradient(ellipse 50% 40% at 0% 80%, rgba(180, 120, 255, 0.06), transparent 45%);
|
||||
background-attachment: fixed;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--hn-gold);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
z-index: 3000;
|
||||
padding: 0.65rem 1rem;
|
||||
background: var(--hn-deep);
|
||||
color: var(--hn-gold);
|
||||
border: 1px solid var(--hn-line);
|
||||
text-decoration: none;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
left: 1rem;
|
||||
top: 1rem;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.hn-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
backdrop-filter: blur(14px);
|
||||
background: color-mix(in srgb, var(--hn-deep) 82%, transparent);
|
||||
border-bottom: 1px solid var(--hn-line);
|
||||
}
|
||||
|
||||
.hn-header__inner {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
padding: 1rem 1.25rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.hn-brand {
|
||||
font-family: var(--font-serif);
|
||||
font-weight: 500;
|
||||
font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
|
||||
letter-spacing: 0.02em;
|
||||
text-decoration: none;
|
||||
color: var(--hn-mist);
|
||||
}
|
||||
|
||||
.hn-nav {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hn-nav-toggle {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
width: 2.6rem;
|
||||
height: 2.6rem;
|
||||
padding: 0;
|
||||
border: 1px solid var(--hn-line);
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
color: var(--hn-mist);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hn-nav-toggle span {
|
||||
display: block;
|
||||
width: 1rem;
|
||||
height: 1px;
|
||||
margin: 0 auto;
|
||||
background: currentColor;
|
||||
}
|
||||
|
||||
.hn-nav-panel {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.hn-nav.is-open .hn-nav-panel {
|
||||
max-height: 24rem;
|
||||
}
|
||||
|
||||
.hn-nav-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.6;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.25rem 1.25rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: calc(var(--padding-module) * 3); /* 24px */
|
||||
max-width: 960px;
|
||||
.hn-nav-list a {
|
||||
font-size: 0.7rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.22em;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
color: var(--hn-mist-dim);
|
||||
padding: 0.35rem 0;
|
||||
border-bottom: 1px solid transparent;
|
||||
transition: color 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.hn-nav-list a:hover {
|
||||
color: var(--hn-gold);
|
||||
border-bottom-color: var(--hn-gold);
|
||||
}
|
||||
|
||||
@media (min-width: 52rem) {
|
||||
.hn-nav-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hn-nav-panel {
|
||||
max-height: none !important;
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 51.99rem) {
|
||||
.hn-nav-panel {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: calc(100% + 0.75rem);
|
||||
left: 0;
|
||||
background: color-mix(in srgb, var(--hn-deep) 96%, black);
|
||||
border: 1px solid var(--hn-line);
|
||||
padding: 1rem 1.25rem;
|
||||
}
|
||||
|
||||
.hn-nav-list {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Main */
|
||||
.hn-main {
|
||||
max-width: 80rem;
|
||||
margin: 0 auto;
|
||||
padding: 0 1rem 4rem;
|
||||
}
|
||||
|
||||
.hn-panel {
|
||||
border: 1px solid var(--hn-line);
|
||||
background: color-mix(in srgb, var(--hn-deep) 75%, transparent);
|
||||
backdrop-filter: blur(8px);
|
||||
border-radius: 2px;
|
||||
padding: clamp(1.25rem, 3vw, 2.5rem);
|
||||
}
|
||||
|
||||
.hn-panel .content {
|
||||
max-width: 42rem;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: 'Merienda', cursive; /* Police Script pour titres d'impact */
|
||||
color: var(--color-texte-principal);
|
||||
/* Peut nécessiter des ajustements de taille ou de graisse spécifiques */
|
||||
/* font-weight: 700; /* ou 400 selon le style désiré */
|
||||
/* Home */
|
||||
.hn-hero {
|
||||
min-height: clamp(22rem, 55vh, 36rem);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
padding: 3rem 0 2.5rem;
|
||||
margin-bottom: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
h2, h3, h4, h5, h6 {
|
||||
font-family: 'Poppins', sans-serif; /* Pour les sous-titres et autres titres */
|
||||
color: var(--color-texte-principal);
|
||||
.hn-hero::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 5%;
|
||||
right: 5%;
|
||||
bottom: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--hn-gold), transparent);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* Accroches et sous-titres (exemples) */
|
||||
.accroche {
|
||||
font-family: 'Quicksand', sans-serif;
|
||||
font-weight: 700;
|
||||
color: var(--color-texte-secondaire);
|
||||
.hn-hero__kicker {
|
||||
font-size: 0.65rem;
|
||||
letter-spacing: 0.35em;
|
||||
text-transform: uppercase;
|
||||
color: var(--hn-gold);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-corail-leger); /* Corail léger pour les liens */
|
||||
text-decoration: none;
|
||||
.hn-hero h1 {
|
||||
font-family: var(--font-serif);
|
||||
font-weight: 500;
|
||||
font-size: clamp(2.4rem, 1.2rem + 5vw, 4.2rem);
|
||||
line-height: 1.05;
|
||||
max-width: 18ch;
|
||||
margin: 0 0 1.5rem;
|
||||
color: var(--hn-mist);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
.hn-hero__visual {
|
||||
margin-top: 2rem;
|
||||
max-width: 28rem;
|
||||
border: 1px solid var(--hn-line);
|
||||
padding: 0.35rem;
|
||||
background: color-mix(in srgb, var(--hn-deep) 90%, transparent);
|
||||
}
|
||||
|
||||
/* Header / Navigation */
|
||||
header nav {
|
||||
background-color: var(--color-menthe-claire); /* Menthe claire pour le header */
|
||||
padding: var(--padding-module) 0;
|
||||
}
|
||||
|
||||
header nav ul {
|
||||
list-style-type: none;
|
||||
padding: 0 calc(var(--padding-module) * 2);
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
header nav ul li {
|
||||
display: inline;
|
||||
margin-right: calc(var(--padding-module) * 2.5); /* 20px */
|
||||
}
|
||||
|
||||
header nav ul li a {
|
||||
color: var(--color-texte-principal); /* Texte plus foncé sur fond pastel clair */
|
||||
text-decoration: none;
|
||||
padding: calc(var(--padding-module) * 1.5) var(--padding-module);
|
||||
display: inline-block;
|
||||
font-family: 'Quicksand', sans-serif;
|
||||
font-weight: 700;
|
||||
border-radius: calc(var(--padding-module) / 2); /* 4px */
|
||||
}
|
||||
|
||||
header nav ul li a:hover {
|
||||
background-color: var(--color-peche-doux); /* Pêche doux au survol */
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Style pour l'image du logo sur la page d'accueil */
|
||||
.logo-accueil img {
|
||||
width: 100%;
|
||||
max-height: 400px;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
margin-bottom: calc(var(--padding-module) * 4); /* 32px */
|
||||
border-radius: var(--padding-module); /* Coins arrondis style galet */
|
||||
}
|
||||
|
||||
/* Boutons */
|
||||
button,
|
||||
input[type="submit"],
|
||||
.cta-button {
|
||||
font-family: 'Quicksand', sans-serif;
|
||||
font-weight: 700;
|
||||
background-color: var(--color-peche-doux); /* Pêche doux pour les boutons primaires */
|
||||
color: var(--color-texte-principal);
|
||||
border: none;
|
||||
padding: calc(var(--padding-module) * 1.5) calc(var(--padding-module) * 3);
|
||||
border-radius: calc(var(--padding-module) * 3); /* Forme de galet allongé */
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
margin-top: var(--padding-module);
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
.cta-button:hover {
|
||||
background-color: var(--color-rose-tendre); /* Rose tendre au survol */
|
||||
}
|
||||
|
||||
/* Formulaires (basique) */
|
||||
form div {
|
||||
margin-bottom: calc(var(--padding-module) * 2);
|
||||
}
|
||||
|
||||
form label {
|
||||
.hn-hero__visual img {
|
||||
display: block;
|
||||
margin-bottom: var(--padding-module);
|
||||
font-family: 'Quicksand', sans-serif;
|
||||
}
|
||||
|
||||
form input[type="text"],
|
||||
form input[type="email"],
|
||||
form input[type="tel"],
|
||||
form textarea {
|
||||
width: 100%;
|
||||
padding: var(--padding-module);
|
||||
border: 1px solid var(--color-menthe-claire);
|
||||
border-radius: calc(var(--padding-module) / 2); /* 4px */
|
||||
box-sizing: border-box; /* Important pour que padding ne change pas la largeur totale */
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
height: auto;
|
||||
filter: saturate(0.92) contrast(1.05);
|
||||
}
|
||||
|
||||
/* Sections de contenu - style galet */
|
||||
.content-section {
|
||||
background-color: var(--color-blanc);
|
||||
padding: calc(var(--padding-module) * 3);
|
||||
margin-bottom: calc(var(--padding-module) * 3);
|
||||
border-radius: calc(var(--padding-module) * 2); /* 16px, angles arrondis */
|
||||
box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Ombre douce */
|
||||
.hn-dual {
|
||||
display: grid;
|
||||
gap: 1.25rem;
|
||||
margin: 2.5rem 0;
|
||||
}
|
||||
|
||||
@media (min-width: 48rem) {
|
||||
.hn-dual {
|
||||
grid-template-columns: 1.2fr 1fr;
|
||||
align-items: start;
|
||||
}
|
||||
}
|
||||
|
||||
.hn-prose {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.hn-prose strong {
|
||||
font-weight: 500;
|
||||
color: var(--hn-mist);
|
||||
}
|
||||
|
||||
.hn-ethics {
|
||||
border-left: 1px solid var(--hn-line);
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
|
||||
.hn-ethics h2 {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.65rem;
|
||||
letter-spacing: 0.28em;
|
||||
text-transform: uppercase;
|
||||
font-weight: 500;
|
||||
color: var(--hn-gold);
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
.hn-ethics ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.hn-ethics li {
|
||||
position: relative;
|
||||
padding: 0.65rem 0 0.65rem 1.25rem;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||
font-size: 0.9rem;
|
||||
color: var(--hn-mist-dim);
|
||||
}
|
||||
|
||||
.hn-ethics li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
margin-top: -3px;
|
||||
border-radius: 50%;
|
||||
background: var(--hn-gold);
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.hn-ethics strong {
|
||||
display: block;
|
||||
color: var(--hn-mist);
|
||||
font-weight: 500;
|
||||
margin-bottom: 0.15rem;
|
||||
}
|
||||
|
||||
.hn-constellation {
|
||||
position: relative;
|
||||
padding: 2.5rem 0;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.hn-constellation::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.35), transparent),
|
||||
radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.25), transparent),
|
||||
radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.2), transparent),
|
||||
radial-gradient(1px 1px at 88% 65%, rgba(232, 197, 71, 0.4), transparent),
|
||||
radial-gradient(1px 1px at 12% 80%, rgba(255, 255, 255, 0.18), transparent);
|
||||
pointer-events: none;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.hn-constellation-inner {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 40rem;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.hn-constellation-inner h2 {
|
||||
font-family: var(--font-serif);
|
||||
font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.35rem);
|
||||
font-weight: 500;
|
||||
margin-top: 0;
|
||||
color: var(--hn-mist);
|
||||
}
|
||||
|
||||
.hn-constellation-inner a {
|
||||
color: var(--hn-gold);
|
||||
}
|
||||
|
||||
.hn-cta {
|
||||
text-align: center;
|
||||
padding: 3rem 1.5rem;
|
||||
margin-top: 2rem;
|
||||
border: 1px solid var(--hn-line);
|
||||
background: linear-gradient(160deg, color-mix(in srgb, var(--hn-deep) 90%, transparent), rgba(232, 197, 71, 0.06));
|
||||
}
|
||||
|
||||
.hn-cta h2 {
|
||||
font-family: var(--font-serif);
|
||||
font-weight: 500;
|
||||
font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem);
|
||||
margin-top: 0;
|
||||
color: var(--hn-mist);
|
||||
}
|
||||
|
||||
.hn-cta p {
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--hn-mist-dim);
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.hn-btn {
|
||||
display: inline-block;
|
||||
margin: 0.35rem 0.5rem;
|
||||
padding: 0.65rem 1.4rem;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
color: var(--hn-gold);
|
||||
border: 1px solid var(--hn-gold);
|
||||
background: transparent;
|
||||
transition: background 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.hn-btn:hover {
|
||||
background: var(--hn-gold);
|
||||
color: var(--hn-void);
|
||||
}
|
||||
|
||||
/* Inner pages */
|
||||
body.theme-horizon-nuit h1,
|
||||
body.theme-horizon-nuit h2,
|
||||
body.theme-horizon-nuit h3 {
|
||||
font-family: var(--font-serif);
|
||||
font-weight: 500;
|
||||
color: var(--hn-mist);
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit .logo-accueil img {
|
||||
border: 1px solid var(--hn-line);
|
||||
padding: 0.25rem;
|
||||
background: color-mix(in srgb, var(--hn-deep) 80%, transparent);
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit .content-section {
|
||||
border: 1px solid var(--hn-line);
|
||||
background: color-mix(in srgb, var(--hn-deep) 70%, transparent);
|
||||
padding: 1.25rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit a {
|
||||
color: var(--hn-gold);
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit .cta-button {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.68rem;
|
||||
letter-spacing: 0.18em;
|
||||
text-transform: uppercase;
|
||||
border: 1px solid var(--hn-gold);
|
||||
background: transparent;
|
||||
color: var(--hn-gold);
|
||||
padding: 0.6rem 1.2rem;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit .cta-button:hover {
|
||||
background: var(--hn-gold);
|
||||
color: var(--hn-void);
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit form label {
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--hn-mist-dim);
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit form input,
|
||||
body.theme-horizon-nuit form textarea {
|
||||
background: color-mix(in srgb, var(--hn-void) 60%, transparent);
|
||||
border: 1px solid var(--hn-line);
|
||||
color: var(--hn-mist);
|
||||
}
|
||||
|
||||
body.theme-horizon-nuit button,
|
||||
body.theme-horizon-nuit input[type="submit"] {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.68rem;
|
||||
letter-spacing: 0.18em;
|
||||
text-transform: uppercase;
|
||||
border: 1px solid var(--hn-gold);
|
||||
background: transparent;
|
||||
color: var(--hn-gold);
|
||||
padding: 0.55rem 1.1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
background-color: var(--color-jaune-pale); /* Jaune pâle pour le footer */
|
||||
padding: calc(var(--padding-module) * 2.5) 0;
|
||||
.hn-footer {
|
||||
margin-top: 3rem;
|
||||
padding: 2rem 1rem;
|
||||
border-top: 1px solid var(--hn-line);
|
||||
text-align: center;
|
||||
border-top: 1px solid var(--color-peche-doux);
|
||||
margin-top: calc(var(--padding-module) * 5);
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
color: var(--hn-mist-dim);
|
||||
}
|
||||
|
||||
footer p {
|
||||
margin: var(--padding-module) 0;
|
||||
font-size: 0.9em;
|
||||
.hn-footer nav {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: var(--color-texte-secondaire);
|
||||
}
|
||||
.hn-footer a {
|
||||
color: var(--hn-mist-dim);
|
||||
text-decoration: none;
|
||||
margin: 0 0.75rem;
|
||||
}
|
||||
|
||||
.hn-footer a:hover {
|
||||
color: var(--hn-gold);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
(function () {
|
||||
var nav = document.getElementById("hn-nav");
|
||||
if (!nav) return;
|
||||
var toggle = document.getElementById("hn-nav-toggle");
|
||||
var mq = window.matchMedia("(max-width: 51.99rem)");
|
||||
|
||||
function setOpen(open) {
|
||||
nav.classList.toggle("is-open", open);
|
||||
if (toggle) {
|
||||
toggle.setAttribute("aria-expanded", open ? "true" : "false");
|
||||
toggle.setAttribute("aria-label", open ? "Fermer le menu" : "Ouvrir le menu");
|
||||
}
|
||||
}
|
||||
|
||||
if (toggle) {
|
||||
toggle.addEventListener("click", function () {
|
||||
var next = !nav.classList.contains("is-open");
|
||||
setOpen(next);
|
||||
if (next) {
|
||||
var first = nav.querySelector(".hn-nav-list a");
|
||||
if (first) requestAnimationFrame(function () { first.focus(); });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener("keydown", function (e) {
|
||||
if (e.key === "Escape" && nav.classList.contains("is-open")) {
|
||||
setOpen(false);
|
||||
if (toggle) toggle.focus();
|
||||
}
|
||||
});
|
||||
|
||||
nav.querySelectorAll(".hn-nav-list a").forEach(function (a) {
|
||||
a.addEventListener("click", function () {
|
||||
if (mq.matches) setOpen(false);
|
||||
});
|
||||
});
|
||||
|
||||
mq.addEventListener("change", function (ev) {
|
||||
if (!ev.matches) setOpen(false);
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user