Initial commit

This commit is contained in:
2026-05-12 23:33:46 +02:00
commit ccf32dcece
104 changed files with 17439 additions and 0 deletions

164
scss/_author.scss Normal file
View File

@@ -0,0 +1,164 @@
// ====================================
// AUTHOR PROFILE PAGE
// ====================================
.author-header {
display: flex;
gap: 2rem;
align-items: flex-start;
margin: 2rem 0;
}
.author-avatar {
flex-shrink: 0;
img {
width: 140px;
height: 140px;
object-fit: cover;
@media ($tablet) {
width: 180px;
height: 180px;
}
}
}
.author-identity {
h2 {
margin-top: 0;
}
& + .author-bio {
margin-top: 2rem;
}
}
.author-role {
font-family: $font-primary;
margin-top: 0.4rem;
opacity: 0.85;
line-height: 1.4;
}
.author-bio {
margin-bottom: 1.5rem;
line-height: 1.6;
> p {
margin: 0.8rem 0;
}
hr {
display: none;
}
h3 {
font-family: $font-primary;
text-transform: uppercase;
}
}
.author-resume-these {
margin-top: 1rem;
line-height: 1.6;
> p {
margin: 0.8rem 0;
}
}
.author-cat-footer {
display: flex;
justify-content: center;
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid $light-gray;
}
.author-titre-these {
font-family: $font-heading;
font-size: 1.4rem;
line-height: 1.3 !important;
margin-bottom: 0.8rem;
}
.these-inline-title {
text-transform: uppercase;
}
// WYSIWYG article-fields (domaines de recherches, recherches en cours):
// the wpautop'd <p> follows the inline title — give it a small breathing space.
.domaines-autres,
.recherches-en-cours {
> p:first-of-type {
margin-top: 0.4rem;
}
}
// ── Author posts dropdowns ────────────────────────────────────
.author-posts-section {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 5rem;
}
.author-posts-header {
display: flex;
align-items: center;
gap: 1.2rem;
padding: 0.8rem;
background-color: $light-gray;
cursor: pointer;
transition: background-color 0.15s;
font-family: $font-primary;
text-transform: uppercase;
&:hover {
background-color: $less-light-gray;
}
}
.author-posts-chevron {
font-size: 1.2rem;
transition: transform 0.2s;
flex-shrink: 0;
margin-left: auto;
.author-posts-item.is-open & {
transform: rotate(180deg);
}
}
.author-posts-content {
padding: 1rem;
background-color: $light-light-gray;
position: relative;
padding-bottom: 3rem;
&::after {
@include yellow-gradient-after;
}
article a {
text-decoration: none !important;
h2 {
margin-top: 0 !important;
}
}
}
.author-post-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
width: 100%;
h2::after {
display: none;
}
@media ($tablet) {
grid-template-columns: repeat(2, 1fr);
}
}

3
scss/_base.scss Normal file
View File

@@ -0,0 +1,3 @@
#wpadminbar {
position: fixed !important;
}

557
scss/_category.scss Normal file
View File

