SiteVitrinePaysagiste/css/styles.css

376 lines
7.1 KiB
CSS
Raw Normal View History

2026-07-27 15:02:36 +00:00
/* Variables & Reset */
2026-07-27 14:10:44 +00:00
:root {
--vert-fonce: #154e1f;
--vert-clair: #659b1f;
--blanc: #ffffff;
--fond-gris: #f4f6f4;
--texte-sombre: #2c3e50;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
color: var(--texte-sombre);
line-height: 1.5;
overflow-x: hidden;
2026-07-27 15:02:36 +00:00
background: #f4f6f4;
font-family: "Arial Black", serif;
2026-07-27 14:10:44 +00:00
}
2026-07-27 15:02:36 +00:00
/* Header */
2026-07-27 14:10:44 +00:00
header {
background-color: var(--blanc);
display: flex;
flex-direction: column;
align-items: center;
padding: 1.5rem 1rem;
text-align: center;
2026-07-27 15:02:36 +00:00
border-bottom: #154e1f solid 2px;
2026-07-27 14:10:44 +00:00
}
#logo {
width: 120px;
height: auto;
margin-bottom: 0.5rem;
}
header h1 {
color: var(--vert-fonce);
font-size: 1.4rem;
2026-07-27 15:02:36 +00:00
margin-bottom: 0;
2026-07-27 14:10:44 +00:00
text-transform: uppercase;
letter-spacing: 1px;
}
2026-07-27 15:02:36 +00:00
/* Réseaux Sociaux */
2026-07-27 14:10:44 +00:00
.réseaux {
2026-07-27 15:02:36 +00:00
background-color: var(--blanc);
2026-07-27 14:10:44 +00:00
display: flex;
2026-07-27 15:02:36 +00:00
justify-content: center;
gap: 2rem;
padding: 10px 0px 15px 0px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
2026-07-27 14:10:44 +00:00
}
.réseaux a {
color: var(--vert-fonce);
2026-07-27 15:02:36 +00:00
font-size: 1.8rem;
2026-07-27 14:10:44 +00:00
text-decoration: none;
2026-07-27 15:02:36 +00:00
transition: color 0.3s, transform 0.2s;
2026-07-27 14:10:44 +00:00
}
.réseaux a:active,
.réseaux a:hover {
color: var(--vert-clair);
2026-07-27 15:02:36 +00:00
transform: scale(1.1);
2026-07-27 14:10:44 +00:00
}
2026-07-27 15:02:36 +00:00
/* Main */
2026-07-27 14:10:44 +00:00
main {
2026-07-27 15:02:36 +00:00
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
2026-07-27 14:10:44 +00:00
}
hr {
border: none;
height: 1px;
background-color: var(--vert-clair);
opacity: 0.3;
margin: 2rem 0;
}
2026-07-27 15:02:36 +00:00
/* Bannière */
.banner {
2026-07-27 14:10:44 +00:00
display: flex;
flex-direction: column;
align-items: center;
text-align: justify;
}
2026-07-28 08:25:20 +00:00
.banner p {
border-top: 2px solid var(--vert-clair);
border-bottom: 2px solid var(--vert-clair);
padding: 0px 15px;
margin: 1rem 0;
font-size: 14px;
}
/* Image principale (Mobile & Tablette) */
2026-07-27 14:10:44 +00:00
#photo {
2026-07-27 15:02:36 +00:00
width: 100vw;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
margin-top: 0;
margin-bottom: 1.5rem;
height: 250px;
2026-07-27 14:10:44 +00:00
object-fit: cover;
border-radius: 0;
box-shadow: none;
2026-07-28 08:44:35 +00:00
display: block;
2026-07-28 08:25:20 +00:00
}
2026-07-28 08:44:35 +00:00
/* On masque les images spécifiques aux PC sur mobile et tablette */
#photosmall,
#photolarge {
2026-07-28 08:25:20 +00:00
display: none;
2026-07-27 14:10:44 +00:00
}
2026-07-27 15:02:36 +00:00
/* Projets */
2026-07-27 14:10:44 +00:00
.projets h2 {
color: var(--vert-fonce);
text-align: center;
font-size: 1.5rem;
margin-bottom: 0.2rem;
}
2026-07-27 15:02:36 +00:00
/* Indicateur de Défilement */
2026-07-27 14:10:44 +00:00
.projets h2::after {
content: "\f337 Glissez pour voir plus";
font-weight: 900;
display: block;
font-size: 0.9rem;
color: #7f8c8d;
margin-top: 0.4rem;
margin-bottom: 1.5rem;
}
2026-07-27 15:02:36 +00:00
/* Carrousel */
2026-07-27 14:10:44 +00:00
.projets > div {
display: flex;
flex-direction: row;
gap: 1rem;
overflow-x: auto;
overscroll-behavior-x: contain;
scroll-snap-type: x mandatory;
padding-bottom: 1.5rem;
scrollbar-width: thin;
scrollbar-color: var(--vert-clair) rgba(0,0,0,0.05);
}
2026-07-27 15:02:36 +00:00
/* Scrollbar Personnalisée */
2026-07-27 14:10:44 +00:00
.projets > div::-webkit-scrollbar {
height: 6px;
display: block;
}
.projets > div::-webkit-scrollbar-track {
background: rgba(0,0,0,0.05);
border-radius: 10px;
}
.projets > div::-webkit-scrollbar-thumb {
background: var(--vert-clair);
border-radius: 10px;
}
2026-07-27 15:02:36 +00:00
/* Cartes Projets */
2026-07-27 14:10:44 +00:00
.projets > div > div {
flex: 0 0 100%;
scroll-snap-align: center;
background-color: var(--blanc);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.projets img {
width: 100%;
height: 220px;
object-fit: cover;
display: block;
}
.projets p {
padding: 1rem;
text-align: center;
font-size: 0.95rem;
}
2026-07-27 15:02:36 +00:00
/* Footer */
footer {
background-color: rgb(78 125 19 / 0.88);
color: var(--blanc);
2026-07-27 14:10:44 +00:00
text-align: center;
2026-07-27 15:02:36 +00:00
padding: 2rem 1rem;
margin-top: 2rem;
font-size: 0.95rem;
2026-07-27 14:10:44 +00:00
}
2026-07-27 15:02:36 +00:00
/* Footer Layout */
.footer-sections {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
2026-07-27 14:10:44 +00:00
margin-bottom: 1rem;
}
2026-07-27 15:02:36 +00:00
.footer-block {
width: 100%;
}
.footer-block h3 {
2026-07-27 14:10:44 +00:00
font-size: 1.2rem;
2026-07-27 15:02:36 +00:00
margin-bottom: 1rem;
text-transform: uppercase;
letter-spacing: 1px;
2026-07-27 14:10:44 +00:00
}
2026-07-27 15:02:36 +00:00
.footer-block p {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 0.8rem;
word-break: break-word;
2026-07-27 14:10:44 +00:00
}
2026-07-27 15:02:36 +00:00
.footer-block i {
width: 20px;
2026-07-27 14:10:44 +00:00
text-align: center;
}
2026-07-27 15:02:36 +00:00
/* Media Queries */
2026-07-27 14:10:44 +00:00
@media (min-width: 768px) {
#photo {
2026-07-27 15:02:36 +00:00
height: 350px;
2026-07-27 14:10:44 +00:00
margin-bottom: 2rem;
}
2026-07-28 08:25:20 +00:00
.banner p {
font-size: 20px;
}
2026-07-27 14:10:44 +00:00
.projets h2::after {
display: none;
}
.projets > div {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
overflow-x: visible;
scroll-snap-type: none;
padding-bottom: 0;
}
.projets > div > div {
2026-07-27 15:02:36 +00:00
flex: auto;
}
.footer-sections {
flex-direction: row;
justify-content: space-around;
align-items: flex-start;
max-width: 800px;
margin-left: auto;
margin-right: auto;
2026-07-28 08:25:20 +00:00
text-align: center;
2026-07-27 15:02:36 +00:00
}
.footer-block p {
2026-07-28 08:25:20 +00:00
justify-content: center;
}
}
@media (min-width: 1024px) {
/* Organisation de la bannière */
.banner {
flex-direction: row-reverse;
width: 100vw;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
align-items: center;
margin-bottom: 3rem;
border-top: 2px solid var(--vert-clair);
border-bottom: 2px solid var(--vert-clair);
2026-07-27 14:10:44 +00:00
}
2026-07-28 08:25:20 +00:00
/* Le texte de la bannière */
.banner p {
width: 45vw;
margin: 0;
border: none;
font-size: 22px;
word-spacing: -3px;
padding: 0px 0px 0px 30px;
}
2026-07-28 08:44:35 +00:00
/* On masque la photo classique */
2026-07-28 08:25:20 +00:00
#photo {
display: none;
}
2026-07-28 08:44:35 +00:00
/* On affiche l'image "small" */
2026-07-28 08:25:20 +00:00
#photosmall {
2026-07-28 08:44:35 +00:00
display: block;
2026-07-28 08:25:20 +00:00
width: 55vw;
height: 450px;
margin: 0;
2026-07-28 08:44:35 +00:00
object-fit: cover;
2026-07-28 08:25:20 +00:00
-webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
mask-image: linear-gradient(to right, transparent 0%, black 25%);
}
2026-07-28 08:44:35 +00:00
/* Ajustement des images de la galerie avec zoom */
2026-07-28 08:25:20 +00:00
.projets img {
height: 320px;
2026-07-28 08:44:35 +00:00
transition: transform 0.4s ease;
2026-07-28 08:25:20 +00:00
}
.projets > div > div:hover img {
2026-07-28 08:44:35 +00:00
transform: scale(1.08);
2026-07-28 08:25:20 +00:00
}
2026-07-28 08:44:35 +00:00
}
2026-07-28 08:25:20 +00:00
2026-07-28 08:44:35 +00:00
@media (min-width: 1440px) {
/* On autorise le contenu à s'élargir davantage */
main {
max-width: 1400px;
}
2026-07-28 08:25:20 +00:00
2026-07-28 08:44:35 +00:00
/* On masque l'image "small" pour laisser place à la "large" */
#photosmall {
display: none;
}
2026-07-28 08:25:20 +00:00
2026-07-28 08:44:35 +00:00
/* On affiche l'image "large" avec les mêmes effets que la "small" */
#photolarge {
display: block;
width: 55vw;
height: 450px;
margin: 0;
object-fit: cover;
-webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
mask-image: linear-gradient(to right, transparent 0%, black 25%);
2026-07-28 08:25:20 +00:00
}
2026-07-28 08:44:35 +00:00
/* On aère la grille des projets */
.projets > div {
gap: 2.5rem;
}
/* On agrandit considérablement les photos */
.projets img {
height: 400px;
}
.banner p {
font-size: 25px;
}
@media (min-width: 1740px) {
.banner p {
font-size: 28px;
}
}
2026-07-27 14:10:44 +00:00
}