Refactor CSS styles and update HTML structure for improved layout and responsiveness

- Updated padding values for sections in custom CSS files to enhance spacing.
- Introduced new card styles with hover effects for better user interaction.
- Added new gradient card layout in the chill theme for a visually appealing design.
- Removed obsolete sector layout and replaced it with a more flexible gradient card layout.
- Enhanced feature list layout with improved pagination and sidebar integration.
- Created a new shortcode for gradient card sections to streamline feature presentation.
This commit is contained in:
Boris Waaub
2026-02-24 15:32:06 +01:00
parent 923b4c4d7f
commit c350ea3dcd
15 changed files with 622 additions and 635 deletions

View File

@@ -1,370 +1,299 @@
.activity-sector {
--bg-color: #a0dcff; }
.badge-generation-document {
--badge-color: #D50B51;
}
--badge-color: #D50B51; }
.badge-rapport-rgpd {
--badge-color: #43B09B;
}
--badge-color: #43B09B; }
.badge-rapports-statistiques {
--badge-color: #C9B99E;
}
--badge-color: #C9B99E; }
.badge-suivi-accompagnements {
--badge-color: #EDC74B;
}
--badge-color: #EDC74B; }
.badge-suivi-decisions {
--badge-color: #a0dcff;
}
--badge-color: #a0dcff; }
.badge-suivi-usagers {
--badge-color: #333333;
}
--badge-color: #333333; }
.badge-rendez-vous {
--badge-color: #E27A3E;
}
--badge-color: #E27A3E; }
@font-face {
font-family: "Lato", Arial;
font-family: 'Lato', Arial;
src: url("assets/fonts/Lato/Lato-Regular.ttf") format("truetype");
font-display: optional;
font-weight: normal;
font-style: normal;
}
font-style: normal; }
body {
font-family: "Lato", sans-serif;
}
body .highlight {
padding: 0.25rem;
}
body .highlight-1 {
background-color: #43B09B;
}
body .highlight-2 {
background-color: #D50B51;
}
body .highlight-3 {
background-color: #EDC74B;
}
font-family: 'Lato', sans-serif; }
body .highlight {
padding: .25rem; }
body .highlight-1 {
background-color: #43B09B; }
body .highlight-2 {
background-color: #D50B51; }
body .highlight-3 {
background-color: #EDC74B; }
header.header {
background-color: #0d242e;
}
background-color: #0d242e; }
footer.footer {
background-color: #0d242e;
}
background-color: #0d242e; }
.chill-pres {
padding-top: 0rem;
}
padding-top: 0rem; }
.navbar .btn-primary {
background-color: #f46839;
border: 1px solid #f46839;
color: white;
}
.navbar .btn-primary:hover {
background-color: #E27A3E;
border: 1px solid #E27A3E;
}
color: white; }
.navbar .btn-primary:hover {
background-color: #E27A3E;
border: 1px solid #E27A3E; }
.navbar .lang-select {
color: white;
}
color: white; }
section.hero {
background-color: #0d242e;
}
section.hero h1 {
color: #43B09B;
}
background-color: #0d242e; }
section.hero h1 {
color: #43B09B; }
section.section-1 {
background-color: white;
padding-top: 10rem;
}
section.section-1 li {
font-weight: 600;
}
section.section-2 .container {
color: #0d242e;
text-align: center;
margin-top: 4rem;
}
section.section-2 .container h2 {
line-height: 3.5rem;
}
padding-top: 10rem; }
section.section-1 li {
font-weight: 600; }
section.section-2 {
background: rgb(233, 227, 216);
background: linear-gradient(180deg, rgb(233, 227, 216) 0%, rgb(239, 239, 239) 100%);
}
background: #e9e3d8;
background: linear-gradient(180deg, #e9e3d8 0%, #efefef 100%); }
section.section-2 .container {
color: #0d242e;
text-align: center;
margin-top: 4rem; }
section.section-2 .container h2 {
line-height: 3.5rem; }
section.section-3 {
background: rgb(239, 239, 239);
background: linear-gradient(180deg, rgb(239, 239, 239) 0%, rgb(255, 255, 255) 100%);
}
section.section-3 h2 {
position: relative;
z-index: 1;
}
section.section-3 h2:before {
content: "";
position: absolute;
width: 70px;
height: 70px;
left: -10%;
top: -30%;
margin-left: -35px;
background-color: #f46839;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 50px;
}
background: #efefef;
background: linear-gradient(180deg, #efefef 0%, white 100%); }
section.section-3 h2 {
position: relative;
z-index: 1; }
section.section-3 h2:before {
content: '';
position: absolute;
width: 70px;
height: 70px;
left: -10%;
top: -30%;
margin-left: -35px;
background-color: #f46839;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 50px; }
section.section-4 {
position: relative;
background-color: white;
}
section.section-4 .row {
padding-bottom: 5rem;
}
section.section-4 h4 {
font-weight: bold;
height: 175px;
color: #0d242e;
border: 1px dashed #0d242e;
border-radius: 15px;
padding: 3rem;
}
section.section-4 .btn-primary {
position: absolute;
top: 52%;
left: 28%;
}
background-color: white; }
section.section-4 .row {
padding-bottom: 5rem; }
section.section-4 h4 {
font-weight: bold;
height: 175px;
color: #0d242e;
border: 1px dashed #0d242e;
border-radius: 15px;
padding: 3rem; }
section.section-4 .btn-primary {
position: absolute;
top: 52%;
left: 28%; }
section.section-5 {
background-color: rgba(67, 176, 155, 0.5);
}
background-color: rgba(67, 176, 155, 0.5); }
section.section-6 {
background-color: #0d242e !important;
background-repeat: repeat;
background-position: top center;
background-image: url("/images/bg/pattern-1.png");
}
background-image: url("/images/bg/pattern-1.png"); }
section.section-7 h2 {
position: relative;
z-index: 1;
}
section.section-7 h2:before {
content: "";
position: absolute;
width: 70px;
height: 70px;
left: -15%;
top: -30%;
margin-left: -35px;
background-color: #fcc958;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 0;
}
z-index: 1; }
section.section-7 h2:before {
content: '';
position: absolute;
width: 70px;
height: 70px;
left: -15%;
top: -30%;
margin-left: -35px;
background-color: #fcc958;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 0; }
section h2.title {
color: #0d242e;
}
color: #0d242e; }
section.big-text h2, section.big-text p, section.li-block h2, section.li-block p {
width: fit-content;
margin-left: auto;
margin-right: auto;
}
margin-right: auto; }
section.big-text .container .row > div:last-child {
width: 80%;
margin-left: 10%;
}
margin-left: 10%; }
section.li-block .container .row > div:last-child {
width: 100%;
}
width: 100%; }
section.li-block .container .row > div ul {
display: flex;
}
section.li-block .container .row > div ul li i:first-child {
display: none;
}
section.li-block .container .row > div ul li {
flex: 1 0 0;
margin: 0.5em 2rem 0.5em 2rem;
padding: 2em 1em 1em 1em;
text-align: center;
border-radius: 20px;
}
display: flex; }
section.li-block .container .row > div ul li {
flex: 1 0 0;
margin: 0.5em 2rem 0.5em 2rem;
padding: 2em 1em 1em 1em;
text-align: center;
border-radius: 20px; }
section.li-block .container .row > div ul li i:first-child {
display: none; }
section.li-block.section-1 ul li {
font-weight: 500;
font-size: large;
position: relative;
}
section.li-block.section-1 ul li:nth-child(1) {
position: relative;
z-index: 1;
}
section.li-block.section-1 ul li:nth-child(1):before {
content: "";
position: absolute;
width: 100px;
height: 100px;
left: 44%;
top: -60%;
margin-left: -35px;
background-color: #56c4aa;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 0;
}
section.li-block.section-1 ul li:nth-child(2) {
position: relative;
z-index: 1;
}
section.li-block.section-1 ul li:nth-child(2):before {
content: "";
position: absolute;
width: 100px;
height: 100px;
left: 44%;
top: -60%;
margin-left: -35px;
background-color: #f0384d;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 50px;
}
section.li-block.section-1 ul li:nth-child(3) {
position: relative;
z-index: 1;
}
section.li-block.section-1 ul li:nth-child(3):before {
content: "";
position: absolute;
width: 100px;
height: 100px;
left: 44%;
top: -60%;
margin-left: -35px;
background-color: #E27A3E;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 0;
}
section.li-block.section-1 ul li:nth-child(4) {
position: relative;
z-index: 1;
}
section.li-block.section-1 ul li:nth-child(4):before {
content: "";
position: absolute;
width: 100px;
height: 100px;
left: 44%;
top: -60%;
margin-left: -35px;
background-color: #fcc958;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 50px;
}
position: relative; }
section.li-block.section-1 ul li:nth-child(1) {
position: relative;
z-index: 1; }
section.li-block.section-1 ul li:nth-child(1):before {
content: '';
position: absolute;
width: 100px;
height: 100px;
left: 44%;
top: -60%;
margin-left: -35px;
background-color: #56c4aa;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 0; }
section.li-block.section-1 ul li:nth-child(2) {
position: relative;
z-index: 1; }
section.li-block.section-1 ul li:nth-child(2):before {
content: '';
position: absolute;
width: 100px;
height: 100px;
left: 44%;
top: -60%;
margin-left: -35px;
background-color: #f0384d;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 50px; }
section.li-block.section-1 ul li:nth-child(3) {
position: relative;
z-index: 1; }
section.li-block.section-1 ul li:nth-child(3):before {
content: '';
position: absolute;
width: 100px;
height: 100px;
left: 44%;
top: -60%;
margin-left: -35px;
background-color: #E27A3E;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 0; }
section.li-block.section-1 ul li:nth-child(4) {
position: relative;
z-index: 1; }
section.li-block.section-1 ul li:nth-child(4):before {
content: '';
position: absolute;
width: 100px;
height: 100px;
left: 44%;
top: -60%;
margin-left: -35px;
background-color: #fcc958;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
z-index: 0;
border-radius: 50px; }
section.li-block.section-5 .container .row p {
margin-bottom: 5rem;
}
margin-bottom: 5rem; }
section.li-block.section-5 .container .row ul li {
border-radius: 1em;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(20px);
width: 400px;
height: 180px;
padding: 0.85rem;
padding: .85rem;
position: relative;
z-index: 0;
overflow: hidden;
transition: 0.6s ease-in;
}
section.li-block.section-5 .container .row ul li::before {
content: "";
position: absolute;
z-index: -1;
top: -15px;
right: -15px;
height: 220px;
width: 25px;
border-radius: 32px;
transform: scale(1);
transform-origin: 50% 50%;
transition: transform 0.25s ease-out;
}
section.li-block.section-5 .container .row ul li:nth-child(1)::before {
background-color: rgba(240, 56, 77, 0.85);
}
section.li-block.section-5 .container .row ul li:nth-child(2)::before {
background-color: rgba(232, 148, 99, 0.85);
}
section.li-block.section-5 .container .row ul li:nth-child(3)::before {
background-color: rgba(67, 178, 157, 0.85);
}
section.li-block.section-5 .container .row ul li:nth-child(4)::before {
background-color: rgb(241, 210, 117);
}
section.li-block.section-5 .container .row ul li:hover::before {
transition-delay: 0.2s;
transform: scale(40);
}
section.li-block.section-5 .container .row ul li:hover {
color: #ffffff;
}
section.li-block.section-5 .container .row ul li:hover h5 {
color: #EBEBEB;
}
section.li-block.section-5 .container .row ul li h5 {
color: #0d242e;
font-weight: bold;
}
transition: 0.6s ease-in; }
section.li-block.section-5 .container .row ul li::before {
content: "";
position: absolute;
z-index: -1;
top: -15px;
right: -15px;
height: 220px;
width: 25px;
border-radius: 32px;
transform: scale(1);
transform-origin: 50% 50%;
transition: transform 0.25s ease-out; }
section.li-block.section-5 .container .row ul li:nth-child(1)::before {
background-color: rgba(240, 56, 77, 0.85); }
section.li-block.section-5 .container .row ul li:nth-child(2)::before {
background-color: rgba(232, 148, 99, 0.85); }
section.li-block.section-5 .container .row ul li:nth-child(3)::before {
background-color: rgba(67, 178, 157, 0.85); }
section.li-block.section-5 .container .row ul li:nth-child(4)::before {
background-color: #f1d275; }
section.li-block.section-5 .container .row ul li:hover::before {
transition-delay: 0.2s;
transform: scale(40); }
section.li-block.section-5 .container .row ul li:hover {
color: #ffffff; }
section.li-block.section-5 .container .row ul li:hover h5 {
color: #EBEBEB; }
section.li-block.section-5 .container .row ul li h5 {
color: #0d242e;
font-weight: bold; }
section.li-block a.btn-chill {
background-color: #fc3636;
}
background-color: #fc3636; }
.download {
margin-right: auto;
margin-left: auto;
display: block;
}
.download a {
text-decoration: none;
padding: 0.5rem;
}
display: block; }
.download a {
text-decoration: none;
padding: .5rem; }
section.dark p {
color: white;
font-weight: bolder;
}
font-weight: bolder; }
.hop {
color: red;
}
color: red; }
.content-subtitle {
padding-left: 2rem;
font-weight: bold;
}
font-weight: bold; }
.bord-1 {
border-left: 4px solid #E27A3E;
}
border-left: 4px solid #E27A3E; }
.bord-2 {
border-left: 4px solid #C9B99E;
}
border-left: 4px solid #C9B99E; }
.bord-3 {
border-left: 4px solid #EDC74B;
}
border-left: 4px solid #EDC74B; }
.bord-4 {
border-left: 4px solid #43B09B;
}
border-left: 4px solid #43B09B; }
.chapo {
font-size: large;
@@ -373,144 +302,105 @@ section.dark p {
padding-bottom: 2rem;
font-style: italic;
position: relative;
margin-bottom: 5rem;
}
.chapo::after {
content: "";
position: absolute;
left: 0;
right: 0;
top: 100%;
margin: 10px auto;
width: 15%;
height: 6px;
background: #DE4849;
}
margin-bottom: 5rem; }
.chapo::after {
content: '';
position: absolute;
left: 0;
right: 0;
top: 100%;
margin: 10px auto;
width: 15%;
height: 6px;
background: #DE4849; }
figure.image {
display: flex;
flex-direction: column;
}
figure.image.left {
float: left;
margin-right: 1.5em;
}
figure.image.right {
float: right;
margin-left: 1.5em;
}
figure.image.center {
display: flex;
justify-content: center;
align-items: center;
}
figure.image img {
margin-bottom: 0;
}
flex-direction: column; }
figure.image.left {
float: left;
margin-right: 1.5em; }
figure.image.right {
float: right;
margin-left: 1.5em; }
figure.image.center {
display: flex;
justify-content: center;
align-items: center; }
figure.image img {
margin-bottom: 0; }
.text-brochure {
text-align: center;
}
text-align: center; }
@media screen and (max-width: 1536px) {
section.li-block.section-5 .container .row ul {
flex-wrap: wrap;
}
flex-wrap: wrap; }
section.li-block.section-5 .container .row ul li {
flex: 30%;
}
}
flex: 30%; } }
@media screen and (max-width: 1023px) {
section.section-4 h4 {
height: 224px;
}
height: 224px; }
section.section-4 .btn-primary {
top: 56%;
}
top: 56%; }
section.li-block.section-5 .container .row ul {
flex-wrap: wrap;
}
flex-wrap: wrap; }
section.li-block.section-5 .container .row ul li {
flex: 50%;
}
}
flex: 50%; } }
@media screen and (max-width: 767px) {
section.hero {
height: 110vh;
}
height: 110vh; }
section.section-3 h2:before {
top: -70%;
left: 5%;
z-index: -1;
}
z-index: -1; }
section.section-4 h4 {
height: 280px;
}
height: 280px; }
section.section-4 .btn-primary {
top: 64%;
}
top: 64%; }
section.li-block .container .row > div ul {
flex-direction: column;
}
section.li-block .container .row > div ul li {
margin-bottom: 4rem;
}
flex-direction: column; }
section.li-block .container .row > div ul li {
margin-bottom: 4rem; }
section.li-block.section-1 ul li:nth-child(1) {
top: -66%;
}
top: -66%; }
section.li-block.section-1 ul li:nth-child(2) {
top: -66%;
}
top: -66%; }
section.li-block.section-1 ul li:nth-child(3):before {
top: -85%;
}
top: -85%; }
section.li-block.section-1 ul li:nth-child(4):before {
top: -85%;
}
top: -85%; }
section.li-block.section-5 .container .row ul {
flex-wrap: wrap;
}
flex-wrap: wrap; }
section.li-block.section-5 .container .row ul li {
flex: 50%;
}
}
flex: 50%; } }
@media screen and (max-width: 513px) {
section.hero {
height: 120vh;
}
height: 120vh; }
section.section-4 h4 {
font-size: 1.1rem;
}
font-size: 1.1rem; }
section.section-4 .btn-primary {
top: 64%;
}
top: 64%; }
section.section-5 .container .row ul li {
width: 350px;
}
}
width: 350px; } }
@media screen and (max-width: 470px) {
section.section-4 h4 {
height: 280px;
}
height: 280px; }
section.section-4 .btn-primary {
top: 64%;
}
top: 64%; }
section.li-block.section-1 ul li:nth-child(3):before {
top: -70%;
}
top: -70%; }
section.li-block.section-1 ul li:nth-child(4):before {
top: -70%;
}
top: -70%; }
section.li-block.section-5 .container .row ul {
flex-wrap: wrap;
}
flex-wrap: wrap; }
section.li-block.section-5 .container .row ul li {
width: 350px;
}
}
width: 350px; } }
@media screen and (max-width: 420px) {
section.li-block.section-5 .container .row ul li {
width: 300px;
}
}
width: 300px; } }
/*# sourceMappingURL=custom.css.map */