@@ -0,0 +1,557 @@
// Category archive pages
.category-archive {
margin-top: 0;
.category-header-top {
display: flex;
justify-content: space-between;
flex-direction: column;
align-items: start;
.breadcrumb {
font-size: 0.85rem;
margin-bottom: 1.5rem;
text-transform: uppercase;
line-height: 1.3;
&__separator {
margin: 0 0.4rem;
}
}
@media ($tablet) {
flex-direction: row;
}
}
h1 {
font-family: Gelasio;
font-weight: normal;
font-size: 1.8rem;
position: relative;
margin-top: 2rem;
display: inline-block;
&::after {
content: '';
display: block;
position: absolute;
height: 6px;
width: 100%;
bottom: -1.2rem;
left: 0;
z-index: 2;
}
@media ($tablet) {
font-size: 2.6rem;
&::after {
bottom: -0.4rem;
}
}
}
.category--le-laboratoire h1::after {
background: linear-gradient(to bottom, transparent 0%, $laboratoire 50%);
}
.category--manifestations-scientifiques h1::after {
background: linear-gradient(to bottom, transparent 0%, $manifestations 50%);
}
.category--publications-et-productions h1::after {
background: linear-gradient(to bottom, transparent 0%, $publications 50%);
}
.category--mediation-scientifique h1::after {
background: linear-gradient(to bottom, transparent 0%, $mediations 50%);
}
.category--ressources h1::after {
background: linear-gradient(to bottom, transparent 0%, $ressources 50%);
}
}
// Breadcrumb: non-category links (Accueil, etc.) underlined in muted gray
.breadcrumb a:not(.breadcrumb__cat) { text-decoration: underline; text-decoration-color: $less-light-gray; text-underline-offset: 3px; }
// Breadcrumb category color underlines — links and current page indicator
.category--le-laboratoire .breadcrumb__cat,
.category--le-laboratoire .breadcrumb__current { text-decoration: underline; text-decoration-color: $laboratoire; text-underline-offset: 3px; }
.category--manifestations-scientifiques .breadcrumb__cat,
.category--manifestations-scientifiques .breadcrumb__current { text-decoration: underline; text-decoration-color: $manifestations; text-underline-offset: 3px; }
.category--publications-et-productions .breadcrumb__cat,
.category--publications-et-productions .breadcrumb__current { text-decoration: underline; text-decoration-color: $publications; text-underline-offset: 3px; }
.category--mediation-scientifique .breadcrumb__cat,
.category--mediation-scientifique .breadcrumb__current { text-decoration: underline; text-decoration-color: $mediations; text-underline-offset: 3px; }
.category--ressources .breadcrumb__cat,
.category--ressources .breadcrumb__current { text-decoration: underline; text-decoration-color: $ressources; text-underline-offset: 3px; }
.category-archive {
.taxonomy-description {
font-family: $font-primary;
margin-top: 2rem;
line-height: 1.6;
max-width: 70ch;
a {
text-decoration: underline;
}
p {
margin-bottom: 1rem;
line-height: 1.6;
strong {
font-weight: bold;
}
em {
font-style: italic;
}
&:first-child {
margin-top: 0 !important;
}
}
ul, ol {
line-height: 1.6;
padding-left: 0.8rem;
}
ul {
list-style: inside "· ";
}
ol {
list-style: inside decimal;
}
blockquote{
padding-left: 1rem;
margin-left: 1.5rem;
border-left: solid 1px $light-gray;
}
}
.subcategory-section {
margin-top: 5rem;
&:first-of-type {
margin-top: 2rem;
}
.subcategory-section__title {
font-family: NewsCycle;
text-transform: uppercase;
position: relative;
display: inline-block;
margin-bottom: 2rem;
font-size: 1.2rem;
&::after {
@include yellow-gradient-after(10px);
bottom: -10px;
}
}
.post-grid {
display: grid;
align-items: start;
grid-template-columns: 1fr;
gap: 2rem;
width: 100%;
.post-card {
min-width: 0;
}
@media ($tablet) {
grid-template-columns: repeat(2, 1fr);
}
@media ($desktop) {
grid-template-columns: repeat(3, 1fr);
}
}
.category-section-footer {
margin-top: 3rem;
display: flex;
justify-content: center;
}
}
}
/*
.category-header {
width: 100%;
margin-bottom: 3vh;
&__back {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.9rem;
text-decoration: none;
margin-bottom: 1rem;
i {
font-size: 1.1rem;
}
}
&__title {
font-size: 2rem;
margin-bottom: 0.5rem;
@media ($tablet) {
font-size: 2.5rem;
}
}
&__description {
color: $less-dark-gray;
}
}
// Sub-category sections on parent category page
.subcategory-section {
width: 100%;
margin-bottom: 4vh;
&__header {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 2vh;
border-bottom: 2px solid $publications;
padding-bottom: 0.5rem;
}
&__title {
font-size: 1.5rem;
a {
text-decoration: none;
}
}
&__see-all {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.9rem;
text-decoration: none;
white-space: nowrap;
}
&__empty {
color: $less-less-light-gray;
font-style: italic;
}
}
// Post grid
.post-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
width: 100%;
@media ($tablet) {
grid-template-columns: repeat(2, 1fr);
}
@media ($desktop) {
grid-template-columns: repeat(3, 1fr);
}
}
// Post card
.post-card {
background-color: white;
display: flex;
flex-direction: column;
overflow: hidden;
&__image {
width: 100%;
aspect-ratio: 4 / 3;
overflow: hidden;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
&__content {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
}
&__title {
font-size: 1.1rem;
line-height: 1.3;
a {
text-decoration: none;
}
}
&__subtitle {
font-size: 0.9rem;
color: $less-dark-gray;
font-style: italic;
}
&__date {
font-size: 0.8rem;
color: $less-less-light-gray;
}
&__authors {
font-size: 0.9rem;
display: flex;
flex-wrap: wrap;
gap: 0.2rem;
.post-card__author {
&:not(:last-child)::after {
content: ',';
}
}
&--external {
color: $less-dark-gray;
}
}
&__role,
&__publisher,
&__journal {
font-size: 0.85rem;
color: $less-dark-gray;
}
&__axes,
&__tags {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
}
&__axe,
&__tag {
font-size: 0.75rem;
background-color: $light-gray;
padding: 0.15rem 0.5rem;
}
&__axe {
border-left: 2px solid $publications;
}
&__links {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.3rem;
}
&__link {
font-size: 0.8rem;
&--hal {
color: $publications;
}
}
}
// Infinite scroll spinner
.scroll-spinner {
display: flex;
justify-content: center;
align-items: center;
gap: 0.4rem;
padding: 2rem 0;
&__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: $publications;
animation: scroll-spinner-bounce 1.2s infinite ease-in-out;
&:nth-child(2) {
animation-delay: 0.2s;
}
&:nth-child(3) {
animation-delay: 0.4s;
}
}
}
@keyframes scroll-spinner-bounce {
0%, 80%, 100% {
transform: scale(0.6);
opacity: 0.4;
}
40% {
transform: scale(1);
opacity: 1;
}
}
*/
// ── Agenda slider view ────────────────────────────────────────────────────────
.agenda-view-container {
display: none;
margin-top: 3rem;
&.is-active { display: block; }
}
.agenda-view-title {
font-family: NewsCycle;
text-transform: uppercase;
position: relative;
display: inline-block;
margin-bottom: 2rem;
font-size: 1.2rem;
&::after {
@include yellow-gradient-after(10px);
bottom: -10px;
}
}
.agenda-swiper-wrap {
display: flex;
align-items: center;
gap: 0.8rem;
margin-top: 2rem;
}
.agenda-swiper {
flex: 1;
overflow: hidden;
}
.agenda-swiper-prev,
.agenda-swiper-next {
flex-shrink: 0;
background: none;
border: none;
cursor: pointer;
font-size: 1.2rem;
padding: 0.4rem;
color: $dark-gray;
line-height: 1;
&:hover { color: black; }
&.swiper-button-disabled {
opacity: 0.25;
pointer-events: none;
}
}
.agenda-card {
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;
padding-bottom: 1.5rem;
border-bottom: 1px solid $light-gray;
height: 100%;
position: relative;
transition: transform 0.2s ease-out;
margin-right: 0 !important;
// Timeline line running through the center of the date boxes
&::before {
content: '';
position: absolute;
top: 1.7rem;
left: 0;
right: 0;
height: 1px;
background-color: $less-light-gray;
z-index: 0;
width: calc(100% + 20px);
@media ($tablet) {
width: calc(100% + 24px);
}
@media ($desktop) {
width: calc(100% + 32px);
}
}
&:hover { transform: scale(0.98); }
&__dates {
display: flex;
align-items: flex-start;
gap: 0.5rem;
margin-bottom: 1rem;
}
&__body { flex: 1; }
&__meta {
display: flex;
flex-wrap: wrap;
gap: 0.3rem 0.8rem;
font-family: $font-primary;
font-size: 0.75rem;
text-transform: uppercase;
opacity: 0.65;
margin-bottom: 0.5rem;
}
&__title {
font-family: $font-heading;
font-size: 1rem;
line-height: 1.35;
}
}
// Category-specific accent color on agenda card border + date box gradient
.category--manifestations-scientifiques .agenda-card { border-bottom-color: $manifestations; }
.category--le-laboratoire .agenda-card { border-bottom-color: $laboratoire; }
.category--publications-et-productions .agenda-card { border-bottom-color: $publications; }
.category--mediation-scientifique .agenda-card { border-bottom-color: $mediations; }
.category--ressources .agenda-card { border-bottom-color: $ressources; }
.category--manifestations-scientifiques .agenda-date-box { @include category-gradient($manifestations); }
.category--le-laboratoire .agenda-date-box { @include category-gradient($laboratoire); }
.category--publications-et-productions .agenda-date-box { @include category-gradient($publications); }
.category--mediation-scientifique .agenda-date-box { @include category-gradient($mediations); }
.category--ressources .agenda-date-box { @include category-gradient($ressources); }
.agenda-date-box {
position: relative;
z-index: 1;
background-color: $light-gray;
font-family: $font-primary;
text-transform: uppercase;
text-align: center;
padding: 0.4rem 0.55rem;
flex-shrink: 0;
min-width: 2.6rem;
.agenda-date-day { display: block; font-size: 1.3rem; line-height: 1; }
.agenda-date-month { display: block; font-size: 0.65rem; margin-top: 2px; }
.agenda-date-year { display: block; font-size: 0.6rem; opacity: 0.65; }
sup {
font-size: 0.7rem;
}
}
.agenda-date-arrow {
font-size: 0.85rem;
opacity: 0.5;
}

344
scss/_filters.scss Normal file
View File

