285 lines
4.8 KiB
CSS
285 lines
4.8 KiB
CSS
/*
|
|
Theme Name: WP Theme SEN2
|
|
Theme URI: https://ton-site.com/wp-theme-sen2
|
|
Author: Nicolas Houzeau
|
|
Author URI: https://ton-site.com
|
|
Description: Un thème sobre et moderne pour portfolio photo, en blanc cassé. Compatible avec Envira Gallery et personnalisable via le Customizer.
|
|
Version: 1.1.0 <!-- Ajout d'un menu à doite -->
|
|
License: GNU General Public License v2 or later
|
|
Text Domain: wp-theme-sen2
|
|
*/
|
|
|
|
/* Réinitialisation et base */
|
|
body {
|
|
font-family: 'Montserrat', sans-serif;
|
|
background-color: #F9F9F9;
|
|
color: #333333;
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 16px;
|
|
}
|
|
|
|
a {
|
|
color: #555555;
|
|
text-decoration: none;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
a:hover {
|
|
color: #E1306C;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Header et slogan */
|
|
header {
|
|
background-color: #F9F9F9;
|
|
padding: 30px 0;
|
|
border-bottom: 1px solid #EEEEEE;
|
|
}
|
|
|
|
.site-branding {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.site-title {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: #333333;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.site-title a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.site-slogan {
|
|
display: block;
|
|
font-family: 'Montserrat', sans-serif;
|
|
font-weight: 300;
|
|
font-size: 16px;
|
|
color: #555555;
|
|
letter-spacing: 0.5px;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.main-navigation ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.main-navigation a {
|
|
font-weight: 500;
|
|
color: #333333;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.main-navigation a:hover {
|
|
color: #E1306C;
|
|
}
|
|
/* Header et navigation */
|
|
.site-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.site-branding {
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
text-align: center;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.main-navigation {
|
|
margin-left: auto; /* Pousse le menu principal à droite */
|
|
}
|
|
|
|
.secondary-navigation {
|
|
margin-right: auto; /* Pousse le menu secondaire à gauche */
|
|
}
|
|
|
|
/* Style des menus */
|
|
.secondary-navigation ul,
|
|
.main-navigation ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.secondary-navigation a,
|
|
.main-navigation a {
|
|
font-family: 'Montserrat', sans-serif;
|
|
font-weight: 400;
|
|
color: #555555;
|
|
text-decoration: none;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.secondary-navigation a:hover,
|
|
.main-navigation a:hover {
|
|
color: #E1306C;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.site-header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
position: relative;
|
|
}
|
|
|
|
.site-branding {
|
|
position: static;
|
|
transform: none;
|
|
order: 1;
|
|
}
|
|
|
|
.secondary-navigation {
|
|
order: 2;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.main-navigation {
|
|
order: 3;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
background-color: #F9F9F9;
|
|
padding: 20px 0;
|
|
text-align: center;
|
|
border-top: 1px solid #EEEEEE;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.social-icons {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.instagram-icon {
|
|
color: #333333;
|
|
font-size: 24px;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.instagram-icon:hover {
|
|
color: #E1306C;
|
|
}
|
|
|
|
/* Galeries Envira */
|
|
.envira-gallery-wrap {
|
|
background-color: #F9F9F9;
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
margin: 2em 0;
|
|
}
|
|
|
|
.envira-gallery-item {
|
|
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
}
|
|
|
|
.envira-gallery-item:hover {
|
|
transform: scale(1.03);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Formulaire de contact */
|
|
.wpforms-container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background-color: #FFFFFF;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.wpforms-submit {
|
|
background-color: #333333;
|
|
color: #FFFFFF;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.wpforms-submit:hover {
|
|
background-color: #E1306C;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.site-header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.secondary-navigation {
|
|
order: 3;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* Page À propos */
|
|
.about-banner {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
background-color: #F5F5F5;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.about-banner h1 {
|
|
font-size: 36px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.about-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 40px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.about-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.about-image {
|
|
flex: 1;
|
|
}
|
|
|
|
.about-image img {
|
|
width: 100%;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.about-content {
|
|
flex-direction: column;
|
|
}
|
|
.about-banner h1 {
|
|
font-size: 28px;
|
|
}
|
|
}
|