File diff suppressed because one or more lines are too long

View File

@@ -1896,17 +1896,36 @@ body {
}
.section {
padding-top: 4rem;
padding-bottom: 4rem;
padding-top: 2rem;
padding-bottom: 2rem;
}
@media (min-width: 768px) {
.section {
padding-top: 6rem;
padding-bottom: 6rem;
padding-top: 4rem;
padding-bottom: 4rem;
}
}
.card {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
padding: 1.5rem;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 200ms;
}
.card:hover {
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.card {
border-radius: 2rem;
}
.nav-link {
font-weight: 700;
--tw-text-opacity: 1;
@@ -2437,6 +2456,10 @@ body {
height: 100%;
}
.h-48 {
height: 12rem;
}
.max-h-12 {
max-height: 3rem;
}
@@ -2497,6 +2520,10 @@ body {
width: 100%;
}
.w-48 {
width: 12rem;
}
.\!max-w-none {
max-width: none !important;
}
@@ -2587,6 +2614,14 @@ body {
resize: both;
}
.list-inside {
list-style-position: inside;
}
.list-disc {
list-style-type: disc;
}
.grid-cols-1 {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
@@ -2603,10 +2638,6 @@ body {
align-items: flex-start;
}
.items-end {
align-items: flex-end;
}
.items-center {
align-items: center;
}
@@ -3127,6 +3158,10 @@ body {
text-align: right;
}
.text-start {
text-align: start;
}
.font-mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
@@ -4571,11 +4606,6 @@ body {
padding-right: 1.5rem;
}
.sm\:py-20 {
padding-top: 5rem;
padding-bottom: 5rem;
}
.sm\:py-32 {
padding-top: 8rem;
padding-bottom: 8rem;