@@ -0,0 +1,344 @@
.filters-bar {
margin-top: 2.5rem;
display: flex;
align-items: center;
gap: 0.8rem;
flex-wrap: wrap;
position: relative;
padding-bottom: 0.6rem;
&::after {
content: '';
position: absolute;
bottom: 0;
left: -5vw;
width: calc(100% + 10vw);
height: 1px;
background-color: $light-gray;
}
@media ($tablet) {
&::after {
left: -3vw;
width: calc(100% + 6vw);
}
}
}
.filters-toggle-btn {
display: flex;
align-items: center;
gap: 0.5rem;
font-family: $font-primary;
font-size: 0.9rem;
text-transform: uppercase;
background-color: $light-gray;
border: unset;
cursor: pointer;
padding: 0.4rem 0.8rem;
color: $dark-gray;
flex-shrink: 0;
.filters-chevron {
transition: transform 0.2s;
}
&.is-open .filters-chevron {
transform: rotate(180deg);
}
&:hover {
background-color: $less-light-gray;
}
}
.filters-active-chips {
display: flex;
align-items: center;
gap: 0.4rem;
flex-wrap: wrap;
}
.filter-chip {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-family: $font-primary;
font-size: 0.8rem;
text-transform: uppercase;
background-color: $light-gray;
padding: 0.3rem 0.5rem;
text-decoration: none;
color: $dark-gray;
border: none;
cursor: pointer;
i {
font-size: 0.7rem;
opacity: 0.5;
}
&:hover {
background-color: $less-light-gray;
i { opacity: 1; }
}
}
.category-filters {
font-size: 0.9rem;
font-family: $font-primary;
margin-top: 0;
display: none;
padding: 2rem 5vw;
padding-bottom: 0.5rem !important;
margin-left: -5vw;
width: calc(100% + 10vw);
justify-content: space-between;
background-color: $light-light-gray;
border-top: solid 1px $light-gray;
border-bottom: solid 1px $light-gray;
flex-direction: column;
&.is-open {
display: flex;
}
> div {
margin-top: 1.2rem;
margin-bottom: 1.2rem;
flex: auto;
&.filtre-rubrique {
flex: 2;
}
&.filtre-categorie {
flex: 1;
}
&.filtre-date {
flex: 1;
}
&.filtre-axe {
flex: 1;
}
&:first-of-type {
margin-top: 0;
padding-left: 0;
}
&:last-of-type {
margin-bottom: 0;
}
&:not(:last-of-type) {
padding-bottom: 1.8rem;
border-bottom: solid 1px $less-light-gray;
}
.filter-section-header {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 2rem;
}
.section-title {
text-transform: uppercase;
position: relative;
display: inline-block;
&::after {
@include yellow-gradient-after(10px);
bottom: -10px;
}
}
ul {
display: flex;
justify-content: start;
flex-wrap: wrap;
align-items: start;
gap: 0.5rem 0.2rem;
list-style: none;
margin: 0;
padding: 0;
li {
font-size: 1rem;
cursor: pointer;
padding: 0.4rem 0.6rem;
a {
text-decoration: none;
}
&:hover,
&.is-active {
background-color: $less-light-gray;
}
}
}
}
.filter-dd {
position: relative;
margin-top: 0;
display: inline-block;
.dd-title {
padding: 0.3rem 0.5rem;
display: flex;
align-items: center;
gap: 0.4rem;
cursor: pointer;
> p,
> i {
font-size: 0.9rem;
}
> i {
transition: transform 0.2s;
}
}
&.is-open .dd-title > i {
transform: rotate(180deg);
}
&.is-active .dd-title {
background-color: $less-light-gray;
}
.dd-content {
position: absolute;
padding: 0;
z-index: 5;
background: white;
border: 1px solid $less-light-gray;
min-width: 100%;
ul {
gap: 0.3rem;
padding: 0.5rem;
li {
padding: 0.4rem;
white-space: nowrap;
background-color: $light-gray;
}
}
&#filter-axe-popover {
right: auto;
left: 0;
min-width: 280px;
max-width: min(420px, 90vw);
ul {
flex-direction: column;
padding: 0;
gap: 0;
li {
width: 100%;
margin: 0;
white-space: normal;
&:nth-of-type(odd) {
background-color: white;
}
&:first-of-type {
background-color: $less-light-gray;
}
&.dd-axe-group-label {
font-size: 0.72rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: $less-dark-gray;
background-color: $light-gray !important;
padding: 0.5rem 0.4rem;
cursor: default;
pointer-events: none;
border-top: solid 1px $less-light-gray;
&:first-child {
margin-top: 0;
}
}
}
}
}
}
.dd-date-fields {
padding: 0.6rem;
padding-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
border-top: 1px solid $less-light-gray;
label {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.85rem;
text-transform: uppercase;
}
input[type="date"] {
padding: 0.2rem 0.4rem;
border: 1px solid $less-light-gray;
font-size: 0.85rem;
font-family: $font-primary;
}
}
.dd-date-apply {
margin-top: 0.6rem;
width: 100%;
padding: 0.3rem;
border: none;
font-size: 0.85rem;
font-family: $font-primary;
text-transform: uppercase;
cursor: pointer;
}
}
.membres-search-input.is-active {
background-color: $less-light-gray;
}
.date-reset-link {
display: block;
font-size: 0.75rem;
text-transform: uppercase;
text-decoration: none;
color: inherit;
opacity: 0.6;
padding: 0 0.5rem 0.4rem;
&:hover {
opacity: 1;
}
}
@media ($tablet) {
padding: 2rem 3vw;
margin-left: -3vw;
width: calc(100% + 6vw);
flex-direction: row;
> div {
margin-top: 0;
margin-bottom: 0;
padding-left: 1.5rem;
&:not(:last-of-type) {
padding-right: 0.8rem;
border-bottom: unset;
border-right: solid 1px $less-light-gray;
}
}
}
}

55
scss/_footer.scss Normal file
View File

@@ -0,0 +1,55 @@
footer {
background-color: white;
width: 100%;
padding: 1rem 2rem;
margin-top: auto;
}
.footer-content {
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap: 2rem;
@media ($tablet) {
gap: unset;
flex-direction: row;
}
}
.footer-nav {
ul#menu-footer,
ul#menu-footer-en {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.5rem 2rem;
@media ($tablet) {
justify-content: start;
}
li {
a {
text-transform: uppercase;
font-size: 0.75rem;
}
}
}
}
.footer-logos {
display: inline-flex;
height: 3rem;
gap: 1rem;
padding: 0.5rem;
align-items: start;
> a {
height: 100%;
> img {
height: 100%;
}
}
}

330
scss/_header.scss Normal file
View File

