/*
Theme Name: Mon Thème WordPress
Theme URI: http://example.com/mon-theme-wordpress
Author: Votre Nom
Author URI: http://example.com
Description: Un thème WordPress personnalisé pour votre site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, responsive, blog
*/

/* Importation de la police Poppins depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Styles de base */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    /* Ajout d'un padding-top pour compenser l'en-tête sticky */
    padding-top: 0;
    transition: padding-top 0.3s ease;
}

body.sticky-header {
    padding-top: 110px; /* Doit être approximativement égal à la hauteur totale de l'en-tête */
}

/* Banner Hero Section */
.hero-banner {
    position: relative;
    min-height: 600px;
    background-color: #f4f4f4;
    background-image: url('https://placehold.co/1920x1080/cccccc/gray?text=Agency+Background');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.banner-diagonal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.diagonal {
    position: absolute;
    width: 200%;
    height: 100%;
    transform-origin: top left;
}

.red-diagonal {
    background-color: rgba(224, 43, 32, 0.7);
    transform: rotate(15deg) translateY(-50%) translateX(-15%);
}

.black-diagonal {
    background-color: rgba(0, 0, 0, 0.6);
    transform: rotate(30deg) translateY(-30%) translateX(-10%);
}

.banner-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    color: #fff;
}

.banner-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.banner-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 30px;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.explore-btn .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.explore-btn:hover {
    background-color: #e02b20;
    color: #fff;
}

.explore-btn:hover .arrow {
    transform: translateX(5px);
}

/* Responsive styles pour le banner */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-text {
        font-size: 1rem;
    }
    
    .hero-banner {
        min-height: 500px;
        padding: 60px 0;
    }
}

/* Styles de l'en-tête */
.site-header {
    background-color: #000;
    color: #fff;
    padding: 30px 0;
    width: 100%;
    transition: all 0.3s ease;
    position: relative; /* Position par défaut */
    z-index: 1000; /* S'assurer que l'en-tête reste au-dessus des autres éléments */
}

/* En-tête fixe lors du défilement */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ajustement pour la barre d'administration WordPress */
.admin-bar .site-header.sticky {
    top: 32px; /* Hauteur de la barre d'administration WordPress */
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header.sticky {
        top: 46px; /* Hauteur de la barre d'administration sur mobile */
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 60px; /* Ajout d'une hauteur minimale pour l'en-tête */
}

/* Logo */
.site-branding {
    text-align: center;
    margin-bottom: 10px;
    position: absolute;
    top: -10px; /* Ajusté pour la hauteur augmentée de l'en-tête */
    left: 50%;
    transform: translateX(-50%);
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 36px; /* Augmentation de la taille du texte du logo (était 28px) */
    font-weight: 700; /* Bold dans Poppins */
    color: #fff;
}

.logo-m {
    color: #e02b20;
    font-size: 40px; /* Augmentation de la taille du M (était 32px) */
}

/* Menu principal */
.main-navigation {
    flex-grow: 1;
    text-align: center;
    margin-top: 10px; /* Ajout d'une marge pour s'adapter à la hauteur de l'en-tête */
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.menu-items li {
    margin: 0 15px;
}

.menu-items a {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px; /* Augmentation de la taille de police pour le menu (était 16px) */
    font-weight: 500; /* Medium dans Poppins */
    padding: 5px 0;
    transition: color 0.3s;
}

.menu-items a:hover {
    color: #e02b20;
}

/* Icônes sociales */
.social-icons {
    display: flex;
    margin-top: 10px; /* Ajout d'une marge pour s'adapter à la hauteur de l'en-tête */
}

.social-icon {
    color: #fff;
    margin-right: 20px; /* Augmentation de l'espacement entre les icônes (était 15px) */
    font-size: 18px; /* Augmentation de la taille des icônes (était 16px) */
    transition: color 0.3s;
}

.social-icon:hover {
    color: #e02b20;
}

/* Espace vide (remplace les actions utilisateur) */
.empty-space {
    width: 150px; /* Largeur approximative qu'occupaient les actions utilisateur */
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 20px 15px; /* Ajout de padding vertical pour l'en-tête en mode mobile */
    }
    
    .site-branding {
        position: static;
        transform: none;
        margin-bottom: 20px; /* Augmentation de la marge (était 15px) */
    }
    
    .social-icons {
        margin-bottom: 20px; /* Augmentation de la marge (était 15px) */
        justify-content: center; /* Centre les icônes sociales sur mobile */
    }
    
    .main-navigation {
        margin-bottom: 20px; /* Augmentation de la marge (était 15px) */
    }
    
    .menu-items {
        flex-direction: column;
    }
    
    .menu-items li {
        margin: 8px 0; /* Augmentation de l'espacement vertical (était 5px) */
    }
    
    .empty-space {
        display: none; /* Cache l'espace vide sur mobile */
    }
}

/* Styles généraux */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
}

a {
    color: #3498db;
}

a:hover {
    color: #2980b9;
}

/* ===== Footer Styles ===== */
.site-footer {
  position: relative;
  background: #0e0e0f;
  color: #cfcfcf;
  overflow: hidden;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 16px 50px;
}

.footer-brand .footer-logo .logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
}

.footer-subtitle {
  margin-top: 30px;
  letter-spacing: 0.2em;
  color: #9fa0a2;
  font-size: 12px;
}

.subscribe-form {
  margin-top: 16px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid #2b2b2d;
  padding-bottom: 8px;
}
.subscribe-form i {
  color: #9fa0a2;
  margin-right: 12px;
}
.subscribe-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ddd;
  font-size: 22px;
  padding: 6px 0;
}
.subscribe-form input::placeholder { color: #555; }

.contact-info { margin-top: 20px; }
.contact-item { margin: 8px 0; color: #a9a9ab; }
.contact-item .label { color: #e02b20; font-weight: 600; margin-right: 8px; }

.footer-heading {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 10px 0; }
.footer-links a { color: #cfcfcf; text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: #ffffff; }

.footer-bottom {
  position: relative;
  border-top: 1px solid #1b1c1e;
  background: #0e0e0f;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px;
  color: #9fa0a2;
  text-align: left;
}
.footer-bottom .brand-link { color: #e02b20; text-decoration: none; }
.footer-bottom .brand-link:hover { color: #ff3c30; }

/* Watermark letter in bottom right */
.footer-watermark {
  position: absolute;
  right: 24px;
  bottom: 10px;
  font-weight: 800;
  font-size: 42px;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Footer watermark image */
.footer-watermark-img {
  max-width: 54px;
  max-height: 54px;
  opacity: 0.12;
  display: block;
}

/* Decorative diagonal overlays */
.site-footer::before,
.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: -15%;
  width: 60%;
  height: 100%;
  transform: skewX(-35deg);
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}
.site-footer::after {
  right: -5%;
  width: 45%;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
}

/* Dots pattern */
.footer-top::after {
  content: '';
  position: absolute;
  top: 40px;
  right: 40px;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .6;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 50px 16px 30px; }
  .footer-watermark { font-size: 32px; right: 16px; }
}