@@ -0,0 +1,330 @@
body >
header {
display: flex;
flex-direction: column-reverse;
justify-content: space-between;
transition: height 0.3s ease-out;
background-color: white;
width: 100%;
position: relative;
z-index: 5;
@media ($tablet) {
position: fixed;
height: 12vh;
min-height: 100px;
max-height: 130px;
flex-direction: row;
}
}
.header-left {
display: flex;
height: 6rem;
margin-top: 3rem;
@media ($tablet) {
margin-top: unset;
height: 100%;
}
}
.main-logo-container {
display: inline-block;
background-color: $light_gray;
height: 100%;
@media ($tablet) {
flex-direction: row;
}
}
.main-logo {
display: inline-block;
padding: 0.3rem 0.6rem;
height: 100%;
@include hover-gradient-background;
@media ($tablet) {
padding: 1.5rem 2rem;
}
> img,
> a > img {
height: 100%;
transform: scale(1);
transition: transform 0.2s ease-out;
@media ($tablet) {
}
}
&:hover > img,
&:hover > a > img {
transform: scale(1.05);
}
}
.description {
display: flex;
flex-direction: column;
align-items: start;
justify-content: center;
gap: 0.3rem;
margin-left: 1.2rem;
opacity: 1;
transition: opacity 0.2s ease-out;
> div:first-of-type {
text-transform: uppercase;
font-size: 0.8rem;
background-color: $light_gray;
padding: 0.2rem;
}
> div:last-of-type {
font-size: 0.8rem;
> sup {
font-size: 0.6rem;
vertical-align: super;
}
}
}
.header-right {
display: flex;
align-items: center;
gap: 2rem;
justify-content: space-between;
position: fixed;
width: 100%;
background-color: white;
height: 3rem;
@media ($tablet) {
padding-left: unset;
height: unset;
position: relative;
width: unset;
}
&.scrolled {
.secondary-logo-container {
max-width: 40vw;
.main-logo:hover {
background-position: unset;
img {
transform: unset;
}
}
}
}
}
.secondary-logo-container {
height: 100%;
max-width: 0;
overflow: hidden;
transition: max-width 0.6s ease-out;
@media ($tablet) {
display: none;
}
}
.lang-switch {
text-transform: uppercase;
font-size: 0.8rem;
transition: font-size 0.2s ease-out;
> ul {
display: flex;
gap: 1rem;
> li:not(.active) {
> a {
text-decoration: none;
}
}
}
}
.search-button {
margin-left: auto;
> div {
background-color: $light_gray;
padding: 0.5rem;
border-radius: 5rem;
min-width: 2rem;
aspect-ratio: 1 / 1;
display: flex;
justify-content: center;
align-items: center;
transition: background-color 0.3s ease-out;
cursor: pointer;
&:hover {
background-color: $less_light-gray;
}
}
}
.menu-toggle {
display: inline-block;
background-color: $light_gray;
width: fit-content;
height: 100%;
> div {
height: 100%;
display: flex;
padding: 0.5rem;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap: 0.3rem;
@include hover-gradient-background;
@media ($tablet) {
gap: unset;
padding: 2rem;
}
> div {
font-size: 1rem;
transform: scale(1);
transition: transform 0.2s ease-out, font-size 0.2s ease-out;
@media ($tablet) {
font-size: 2rem;
}
}
> p {
font-family: NewsCycle;
text-transform: uppercase;
transform: scale(1);
font-size: 0.8rem;
transition: transform 0.2s ease-out, font-size 0.2s ease-out;
@media ($tablet) {
font-size: 1rem;
}
}
}
&:hover > div > div,
&:hover > div > p {
transform: scale(0.9);
}
}
.search-panel {
position: absolute;
right: 0;
width: 100%;
background-color: white;
z-index: 4;
border-top: 2px solid $light-gray;
transition: top 0.4s ease-out, opacity 0.2s ease-out;
opacity: 0;
pointer-events: none;
@media ($tablet) {
position: fixed;
width: 33.333%;
}
&.active {
opacity: 1;
pointer-events: all;
}
&__inner {
padding: 2rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
&__title {
font-family: $font-primary;
font-size: 1.1rem;
text-transform: uppercase;
display: inline-block;
align-self: start;
position: relative;
line-height: 1.6;
&::after {
@include yellow-gradient-after;
bottom: -10px;
}
}
&__desc {
font-family: $font-primary;
color: $less-dark-gray;
}
&__input-wrap {
position: relative;
}
&__icon-btn {
position: absolute;
right: 0.8rem;
top: 50%;
transform: translateY(-50%);
color: $less-dark-gray;
background: none;
border: none;
padding: 0;
cursor: pointer;
line-height: 1;
&:hover {
color: $dark-gray;
}
}
&__input {
width: 100%;
border: none;
padding: 0.6rem 2.5rem 0.6rem 0.8rem;
font-family: $font-primary;
font-size: 0.85rem;
outline: none;
background-color: $light-gray;
&::placeholder {
color: $less-dark-gray;
text-transform: uppercase;
}
&:focus {
border-color: $less-light-gray;
}
}
&__submit {
display: block;
margin-left: auto;
background-color: $light-gray;
padding: 0.5rem 1rem;
font-family: $font-primary;
font-size: 0.85rem;
text-transform: uppercase;
cursor: pointer;
margin-top: 1rem;
border: none;
&:hover {
background-color: $less-light-gray;
}
}
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: $less_light-gray;
opacity: 0;
z-index: 3;
pointer-events: none;
transition: opacity 0.3s ease-out;
&.active {
opacity: 0.6;
pointer-events: all;
}
}

562
scss/_index.scss Normal file
View File

@@ -0,0 +1,562 @@
.hero-header {
display: flex;
flex-direction: column-reverse;
position: relative;
@media ($tablet) {
flex-direction: row;
}
}
.hero-logos {
position: absolute;
top: 2.5vh;
display: inline-flex;
height: 3rem;
gap: 1rem;
padding: 0.5rem;
align-items: start;
background-color: $light_gray;
@media ($tablet) {
position: unset;
top: unset;
}
> a {
height: 100%;
> img {
height: 100%;
}
&:nth-of-type(2) {
mix-blend-mode: darken;
}
}
}
.color-changer {
transition: color 0.3s ease-out;
}
.hero-presentation {
font-family: $font-heading;
font-size: 1.6rem;
line-height: 1.1;
@media ($tablet) {
margin-top: 2rem;
font-size: 2.6rem;
}
}
.hero-presentation-detail {
margin-top: 1.5rem;
width: 90%;
}
.hero-content > .link-button {
margin-top: 2.5rem;
}
.hero-content {
@media ($tablet) {
width: 75%;
}
}
// ====================================
// SKETCH
// ====================================
#sketch {
z-index: 0;
position: relative;
display: block;
height: 200px;
// background-color: white;
@media ($tablet) {
height: unset;
width: 25%;
margin-top: 0 !important;
}
}
// Floating shapes (DOM-based implementation)
.floating-shape {
position: absolute;
top: 0;
left: 0;
transform-origin: top left;
will-change: transform;
pointer-events: none;
svg {
overflow: visible;
}
path, polyline, polygon, line, circle, ellipse, rect {
transition: fill-opacity 0.5s ease-in-out;
}
}
.thalim-text {
position: absolute;
pointer-events: none;
transition: opacity 0.3s ease-out;
display: flex;
gap: 0;
z-index: 20;
font-family: 'NewsCycle', sans-serif;
font-size: 26px;
@media ($tablet) {
font-size: 48px;
}
}
// ====================================
// END SKETCH
// ====================================
// ====================================
// SWIPER SECTIONS (annonces, publications…)
// ====================================
.swiper-section {
margin-top: 3rem;
position: relative;
.section-title {
font-family: NewsCycle;
text-transform: uppercase;
position: relative;
display: inline-block;
margin-bottom: 2rem;
&::after {
@include yellow-gradient-after(10px);
bottom: -10px;
}
}
.swiper_content_controls {
display: flex;
gap: 0.8rem;
align-items: center;
margin-top: 2rem;
.swiper {
overflow: hidden;
flex: 1;
}
.swiper-button-prev,
.swiper-button-next {
position: static;
width: 2.4rem;
height: 2.4rem;
aspect-ratio: 1;
margin: 0;
background-color: $light-gray;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: $dark-gray;
transition: background-color 0.2s ease-out;
cursor: pointer;
flex-shrink: 0;
&::after {
display: none; // hide Swiper default arrow
}
&:hover {
background-color: $less-light-gray;
}
i {
font-size: 1.1rem;
line-height: 1;
}
}
}
.button-annonces {
display: flex;
justify-content: center;
margin-top: 1.2rem;
}
}
// ====================================
// END SWIPER SECTIONS
// ====================================
// ====================================
// MESSAGE DU LABORATOIRE + AGENDA
// ====================================
.message-agenda-section {
display: flex;
flex-direction: column;
width: 100%;
gap: 2rem;
margin-top: 3rem;
@media ($tablet) {
flex-direction: row;
}
}
.message-du-labo,
.agenda {
position: relative;
padding: 2.5vh 5vw;
padding-bottom: 6vh;
background-color: white;
display: flex;
flex-direction: column;
align-items: flex-start;
&::after {
@include yellow-gradient-after;
}
.section-title {
font-family: $font-primary;
text-transform: uppercase;
position: relative;
display: inline-block;
margin-bottom: 3rem;
&::after {
@include yellow-gradient-after(10px);
bottom: -10px;
}
}
@media ($tablet) {
padding: 3vh 3vw;
padding-bottom: 8vh;
}
}
.message-du-labo {
@media ($tablet) {
flex: 4;
}
}
.messages-list {
width: 100%;
@media ($tablet) {
flex: 1;
overflow: hidden;
}
}
.agenda {
@media ($tablet) {
flex: 3;
// border-left: 1px solid $light-gray;
}
}
.message-date {
font-size: 0.75rem;
color: $less-dark-gray;
display: block;
margin-bottom: 0.3rem;
}
.message-item {
& + .message-item {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid $light-gray;
}
}
.message-content {
margin-bottom: 1.5rem;
padding-right: 2rem;
position: relative;
> p {
margin: 0.7rem 0;
}
p {
margin-bottom: 1rem;
line-height: 1.6;
strong {
font-weight: bold;
}
em {
font-style: italic;
}
}
ul, ol {
line-height: 1.6;
padding-left: 0.8rem;
}
ul {
list-style: inside "· ";
}
ol {
list-style: inside decimal;
}
blockquote{
padding-left: 1rem;
margin-left: 1.5rem;
border-left: solid 1px $light-gray;
}
@media ($tablet) {
overflow: hidden;
&.is-overflowing::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 8rem;
background: linear-gradient(to bottom, transparent 0%, white 70%);
pointer-events: none;
}
}
}
.button-messages,
.button-agenda {
align-self: center;
margin-top: auto;
}
.message-read-more {
display: none;
position: absolute;
bottom: 1rem;
left: 0;
z-index: 1;
font-size: 0.85rem;
text-decoration: none;
font-family: $font-primary;
text-transform: uppercase;
.is-overflowing & {
display: inline-block;
}
}
.agenda-content {
width: 100%;
.agenda-item {
display: flex;
align-items: center;
gap: 1.5rem;
transform: scale(1);
transition: transform 0.2s ease-out;
margin-bottom: 2rem;
text-decoration: none;
color: inherit;
&:hover {
transform: scale(0.97);
}
}
.date-container {
background-color: $light-gray;
text-transform: uppercase;
font-family: $font-primary;
text-align: center;
padding: 0.5rem;
position: relative;
flex-shrink: 0;
min-width: 3rem;
> p {
position: relative;
z-index: 1;
&:first-of-type {
font-size: 1.3rem;
}
&:last-of-type {
margin-bottom: 3px;
}
}
&::after {
content: '';
display: block;
position: absolute;
height: 10px;
width: 100%;
bottom: 0;
left: 0;
background: linear-gradient(to bottom, $light-gray 0%, $manifestations 100%);
z-index: 0;
}
}
.event-content {
padding-bottom: 1rem;
border-bottom: 1px solid $manifestations;
flex: 1;
.meta {
font-family: $font-primary;
display: flex;
gap: 1rem;
padding-bottom: 0.5rem;
text-transform: uppercase;
font-size: 0.8rem;
flex-wrap: wrap;
opacity: 0.7;
}
.event-title {
font-family: $font-heading;
font-size: 1.1rem;
}
}
}
// ====================================
// END MESSAGE DU LABORATOIRE + AGENDA
// ====================================
// ====================================
// NUAGE DE MOTS-CLÉS
// ====================================
.keyword-cloud {
margin-top: 4rem;
margin-bottom: 3rem;
width: 100%;
@media ($tablet) {
margin-bottom: 0;
}
.section-title {
font-family: $font-primary;
text-transform: uppercase;
position: relative;
display: inline-block;
margin-bottom: 2rem;
&::after {
@include yellow-gradient-after(10px);
bottom: -10px;
}
}
}
#keyword-container {
position: relative;
width: 100%;
min-height: 120px;
}
.keyword {
position: absolute;
font-family: $font-primary;
font-size: 0.7rem;
text-transform: uppercase;
white-space: nowrap;
text-decoration: none;
color: $dark-gray;
opacity: 0;
cursor: pointer;
@media ($tablet) {
font-size: 0.95rem;
}
&.keyword--visible {
animation: keywordFadeIn 0.7s ease-out forwards;
}
}
@keyframes keywordFadeIn {
from {
opacity: 0;
transform: scale(0.92);
}
to {
opacity: 1;
transform: scale(1);
}
}
// ====================================
// END NUAGE DE MOTS-CLÉS
// ====================================
// Quick links widget
.quick-links {
position: fixed;
display: block;
background-color: $light-light-gray;
right: 0;
top: 35vh;
z-index: 3;
font-family: $font-primary;
max-width: 2.2rem;
overflow: hidden;
transition: max-width 0.9s ease-out, top 0.2s ease;
text-decoration: none;
z-index: 10;
@media ($tablet) {
right: 2vw;
}
@media ($desktop) {
right: 4vw;
}
> ul {
display: flex;
flex-direction: column;
align-items: end;
gap: 0.8rem;
padding: 0.8rem 0.6rem;
> li > a {
display: flex;
align-items: center;
gap: 0.8rem;
text-decoration: none;
white-space: nowrap;
&:hover {
font-weight: bold;
}
}
}
&:hover {
max-width: 40vw;
}
&::after {
content: "";
display: block;
position: absolute;
height: 10px;
width: 100%;
bottom: 0;
left: 0;
background: linear-gradient(to bottom, transparent 0%, $yellow 100%);
z-index: 2;
}
}

44
scss/_layout.scss Normal file
View File

@@ -0,0 +1,44 @@
body {
display: flex;
flex-direction: column;
height: 100vh;
background-color: $light_gray;
}
main {
width: 100vw;
display: flex;
flex-direction: column;
align-items: center;
@media ($tablet) {
margin-top: 12vh;
}
}
.container {
display: flex;
align-items: center;
justify-content: start;
flex-direction: column;
position: relative;
z-index: 1;
padding: 4vh 5vw;
max-width: 1640px;
width: 100vw;
}
.full-block {
width: 100%;
background-color: white;
padding: 2.5vh 5vw;
position: relative;
padding-bottom: 6vh;
@media ($tablet) {
padding: 3vh 3vw;
padding-bottom: 8vh;
}
&::after {
@include yellow-gradient-after;
}
}

211
scss/_membres.scss Normal file
View File

@@ -0,0 +1,211 @@
.membres-section {
margin-top: 4rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.membres-item.is-open {
position: relative;
padding-bottom: 1rem;
&::after {
@include yellow-gradient-after;
}
}
.membres-header {
display: flex;
align-items: center;
gap: 1.2rem;
padding: 0.8rem;
background-color: $light-gray;
cursor: pointer;
transition: background-color 0.15s;
font-family: $font-primary;
text-transform: uppercase;
&:hover {
background-color: $less-light-gray;
}
}
.membres-chevron {
font-size: 1.2rem;
transition: transform 0.2s;
flex-shrink: 0;
margin-left: auto;
.membres-item.is-open & {
transform: rotate(180deg);
}
}
.membres-sort-chevron {
font-size: 0.8rem;
opacity: 0.3;
transition: transform 0.2s, opacity 0.15s;
vertical-align: middle;
margin-left: 0.3rem;
}
.membres-content {
padding: 1rem;
background-color: $light-light-gray;
font-family: $font-primary;
font-size: 0.9rem;
line-height: 1.6;
}
.membres-table {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
font-size: 0.9rem;
th {
width: 33.333%;
text-align: left;
text-transform: uppercase;
font-family: $font-primary;
font-weight: normal;
font-size: 0.8rem;
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
background-color: $light-gray;
cursor: pointer;
user-select: none;
white-space: nowrap;
&:hover .membres-sort-chevron {
opacity: 0.7;
}
&.sort-asc .membres-sort-chevron {
opacity: 1;
transform: rotate(180deg);
}
&.sort-desc .membres-sort-chevron {
opacity: 1;
transform: rotate(0deg);
}
}
tbody tr {
cursor: pointer;
transition: background-color 0.15s;
background-color: white;
&.is-even-row {
background-color: $light-gray;
}
&:last-child {
border-bottom: none;
}
&:hover {
background-color: $less-light-gray;
}
}
td {
padding: 0.6rem 1.5rem 0.6rem 0.5rem;
vertical-align: top;
line-height: 1.4;
// Name column
&:first-child {
white-space: nowrap;
}
a {
text-decoration: none;
}
}
}
// Member hover popover
#membre-popover {
position: fixed;
z-index: 9999;
background: white;
pointer-events: none;
max-width: 380px;
min-width: 180px;
padding: 1rem;
font-family: $font-primary;
font-size: 0.85rem;
opacity: 0;
transition: opacity 0.1s;
border: solid 1px $light-gray;
&.is-visible {
opacity: 1;
}
.membre-popover-inner {
display: flex;
gap: 1rem;
align-items: flex-start;
}
.membre-popover-pic {
width: 80px;
height: 80px;
object-fit: cover;
object-position: top;
flex-shrink: 0;
}
.membre-popover-name {
font-size: 1.1rem;
font-weight: normal;
margin: 0 0 0.3rem;
}
.membre-popover-status {
text-transform: uppercase;
color: $less-dark-gray;
margin: 0 0 0.6rem;
}
.membre-popover-domaines {
font-size: 0.8rem;
margin: 0 0 0.3rem;
line-height: 1.5;
}
.membre-popover-autres {
font-size: 0.8rem;
margin: 0;
line-height: 1.5;
color: $less-dark-gray;
}
}
// Filter bar sizing
.filtre-role { flex: 2; }
.filtre-recherche { flex: 1; }
// Member search input
.membres-search-input {
width: 100%;
border: none;
padding: 0.6rem 0.8rem;
font-family: $font-primary;
font-size: 0.85rem;
background-color: $light-gray;
outline: none;
&::placeholder {
color: $less-dark-gray;
}
&:focus {
background-color: $less-light-gray;
}
@media ($desktop) {
width: 50%;
}
}

32
scss/_mixins.scss Normal file
View File

@@ -0,0 +1,32 @@
@mixin hover-gradient-background {
background: linear-gradient(to bottom, $light_gray 60%, $yellow 100%);
background-position: bottom 0px left 0px;
background-repeat: no-repeat;
cursor: pointer;
transition: background 0.3s ease-out, padding 0.2s ease-out;
&:hover {
background-position: bottom -10px left 0px;
}
}
@mixin yellow-gradient {
background: linear-gradient(to bottom, transparent 50%, $yellow 100%);
}
@mixin yellow-gradient-after($height: 30px) {
content: '';
display: block;
position: absolute;
height: $height;
width: 100%;
bottom: 0;
left: 0;
@include yellow-gradient;
z-index: 2;
pointer-events: none;
}
@mixin category-gradient($color) {
background: linear-gradient(to bottom, $light_gray 60%, $color);
}

205
scss/_navigation.scss Normal file
View File

@@ -0,0 +1,205 @@
.main-menu {
overflow-y: scroll;
left: 0;
width: 100%;
background-color: white;
z-index: 4;
padding-bottom: 4vh;
transition: top 0.4s ease-out, opacity 0.2s ease-out;
border-top: 2px solid $light_gray;
position: absolute;
opacity: 0;
@media ($tablet) {
overflow-y: unset;
position: fixed;
}
&::after {
@include yellow-gradient-after();
opacity: 0;
transition: opacity 0.2s ease-out 0.3s;
@media ($tablet) {
opacity: 1;
}
}
&.active {
opacity: 1;
&::after {
position: fixed;
opacity: 1;
@media ($tablet) {
position: absolute;
}
}
}
}
.menu-navigation-container,
.menu-navigation-en-container {
> ul {
display: grid;
gap: 3rem;
padding: 2rem 1.5rem;
max-width: 1400px;
margin: 0 auto;
@media ($tablet) {
padding: 3rem 4rem;
grid-template-columns: repeat(3, auto);
}
@media ($desktop) {
grid-template-columns: repeat(5, auto);
}
> li {
display: flex;
flex-direction: column;
gap: 0.8rem;
align-items: start;
> a {
text-transform: uppercase;
text-decoration: none;
position: relative;
padding-bottom: 0.8rem;
margin-bottom: 0.5rem;
&::after {
content: '';
display: block;
position: absolute;
height: 8px;
width: 100%;
bottom: 0;
left: 0;
z-index: 2;
}
}
&:nth-of-type(1) {
a:hover {
color: $laboratoire;
}
> a::after {
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, $laboratoire 100%);
}
> ul.sub-menu > li:first-of-type {
border-bottom: 1px solid $laboratoire;
padding-bottom: 0.8rem;
}
}
&:nth-of-type(2) {
a:hover {
color: $manifestations;
}
> a::after {
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, $manifestations 100%);
}
> ul.sub-menu > li:first-of-type {
border-bottom: 1px solid $manifestations;
padding-bottom: 0.8rem;
}
}
&:nth-of-type(3) {
a:hover {
color: $publications;
}
> a::after {
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, $publications 100%);
}
> ul.sub-menu > li:first-of-type {
border-bottom: 1px solid $publications;
padding-bottom: 0.8rem;
}
}
&:nth-of-type(4) {
a:hover {
color: $mediations;
}
> a::after {
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, $mediations 100%);
}
> ul.sub-menu > li:first-of-type {
border-bottom: 1px solid $mediations;
padding-bottom: 0.8rem;
}
}
&:nth-of-type(5) {
a:hover {
color: $ressources;
}
> a::after {
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, $ressources 100%);
}
> ul.sub-menu > li:first-of-type {
border-bottom: 1px solid $ressources;
padding-bottom: 0.8rem;
}
}
> ul.sub-menu {
display: flex;
flex-direction: column;
gap: 0.8rem;
> li {
> a {
text-decoration: none;
}
}
}
}
}
}
// Axes thématiques dropdown inside nav first column
.nav-axes-item {
.nav-axes-trigger {
background: none;
border: none;
padding: 0;
cursor: pointer;
font-family: $font-primary;
font-size: inherit;
color: inherit;
display: flex;
align-items: center;
gap: 0.3rem;
i {
transition: transform 0.2s ease;
}
}
&.is-open .nav-axes-trigger i {
transform: rotate(180deg);
}
.nav-axes-list {
display: none;
flex-direction: column;
gap: 0.8rem;
padding-top: 0.8rem;
li a {
font-size: 0.8rem;
padding-left: 0.5rem;
text-decoration: none;
}
}
&.is-open .nav-axes-list {
display: flex;
}
}
.menu-navigation-container,
.menu-navigation-en-container {
> ul > li:nth-of-type(1) {
.nav-axes-trigger:hover {
color: $laboratoire;
}
}
}

183
scss/_page-laboratoire.scss Normal file
View File

@@ -0,0 +1,183 @@
// ====================================
// PAGE LE LABORATOIRE
// ====================================
// ── Images ────────────────────────────────────────────────────
.labo-images {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
margin-bottom: 3rem;
}
.labo-image {
flex: 0 0 auto;
width: 100%;
margin-top: 2rem;
img {
width: 100%;
height: auto;
display: block;
}
figcaption {
font-family: $font-primary;
font-size: 0.85rem;
color: $less-dark-gray;
margin-top: 0.5rem;
}
@media ($tablet) {
width: calc(50% - 0.75rem);
}
}
// ── Section titles ────────────────────────────────────────────
.labo-section {
margin-top: 5rem;
> h3 {
font-family: $font-primary;
text-transform: uppercase;
position: relative;
display: inline-block;
margin-bottom: 2rem;
&::after {
@include yellow-gradient-after(10px);
bottom: -10px;
}
}
}
// ── Dropdown wrapper ──────────────────────────────────────────
.labo-dropdowns {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 5rem;
.labo-section & {
margin-top: 0;
}
}
// ── Dropdown item ─────────────────────────────────────────────
.labo-dropdown-item.is-open {
position: relative;
padding-bottom: 1rem;
&::after {
@include yellow-gradient-after;
}
}
.labo-dropdown-header {
display: flex;
align-items: center;
gap: 1.2rem;
padding: 0.8rem;
background-color: $light-gray;
cursor: pointer;
transition: background-color 0.15s;
font-family: $font-primary;
font-size: inherit;
font-weight: normal;
text-transform: uppercase;
margin: 0;
&:hover {
background-color: $less-light-gray;
}
}
.labo-dropdown-chevron {
font-size: 1.2rem;
transition: transform 0.2s;
flex-shrink: 0;
margin-left: auto;
.labo-dropdown-item.is-open & {
transform: rotate(180deg);
}
}
.labo-dropdown-content {
padding: 1rem 1rem 1rem 1rem;
background-color: $light-light-gray;
font-family: $font-primary;
font-size: 0.9rem;
line-height: 1.6;
p {
margin-bottom: 0.6rem;
}
p + ul {
margin-top: -1rem;
}
ul, ol {
padding-left: 1.2rem;
margin-bottom: 0.6rem;
}
}
// ── Axes list ─────────────────────────────────────────────────
.labo-axes-list {
list-style: none;
padding: 0;
margin: 0;
li {
padding: 0.5rem 0;
border-bottom: 1px solid $light-gray;
&:last-child {
border-bottom: none;
}
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
}
// ── Bibliothèques ─────────────────────────────────────────────
.labo-bibliotheques {
font-family: $font-primary;
font-size: 0.9rem;
line-height: 1.6;
p {
margin-bottom: 0.8rem;
}
p + ul {
margin-top: -1rem;
margin-bottom: 0.6rem;
}
a {
text-decoration: underline;
}
}
// ── Programme de recherche ────────────────────────────────────
.programme-description {
margin-bottom: 1.5rem;
p { margin-bottom: 0.6rem; }
ul, ol { padding-left: 1.2rem; }
a { text-decoration: underline; }
}
.programme-link {
padding-top: 0.5rem;
border-top: 1px solid $light-gray;
}

114
scss/_postcard.scss Normal file
View File

@@ -0,0 +1,114 @@
.post-card {
padding-bottom: 0.8rem;
border-bottom: solid 1px;
// Category-specific gradients
&.gradient--le-laboratoire {
.gradient-container {
@include category-gradient($laboratoire);
}
border-color: $laboratoire
}
&.gradient--manifestations-scientifiques {
.gradient-container {
@include category-gradient($manifestations);
}
border-color: $manifestations;
}
&.gradient--publications-et-productions {
.gradient-container {
@include category-gradient($publications);
}
border-color: $publications;
}
&.gradient--mediation-scientifique {
.gradient-container {
@include category-gradient($mediations);
}
border-color: $mediations
}
&.gradient--ressources {
.gradient-container {
@include category-gradient($ressources);
}
border-color: $ressources
}
&:hover {
.gradient-container {
img, h2 {
transform: scale(0.98);
}
}
}
.gradient-container {
height: 25vh;
padding: 0.7rem;
display: flex;
align-items: center;
justify-content: center;
text-decoration: unset;
img {
max-height: 100%;
transition: transform 0.2s ease-out;
transform: scale(1);
max-width: 100%;
}
h2 {
font-family: Gelasio;
font-size: 1.7rem;
line-height: 1.1;
padding: 1.5rem;
transition: transform 0.2s ease-out;
transform: scale(1);
text-decoration: unset;
}
&.text-only {
font-family: Gelasio;
font-size: 1.7rem;
padding: 1.5rem;
p {
transition: transform 0.2s ease-out;
transform: scale(1);
}
}
}
.contextual-infos {
text-transform: uppercase;
font-size: 0.8rem;
display: flex;
justify-content: space-between;
margin-top: 0.6rem;
line-height: 1.3;
.authors {
a {
text-decoration: none;
}
> span:not(:last-of-type)::after {
content: ", ";
}
}
.date-category {
display: flex;
flex-direction: column;
align-items: flex-end;
text-align: right;
a {
text-decoration: none;
}
}
}
.title-bottom {
font-size: 1.2rem;
margin-top: 0.8rem;
line-height: 1.2;
a {
text-decoration: none;
}
}
}

46
scss/_reset.scss Normal file
View File

@@ -0,0 +1,46 @@
*, *:before, *:after{
box-sizing: border-box;
}
html, body, div, span, object, iframe, figure, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, em, img, small, strike, strong, sub, sup, tt, b, u, i, ol, ul, li, fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td, main, canvas, embed, footer, header, nav, section, video{
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
text-size-adjust: none;
}
footer, header, nav, section, main{
display: block;
}
body{
line-height: 1;
}
ol, ul{
list-style: none;
}
blockquote, q{
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after{
content: '';
content: none;
}
table{
border-collapse: collapse;
border-spacing: 0;
}
input{
-webkit-appearance: none;
border-radius: 0;
}

153
scss/_search.scss Normal file
View File

@@ -0,0 +1,153 @@
.search-page-form {
margin-top: 2rem;
margin-bottom: 3rem;
@media ($desktop) {
width: 50%;
}
.search-panel__desc {
margin-bottom: 1.3rem;
}
}
.search-page-form + #category-filters {
margin-top: 0;
}
// Author search results
.author-results {
margin-bottom: 3rem;
&__title {
font-family: $font-primary;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 1.2rem;
color: $less-dark-gray;
}
}
// Taxonomy search results (axes & programmes)
.taxonomy-results {
margin-bottom: 3rem;
&__title {
font-family: $font-primary;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 1.2rem;
color: $less-dark-gray;
}
&__list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
}
&__link {
display: block;
padding: 0.5rem 1rem;
border: 1px solid $light-gray;
text-decoration: none;
transition: border-color 0.15s;
&:hover {
border-color: $dark-gray;
}
}
&__name {
font-family: $font-heading;
font-size: 0.95rem;
line-height: 1.3;
}
&__meta {
display: block;
font-family: $font-primary;
font-size: 0.7rem;
text-transform: uppercase;
color: $less-dark-gray;
margin-top: 0.15rem;
}
}
.author-cards-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
@media ($tablet) {
grid-template-columns: repeat(3, 1fr);
}
@media ($desktop) {
grid-template-columns: repeat(6, 1fr);
}
}
.author-card {
border-bottom: solid 1px $laboratoire;
padding-bottom: 0.4rem;
&__visual {
display: flex;
align-items: center;
justify-content: center;
height: 14vh;
padding: 0.7rem;
background-color: lighten($laboratoire, 28%);
overflow: hidden;
text-decoration: none;
img {
max-height: 100%;
max-width: 100%;
width: auto;
height: auto;
transition: transform 0.2s ease-out;
}
&:hover img {
transform: scale(0.98);
}
}
&__initials {
font-family: $font-heading;
font-size: 2rem;
color: $laboratoire;
user-select: none;
}
&__info {
padding-top: 0.5rem;
}
&__name {
font-family: $font-heading;
font-size: 1rem;
font-weight: normal;
line-height: 1.2;
margin-bottom: 0.3rem;
a {
text-decoration: none;
}
}
&__role,
&__affiliation {
font-family: $font-primary;
font-size: 0.75rem;
text-transform: uppercase;
line-height: 1.3;
color: $less-dark-gray;
margin: 0;
}
}

584
scss/_single.scss Normal file
View File

@@ -0,0 +1,584 @@
.article {
margin-top: 0;
width: 100%;
.category-header-top {
display: flex;
flex-direction: column;
align-items: start;
justify-content: space-between;
.breadcrumb {
font-size: 0.85rem;
margin-bottom: 1.5rem;
text-transform: uppercase;
line-height: 1.3;
&__separator {
margin: 0 0.4rem;
}
}
@media ($tablet) {
flex-direction: row;
}
}
h2 {
font-family: Gelasio;
font-weight: normal;
font-size: 1.8rem;
position: relative;
display: inline-block;
margin-top: 2rem;
margin-bottom: 2rem;
&::after {
content: '';
display: block;
position: absolute;
height: 5px;
width: 100%;
// bottom: -1.1rem;
left: 0;
z-index: 2;
}
p {
line-height: 1.3;
&:last-of-type {
margin-top: 0.3rem;
margin-bottom: 0.3rem;
}
}
p + p {
font-size: 1.6rem;
}
@media ($tablet) {
p {
font-size: 2.2rem !important;
}
p + p {
font-size: 1.6rem !important;
}
&::after {
bottom: -0.4rem;
}
}
}
// Category color gradients on h2::after
&.category--le-laboratoire h2::after {
background: linear-gradient(to bottom, transparent 0%, $laboratoire 30%);
}
&.category--manifestations-scientifiques h2::after {
background: linear-gradient(to bottom, transparent 0%, $manifestations 30%);
}
&.category--publications-et-productions h2::after {
background: linear-gradient(to bottom, transparent 0%, $publications 30%);
}
&.category--mediation-scientifique h2::after {
background: linear-gradient(to bottom, transparent 0%, $mediations 30%);
}
&.category--ressources h2::after {
background: linear-gradient(to bottom, transparent 0%, $ressources 30%);
}
.article-type {
display: inline-block;
margin-top: 2rem;
font-family: $font-primary;
font-size: 0.85rem;
text-transform: uppercase;
background-color: $light-gray;
padding: 0.2rem 0.6rem;
}
.maj {
font-family: $font-primary;
font-size: 0.85rem !important;
color: $less-dark-gray;
margin-top: 1rem;
margin-bottom: 2.5rem;
text-transform: uppercase;
}
.imgs {
width: 100%;
margin-bottom: 3rem;
figure {
width: 100%;
img {
width: 100%;
height: auto;
}
figcaption {
font-family: $font-primary;
font-size: 0.85rem;
color: $less-dark-gray;
margin-top: 0.5rem;
font-style: italic;
}
@media ($tablet) {
width: 50%;
}
}
&--swiper {
display: flex;
align-items: center;
gap: 0.5rem;
@media ($tablet) {
width: 50%;
}
.swiper {
flex: 1;
min-width: 0;
}
figure {
width: 100%;
}
.swiper-pagination {
position: static;
margin-top: 0.5rem;
text-align: center;
}
.swiper-pagination-bullet-active {
background-color: $less-dark-gray !important;
}
}
}
.article-content {
display: flex;
flex-direction: column-reverse;
gap: 3rem;
@media ($tablet) {
flex-direction: row;
}
}
.sidebar {
background-color: $light-light-gray;
@media ($tablet) {
width: 25%;
padding: 0.8rem;
flex-shrink: 0;
}
.sidebar-container {
position: sticky;
top: 6rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.sidebar-section {
display: flex;
flex-direction: column;
gap: 0.8rem;
line-height: 1.4;
p {
margin: 0;
}
&.reference-bibliographique {
display: inline-block;
em, i {
font-style: italic;
}
strong {
font-weight: bold;
}
}
}
p {
font-family: $font-primary;
}
.link-button {
width: fit-content;
}
.imgs--portrait {
@media ($tablet) {
width: calc(100% + 1.6rem);
margin-left: -0.8rem;
margin-right: -0.8rem;
}
.sidebar-portrait {
width: 100%;
}
}
.sidebar-portrait {
width: 100%;
img {
width: 100%;
height: auto;
}
figcaption {
font-family: $font-primary;
font-size: 0.85rem;
color: $less-dark-gray;
margin-top: 0.5rem;
font-style: italic;
}
}
}
.main-content-text {
margin-top: 1rem;
flex: 1;
min-height: unset;
/* Affichage posts newsletter */
&:has(table[role=presentation]) {
p:not(table[role=presentation] p):not(.maj) {
display: none;
}
table {
&[role=presentation] p {
margin: unset;
}
td {
vertical-align: top;
}
br {
display: none;
}
}
}
> *:not(.article-field) {
font-size: 1.25rem;
}
a {
text-decoration: underline;
}
p {
margin-bottom: 1rem;
line-height: 1.4;
strong {
font-weight: bold;
}
em {
font-style: italic;
}
&:first-child {
margin-top: 0 !important;
}
}
ul, ol {
line-height: 1.4;
padding-left: 0.8rem;
}
ul {
list-style: inside "· ";
}
ol {
list-style: inside decimal;
}
blockquote{
padding-left: 1rem;
margin-left: 1.5rem;
border-left: solid 1px $light-gray;
}
p:first-of-type + .mots-cles {
margin-top: 1rem;
}
.article-field {
font-size: 0.9rem !important;
line-height: 1.4 !important;
margin-bottom: 1.5rem !important;
i {
font-style: italic;
}
}
.mots-cles {
margin-top: 4rem; // style par défaut = style du premier
}
.mots-cles ~ .mots-cles {
margin-top: 1rem; // les 2e et 3e ont moins d'espace
}
.canal-u-embeds,
.youtube-embeds {
margin-top: 2rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.canal-u-embed,
.video-embed {
position: relative;
width: 100%;
padding-bottom: 56.25%; // 16:9
height: 0;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
}
}
.inline-title {
text-transform: uppercase;
position: relative;
&::after {
content: '';
width: 100%;
height: 10px;
bottom: -1px;
left: 0;
position: absolute;
@include yellow-gradient;
}
}
.related-posts,
.seances-section {
margin-top: 5rem;
h3 {
font-family: $font-primary;
text-transform: uppercase;
position: relative;
display: inline-block;
margin-bottom: 2rem;
&::after {
@include yellow-gradient-after(10px);
bottom: -10px;
}
}
}
.related-posts {
.post-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
.post-card {
min-width: 0;
a {
text-decoration: none;
h2::after {
display: none;
}
}
}
@media ($tablet) {
grid-template-columns: repeat(2, 1fr);
}
}
}
.seances-list {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.seance-header {
display: flex;
align-items: stretch;
gap: 1.2rem;
padding: 0.1rem;
background-color: $light-gray;
cursor: pointer;
transition: background-color 0.15s;
&:hover {
background-color: $less-light-gray;
}
@media ($tablet) {
padding: 0.8rem;
}
}
.seance-date {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 3rem;
font-family: $font-primary;
text-transform: uppercase;
line-height: 1.2;
padding: 0.4rem 0;
background: linear-gradient(to bottom, $light_light_gray 60%, $manifestations);
&__day {
font-size: 1.4rem;
}
&__month {
font-size: 0.85rem;
}
&__year {
font-size: 0.75rem;
}
}
.seance-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.2rem;
.seance-title {
font-family: $font-heading;
font-size: 1.15rem;
line-height: 1.2;
text-decoration: none;
padding: 0.6rem 0;
@media ($tablet) {
padding: unset;
}
}
.seance-intervenants {
font-family: $font-primary;
font-size: 0.85rem;
margin-top: 0.1rem;
color: black;
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
}
.seance-chevron {
font-size: 1.2rem;
transition: transform 0.2s;
flex-shrink: 0;
align-self: center;
margin-right: 0.5rem;
}
.seance-item.is-open .seance-chevron {
transform: rotate(180deg);
}
.seance-content {
padding: 1rem 1rem 1rem 1rem;
background-color: $light-light-gray;
font-family: $font-primary;
font-size: 0.9rem;
line-height: 1.4;
.seance-content-infos {
display: flex;
width: 100%;
justify-content: space-between;
margin-bottom: 1rem;
> .seance-content-lieu {
text-align: right;
> p {
margin: 0;
}
}
}
p {
margin-bottom: 0.6rem;
}
.seance-images {
margin-top: 1.5rem;
margin-bottom: 0;
figure {
@media ($tablet) {
width: 50%;
}
}
}
.seance-extras {
display: flex;
flex-direction: column;
align-items: start;
gap: 0.8rem;
margin-top: 1.5rem;
}
.seance-related {
margin-top: 1.5rem;
h4 {
font-family: $font-primary;
text-transform: uppercase;
margin-bottom: 1rem;
}
.post-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
.post-card {
min-width: 0;
a {
text-decoration: none;
h2::after {
display: none;
}
}
}
@media ($tablet) {
grid-template-columns: repeat(2, 1fr);
}
}
}
@media ($tablet) {
padding: 1rem 1rem 1rem 5.5rem;
}
}
}

69
scss/_typography.scss Normal file
View File

@@ -0,0 +1,69 @@
@font-face {
font-family: 'Gelasio';
src: url('../assets/fonts/Gelasio-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'NewsCycle';
src: url('../assets/fonts/NewsCycle-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
body {
font-family: $font-primary;
}
h1, h2, h3, h4, h5, h6 {
font-family: $font-heading;
}
a,
a:active {
color: $dark-gray;
transition: color 0.2s ease-out;
}
a:hover {
color: $less-dark-gray;
}
p {
line-height: 1.2;
}
.link-button {
display: inline-flex;
background-color: $light_gray;
color: $dark_gray;
padding: 0.6rem 0.7rem;
font-size: 0.9rem;
transition: background-color 0.3s ease-out;
text-decoration: none;
justify-content: center;
align-items: center;
word-break: break-all;
max-width: 100%;
> i {
margin-right: 0.6rem;
}
&:hover {
background-color: $less_light-gray;
}
@media ($tablet) {
font-size: unset;
padding: 0.6rem 1rem;
}
// Multi-word titles: break at word boundaries; only split a word mid-letter
// as a last resort when it overflows the container.
&--wrap-word {
word-break: normal;
overflow-wrap: break-word;
}
}

31
scss/_variables.scss Normal file
View File

@@ -0,0 +1,31 @@
// Neutral colors
$light-light-gray: #fcfcfc;
$light-gray: #eeeeee;
$less-light-gray: #cccccc;
$less-less-light-gray: #bbbbbb;
$yellow: #f7ff29;
$dark-gray: #1a1a1a;
$less-dark-gray: #3e3e3e;
// Theme colors
$laboratoire: #e0775d;
$manifestations: #7cc0c6;
$mediations: #e05680;
$publications: #46ae51;
$ressources: #bb8dd9;
// Fonts
$font-primary: 'NewsCycle', sans-serif;
$font-heading: 'Gelasio', serif;
// Breakpoints
$breakpoint-tablet: 768px;
$breakpoint-desktop: 1024px;
$breakpoint-large: 1440px;
// Media queries (mobile first)
$tablet: 'min-width: #{$breakpoint-tablet}';
$desktop: 'min-width: #{$breakpoint-desktop}';
$large: 'min-width: #{$breakpoint-large}';
// Fonts sizes

25
scss/style.scss Normal file
View File

@@ -0,0 +1,25 @@
@import 'reset';
@import 'variables';
@import 'mixins';
@import 'base';
@import 'typography';
@import 'layout';
@import 'header';
@import 'navigation';
@import 'footer';
@import 'index';
@import 'postcard';
@import 'category';
@import 'filters';
@import 'single';
@import 'author';
@import 'membres';
@import 'page-laboratoire';
@import 'search';
/*
Theme Name: Thalim
Author: Valentin Le Moign
Version: 1.0
*/