/*
Theme Name: Pyro Custom Theme
Theme URI: https://artvisionaproduction.com/
Author: Elie Wrona
Author URI: https://artvisionaproduction.com/
Description: Thème personnalisé pour le site de feux d'artifice.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pyro-custom-theme
Tags: custom-theme, fireworks
*/

/* ----- Réglages Généraux ----- */
html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #111;
    color: #eee;
    font-family: sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
}

/* Arrière-plan spécifique pour la page Collectivités (ID 20) */
body.page-id-20 {
    background-image: url('/wp-content/themes/pyro-custom-theme/images/background-collectivites.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #111;
}

a {
    color: #f0a500;
    text-decoration: none;
}
a:hover {
    /* text-decoration: underline; */
}

/* ----- Styles Header Général ----- */
.site-header {
    background-color: #000;
    padding: 0 25px;
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    height: 80px;
}

.site-header-inner {
    height: 100%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.site-branding { flex-shrink: 0; }
/* AJOUTE LA RÈGLE POUR LE LOGO ICI */
.site-branding .custom-logo {
    height: 60px;
    width: auto;
    display: block;
}
.site-branding img {
    height: 50px;
    width: auto;
    display: block;
}

/* ----- Styles Menu Principal (Trait Orange Fixe) ----- */
.main-navigation ul#primary-menu-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.main-navigation ul li a {
    display: block;
    padding: 5px 0;
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}
.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f0a500;
    visibility: visible;
}
.main-navigation ul li a:hover,
.main-navigation ul li a:focus {
    color: #fff;
    text-decoration: none;
    outline: none;
}
.main-navigation ul li.current-menu-item > a {
    color: #fff;
}

/* ----- Style Section Héros (Page Accueil) ----- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    background-color: #000;
    background-image: url('/wp-content/themes/pyro-custom-theme/images/hero-bg-fireworks.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}
.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 3.5em;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}
.hero-subtitle {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 2em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}
.hero-button {
    display: inline-block;
    background-color: #f0a500;
    color: #111;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}
.hero-button:hover {
    background-color: #ffbf47;
    text-decoration: none;
    transform: scale(1.05);
}

/* Cache titre page statique si besoin */
body.page:not(.page-template-default) .entry-title,
body.home.page .entry-title {
    display: none;
}

/* Conteneur Principal (pour pousser le footer) */
.site-content {
    padding-top: 63px;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

/* ----- Styles pour la popup et l'overlay ----- */
.modal-overlay#spectaclesOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-popup#spectaclesPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('/wp-content/themes/pyro-custom-theme/images/popup-firework.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 5px;
    padding: 40px 50px;
    max-width: 800px;
    width: 90%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    box-sizing: border-box;
    color: #eee;
    border: 1px solid #333;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-family: sans-serif;
    font-size: 2em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.modal-close:hover {
    color: #fff;
}
.gateway-header {
    text-align: center;
    margin-bottom: 35px;
}
.gateway-main-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.5em;
    font-weight: normal;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.gateway-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.gateway-option {
    flex: 1;
    min-width: 250px;
    text-align: center;
}
.gateway-option-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.8em;
    color: #eee;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.gateway-option-desc {
    font-family: sans-serif;
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}
.gateway-button {
    display: inline-block;
    background-color: #f0a500;
    color: #111;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 0.9em;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}
.gateway-button:hover {
    background-color: #ffbf47;
    color: #111;
    text-decoration: none;
    transform: scale(1.05);
    border: none;
}
@media (max-width: 600px) {
    .gateway-popup {
        padding: 30px 20px;
        width: 95%;
    }
    .gateway-main-title {
        font-size: 1.8em;
    }
    .gateway-option-title {
        font-size: 1.4em;
    }
    .gateway-options {
        gap: 20px;
        flex-direction: column;
    }
    .gateway-option {
        min-width: unset;
        padding: 10px;
    }
    .gateway-option-desc {
        font-size: 0.85em;
    }
    .gateway-button {
        font-size: 0.85em;
        padding: 8px 20px;
    }
    .modal-close {
        font-size: 1.8em;
        top: 8px;
        right: 10px;
    }
}

/* ----- Styles Page Collectivités (ID 20) ----- */
.collectivites-cta .hero-button {
    margin-top: 25px;
}
body.page-id-20 .collectivites-hero,
body.page-id-20 .collectivites-portfolio,
body.page-id-20 .collectivites-engagements,
body.page-id-20 .collectivites-cta {
    background: none !important;
}
body.page-id-20 h1,
body.page-id-20 h2,
body.page-id-20 h3 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    color: #fff;
}
body.page-id-20 p,
body.page-id-20 li {
    color: #ddd;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
}
body.page-id-20 .collectivites-hero-subtitle,
body.page-id-20 .engagement-item p,
body.page-id-20 .gateway-option-desc {
    color: #ccc;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
}
body.page-id-20 .site-main a:not(.hero-button):not(.cta-button):not(.gateway-button) {
    color: #f0a500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
body.page-id-20 .site-main a:hover:not(.hero-button):not(.cta-button):not(.gateway-button) {
    color: #ffbf47;
}
body.page-id-20 .engagement-item .engagement-icon-svg {
    color: #f0a500;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.8));
}
body.page-id-20 .hero-button {
    position: relative;
    z-index: 5;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.content-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 5;
}
.collectivites-hero {
    padding: 60px 20px;
    text-align: center;
}
.collectivites-hero-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 0.3em;
    font-weight: normal;
}
.collectivites-hero-subtitle {
    font-family: sans-serif;
    font-size: 1.1em;
    margin-bottom: 0;
}

/* === DEBUT SECTION PORTFOLIO SLIDER ( POUR SWIPER ) === */
.collectivites-portfolio {
    padding: 0px 0;
}
.collectivites-portfolio h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2em;
    font-weight: normal;
}
.portfolio-slider-wrapper.swiper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.portfolio-grid.swiper-wrapper {
    align-items: center;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    height: auto;      /* Permet à la hauteur de s'adapter au contenu */
    min-height: unset; /* Annule toute hauteur minimale par défaut ou héritée */
}
.portfolio-item.swiper-slide {
    box-sizing: border-box;
    height: auto;
    border: 1px solid #f0a500;
    border-radius: 4px;
}
.portfolio-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.portfolio-item.video-item a {
    display: block;
    position: relative;
    line-height: 0;
}
.portfolio-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.portfolio-item.video-item a:hover .play-icon {
    background-color: rgba(240, 165, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
.portfolio-item .play-icon svg {
    width: 50%;
    height: auto;
    fill: #fff;
}
.portfolio-item-caption {
    background-color: #000;
    padding: 10px 15px;
    text-align: center;
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.4;
    text-shadow: none;
    min-height: 4.5em;
    border-top: 1px solid #555;
}
.portfolio-slider-wrapper .swiper-button-prev,
.portfolio-slider-wrapper .swiper-button-next {
    background-color: #f0a500;
    border: none;
    border-radius: 50px;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    color: #111 !important;
    position: absolute;
    top: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.portfolio-slider-wrapper .swiper-button-prev::after,
.portfolio-slider-wrapper .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
    color: inherit;
}
.portfolio-slider-wrapper .swiper-button-prev:hover,
.portfolio-slider-wrapper .swiper-button-next:hover {
    background-color: #ffbf47;
    color: #111 !important;
    transform: scale(1.05);
}
.portfolio-slider-wrapper .swiper-button-prev {
    left: 15px;
}
.portfolio-slider-wrapper .swiper-button-next {
    right: 15px;
}
@media (max-width: 1150px) {
    .portfolio-slider-wrapper .swiper-button-prev {
        left: 10px;
    }
    .portfolio-slider-wrapper .swiper-button-next {
        right: 10px;
    }
}
@media (max-width: 480px) {
    .portfolio-slider-wrapper .swiper-button-prev,
    .portfolio-slider-wrapper .swiper-button-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    .portfolio-slider-wrapper .swiper-button-prev::after,
    .portfolio-slider-wrapper .swiper-button-next::after {
        font-size: 14px;
    }
    .portfolio-slider-wrapper .swiper-button-prev {
        left: 5px;
    }
    .portfolio-slider-wrapper .swiper-button-next {
        right: 5px;
    }
}
/* === FIN SECTION PORTFOLIO SLIDER === */

/* Section Engagements */
.collectivites-engagements {
    padding: 60px 20px -30px; /* Réduit padding-bottom à 30px */
    text-align: center;
}
.collectivites-engagements .section-title {
    margin-bottom: 40px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.9em;
    font-weight: normal;
    text-align: center; /* Force le centrage du titre */
    margin-left: 0; /* Supprime toute marge parasite */
    margin-right: 0;
}
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    justify-content: center; /* Centre les colonnes de la grille */
}
.engagement-item {
    display: flex; /* Utilise flexbox pour un centrage précis */
    flex-direction: column;
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    text-align: center;
}
.engagement-item .engagement-icon-svg {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    stroke-width: 1.5;
}
.engagement-item p {
    margin: 0;
    font-family: sans-serif;
    font-size: 0.85em;
    line-height: 1.4;
}

/* Section CTA Collectivités */
.collectivites-cta {
    padding: 20px 20px; /* Réduit padding à 20px pour rapprocher le bouton */
    text-align: center;
}

/* --- Footer --- */
.site-footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 10px 0;
    font-size: 0.85em;
    position: relative;
    z-index: 10;
}

/* ----- Styles Menu Mobile ----- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    margin: 0;
    cursor: pointer;
    font-size: 30px;
    color: #eee;
    line-height: 1;
    z-index: 1001;
}
.mobile-toggle:hover {
    color: #f0a500;
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}
.mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #1c1c1c;
    color: #eee;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    overflow-y: auto;
    visibility: hidden;
    transition: right 0.35s ease-in-out, visibility 0s linear 0.35s;
    display: flex;
    flex-direction: column;
}
.mobile-menu.is-open {
    right: 0;
    visibility: visible;
    transition-delay: 0s;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #2a2a2a;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}
.mobile-menu-header span {
    font-weight: bold;
    color: #eee;
    font-size: 1.1em;
}
.mobile-menu-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #aaa;
}
.mobile-menu-close:hover {
    color: #fff;
}
.mobile-menu-content {
    padding: 0;
    flex-grow: 1;
    overflow-y: auto;
}
.mobile-menu-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #ddd;
    font-weight: 500;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1em;
}
.mobile-menu-link:hover {
    background-color: #2a2a2a;
    color: #f0a500;
}
.mobile-category {
    border-bottom: 1px solid #333;
}
.mobile-category-header {
    padding: 15px 20px;
    font-weight: bold;
    background: transparent;
    cursor: pointer;
    position: relative;
    color: #eee;
    transition: background-color 0.2s ease;
    font-size: 1em;
}
.mobile-category-header:hover {
    background-color: #2a2a2a;
}
.mobile-category-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.2em;
    color: #888;
}
.mobile-category-header.active::after {
    content: '−';
}
.mobile-category-header.active {
    background-color: #2a2a2a;
}
.mobile-submenu {
    display: none;
    padding: 0;
    background: #111;
}
.mobile-submenu a {
    display: block;
    padding: 12px 20px 12px 35px;
    text-decoration: none;
    color: #ccc;
    border-bottom: 1px solid #333;
    font-size: 0.9em;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-submenu a:last-child {
    border-bottom: none;
}
.mobile-submenu a:hover {
    background-color: #2a2a2a;
    color: #f0a500;
}
.mobile-social-links-footer {
    padding: 20px;
    margin-top: auto;
    background: #2a2a2a;
    border-top: 1px solid #444;
    text-align: center;
    flex-shrink: 0;
}
.mobile-social-links-footer a {
    display: inline-block;
    text-decoration: none;
    margin: 0 12px;
    padding: 5px 0;
    color: #aaa;
    font-size: 0.9em;
    transition: color 0.2s ease;
}
.mobile-social-links-footer a:hover {
    color: #f0a500;
}

/* ----- Responsive Général ----- */
@media (max-width: 768px) {
    .site-header {
        height: 70px;
        padding: 0 15px;
    }
    .site-branding img {
        height: 40px;
    }
    .site-title a {
        font-size: 1em;
    }
    .main-navigation {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .site-content {
        padding-top: 50px;
    }
    .hero-section {
        padding: 40px 20px;
    }
    .collectivites-hero {
        padding: 40px 20px;
    }
    .collectivites-engagements {
        padding: 40px 20px;
        text-align: center; /* Assure que tout contenu texte est centré */
    }
    .collectivites-engagements .section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
        text-align: center; /* Force le centrage du titre */
        margin-left: 0; /* Supprime toute marge parasite */
        margin-right: 0;
    }
    .engagements-grid {
        justify-content: center; /* Centre les colonnes de la grille */
    }
    .engagement-item {
        display: flex; /* Utilise flexbox pour un centrage précis */
        flex-direction: column;
        align-items: center; /* Centre verticalement */
        justify-content: center; /* Centre horizontalement */
        text-align: center;
    }
    .engagement-item .engagement-icon-svg {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }
    .engagement-item p {
        font-size: 0.8em;
        line-height: 1.4;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .hero-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .collectivites-hero-title {
        font-size: 2.0em;
    }
    .collectivites-hero-subtitle {
        font-size: 1.0em;
    }
    .portfolio-slider-wrapper {
        padding: 0 45px;
    }
    .swiper-button-prev {
        left: 10px !important;
    }
    .swiper-button-next {
        right: 10px !important;
    }
    /* ----- Styles SPÉCIFIQUES Page Collectivités (ID 20) SUR MOBILE ----- */
    /* 1. Enlève l'image de fond desktop du BODY pour la page 20 sur mobile */
    body.page-id-20 { 
        background-image: none !important; /* Force à enlever l'image desktop */
        background-color: #111; /* Garde un fond sombre de base */
    }

    /* 2. Applique l'image de fond mobile AU CONTENU (.site-content) de la page 20 */
    body.page-id-20 .site-content { 
        background-image: url('/wp-content/themes/pyro-custom-theme/images/background-collectivites-mobile6.png');
        background-size: cover; 
        background-position: center bottom; /* Aligné en bas */
        background-repeat: no-repeat; 
        background-color: #111; /* Couleur si image pas chargée */
    }

    /* --- Assurer que le footer reste bien opaque par-dessus --- */
    body.page-id-20 .site-footer {
        background-color: #111; /* Ré-appliquer au cas où */
        position: relative;
        z-index: 10;
        margin-top: 0px
    }

    body.page-id-20 .collectivites-cta .hero-button {
        margin-top: 20px; /* Réduit l'espace au-dessus du bouton */
        transform: translateY(-40px); /* Remonte le bouton de 10px */
    }

    /* ----- Styles SPÉCIFIQUES Page Particuliers (ID 22) SUR MOBILE ----- */
    body.page-id-22 { 
        background-image: none !important; /* Force à enlever l'image desktop */
        background-color: #111; /* Garde un fond sombre de base */
    }

    body.page-id-22 .site-content { 
        background-image: url('/wp-content/themes/pyro-custom-theme/images/background-paticuliers-mobile.png');
        background-size: cover; 
        background-position: center bottom; /* Aligné en bas */
        background-repeat: no-repeat; 
        background-color: #111; /* Couleur si image pas chargée */
    }

    body.page-id-22 .site-footer {
        background-color: #111; /* Ré-appliquer au cas où */
        position: relative;
        z-index: 10;
        margin-top: 0px
    }

    body.page-id-22 .collectivites-cta .hero-button {
        margin-top: 20px; /* Réduit l'espace au-dessus du bouton */
        transform: translateY(-40px); /* Remonte le bouton de 10px */
    }
}
@media (max-width: 480px) {
    .portfolio-slider-wrapper {
        padding: 0 40px;
    }
    .swiper-button-prev {
        left: 5px !important;
    }
    .swiper-button-next {
        right: 5px !important;
    }
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px;
    }
}

/* ----- Styles SPÉCIFIQUES Page Particuliers (ID 22) ----- */
body.page-id-22 {
    background-image: url('/wp-content/themes/pyro-custom-theme/images/background-particuliers.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #111;
}
body.page-id-22 .particuliers-hero,
body.page-id-22 .particuliers-portfolio,
body.page-id-22 .particuliers-engagements,
body.page-id-22 .particuliers-cta {
    background: none !important;
}
body.page-id-22 h1, body.page-id-22 h2, body.page-id-22 h3 { text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9); color: #fff; }
body.page-id-22 p, body.page-id-22 li { color: #ddd; text-shadow: 1px 1px 4px rgba(0, 0, 0, 1); }
body.page-id-22 .particuliers-hero-subtitle { color: #ccc; text-shadow: 1px 1px 4px rgba(0, 0, 0, 1); }
body.page-id-22 .engagement-item p { color: #ccc; text-shadow: 1px 1px 4px rgba(0, 0, 0, 1); }
body.page-id-22 .site-main a:not(.hero-button):not(.cta-button):not(.gateway-button) { color: #f0a500; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); }
body.page-id-22 .site-main a:hover:not(.hero-button):not(.cta-button):not(.gateway-button) { color: #ffbf47; }
body.page-id-22 .engagement-item .engagement-icon-svg { color: #f0a500; filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.8)); }
body.page-id-22 .hero-button { position: relative; z-index: 5; text-shadow: 1px 1px 1px rgba(0,0,0,0.5); }
.particuliers-hero { padding: 80px 20px; text-align: center; }
.particuliers-hero-title { font-family: Georgia, 'Times New Roman', Times, serif; font-size: 3em; margin-top: 0; margin-bottom: 0.3em; font-weight: normal; }
.particuliers-hero-subtitle { font-family: sans-serif; font-size: 1.1em; margin-bottom: 0; }
.particuliers-portfolio { padding: 60px 0; }
.particuliers-engagements { padding: 40px 0; text-align: center; }
.particuliers-cta { padding: 30px 20px; text-align: center; }
body.page-id-22 .site-footer {
    background-color: #111; 
    position: relative;
    z-index: 10;
}

/* Ajustement pour header fixe */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Style de la section Qui Sommes-Nous */
.about-section {
    position: relative;
    background: #111;
    padding: 80px 20px;
    color: #eee;
    overflow: hidden;
    z-index: 1;
    scroll-margin-top: 100px;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}
.about-section .content-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.about-section .section-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.2em;
    font-weight: normal;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
}
.about-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #f0a500;
    transition: width 0.3s ease;
}
.about-section .section-title:hover::after {
    width: 70px;
}
.about-section .about-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.about-section .about-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    margin: 0 auto;
}
.about-section .about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #f0a500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-section .about-image img.fade-in {
    opacity: 1;
    transform: translateY(0);
}
.about-section .about-image img:hover {
    transform: scale(1.05);
}
.about-section .about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.about-section .about-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}
.about-section .about-text h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 15px;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.about-section .about-text p {
    font-size: 1em;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
}
.about-section .about-button {
    display: inline-block;
    background-color: #f0a500;
    color: #111;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
.about-section .about-button:hover {
    background-color: #ffbf47;
    transform: scale(1.05);
}



/* Style de la section Méthodologie */
.methodologie-section {
    position: relative;
    background: url('/wp-content/themes/pyro-custom-theme/images/background-methodologie.webp') no-repeat center center/cover;
    background-color: #111;
    padding: 80px 20px;
    color: #eee;
    overflow: hidden;
    z-index: 1;
    scroll-margin-top: 100px;
}
.methodologie-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.methodologie-section::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 160px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(17,17,17,0.9)" fill-opacity="1" d="M0,192L48,186.7C96,181,192,171,288,176C384,181,480,203,576,202.7C672,203,768,181,864,165.3C960,149,1056,139,1152,154.7C1248,171,1344,213,1392,234.7L1440,256L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat center bottom/cover;
    z-index: 0;
    pointer-events: none;
}
.methodologie-section .content-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.methodologie-section .section-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.2em;
    font-weight: normal;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
}
.methodologie-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #f0a500;
    transition: width 0.3s ease;
}
.methodologie-section .section-title:hover::after {
    width: 70px;
}
.methodologie-section .section-intro {
    font-size: 1em;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
}
.methodologie-section .methodologie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    justify-content: center;
}
.methodologie-section .methodologie-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #f0a500;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}
.methodologie-section .methodologie-item:hover {
    transform: translateY(-5px);
}
.methodologie-section .methodologie-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}
.methodologie-section .methodologie-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.8));
}
.methodologie-section .methodologie-item h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 10px;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.methodologie-section .methodologie-item p {
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
}
.methodologie-section .methodologie-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.methodologie-section .methodologie-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}
.methodologie-section .methodologie-item:nth-child(2).fade-in { transition-delay: 0.2s; }
.methodologie-section .methodologie-item:nth-child(3).fade-in { transition-delay: 0.4s; }
.methodologie-section .methodologie-item:nth-child(4).fade-in { transition-delay: 0.6s; }
.methodologie-section .methodologie-item:nth-child(5).fade-in { transition-delay: 0.8s; }
.methodologie-section .methodologie-item:nth-child(6).fade-in { transition-delay: 1.0s; }
/* Centrer les deux derniers éléments (Sécurité Absolue et Nettoyage et Éco-Responsabilité) */
.methodologie-section .methodologie-grid:has(.methodologie-item:nth-child(5)) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    justify-content: center;
}
.methodologie-section .methodologie-item:nth-child(5),
.methodologie-section .methodologie-item:nth-child(6) {
    grid-column: span 1;
}
@media (min-width: 768px) {
    .methodologie-section .methodologie-grid:has(.methodologie-item:nth-child(5)) {
        display: grid;
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        justify-content: center;
    }
    .methodologie-section .methodologie-item:nth-child(5) {
        grid-column: 2 / 3; /* Place le 5e élément dans la 2e colonne */
    }
    .methodologie-section .methodologie-item:nth-child(6) {
        grid-column: 3 / 4; /* Place le 6e élément dans la 3e colonne */
    }
}
.methodologie-section .methodologie-button {
    display: inline-block;
    background-color: #f0a500;
    color: #111;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
.methodologie-section .methodologie-button:hover {
    background-color: #ffbf47;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .methodologie-section {
        background: url('/wp-content/themes/pyro-custom-theme/images/background-mobile-methodologie.webp') no-repeat center center/cover;
    }
    .methodologie-section .methodologie-grid {
        grid-template-columns: 1fr;
    }
}

/* Style de la section Contact */
.contact-section {
    position: relative;
    background: url('/wp-content/themes/pyro-custom-theme/images/background-contact.webp') no-repeat center center/cover;
    background-color: #111;
    padding: 80px 20px;
    color: #eee;
    overflow: hidden;
    z-index: 1;
    scroll-margin-top: 100px;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.contact-section::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 160px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(17,17,17,0.9)" fill-opacity="1" d="M0,192L48,186.7C96,181,192,171,288,176C384,181,480,203,576,202.7C672,203,768,181,864,165.3C960,149,1056,139,1152,154.7C1248,171,1344,213,1392,234.7L1440,256L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat center bottom/cover;
    z-index: 0;
    pointer-events: none;
}
.contact-section .content-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.contact-section .section-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.2em;
    font-weight: normal;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
}
.contact-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #f0a500;
    transition: width 0.3s ease;
}
.contact-section .section-title:hover::after {
    width: 70px;
}
.contact-section .section-intro {
    font-size: 1em;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
}
.contact-section .section-title,
.contact-section .section-intro,
.contact-section .contact-form {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.contact-section .section-title.fade-in {
    opacity: 1;
    transform: translateY(0);
}
.contact-section .section-intro.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.contact-section .contact-form.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.form-step h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.form-step input,
.form-step select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #f0a500;
    border-radius: 5px;
    background: #222;
    color: #eee;
    font-size: 1em;
}
.form-step input:focus,
.form-step select:focus {
    outline: none;
    border-color: #ffbf47;
}
.form-step label {
    display: block;
    font-size: 1em;
    color: #ccc;
    margin: 5px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.progress-step.active {
    background: #f0a500;
    color: #111;
}
.client-type-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.client-type-btn {
    background: #f0a500;
    color: #111;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.client-type-btn:hover {
    background: #ffbf47;
    transform: scale(1.05);
}
.form-navigation {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}
.form-prev-btn,
.form-next-btn,
.form-submit-btn {
    background: #f0a500;
    color: #111;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.form-prev-btn:disabled,
.form-next-btn:disabled {
    background: #555;
    cursor: not-allowed;
}
.form-prev-btn:hover:not(:disabled),
.form-next-btn:hover:not(:disabled),
.form-submit-btn:hover {
    background: #ffbf47;
    transform: scale(1.05);
}
.form-error,
.form-success {
    background: rgba(255, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.form-success {
    background: rgba(0, 255, 0, 0.2);
}
.form-error p,
.form-success p {
    margin: 5px 0;
    color: #eee;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivité */
@media (max-width: 768px) {
    .about-section .about-content-wrapper { /* Correction ici */
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .about-section .section-title,
    .methodologie-section .section-title {
        font-size: 1.8em;
    }
    .about-section .about-text,
    .methodologie-section .section-intro {
        font-size: 0.9em;
        text-align: center;
    }
    .about-section .about-text h3,
    .methodologie-section .methodologie-item h3 {
        font-size: 1.2em;
    }
    .about-section .about-text p,
    .methodologie-section .methodologie-item p {
        font-size: 0.85em;
    }
    .contact-section .section-title {
        font-size: 1.8em;
    }
    .contact-section .section-intro {
        font-size: 0.9em;
    }
    .contact-form {
        padding: 20px;
    }
    .client-type-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .progress-bar {
        gap: 10px;
    }
    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
}
@media (max-width: 480px) {
    .about-section,
    .methodologie-section,
    .contact-section {
        padding: 50px 15px;
    }
    .about-section .section-title,
    .methodologie-section .section-title,
    .contact-section .section-title {
        font-size: 1.6em;
    }
    .about-section .section-title::after,
    .methodologie-section .section-title::after,
    .contact-section .section-title::after {
        width: 40px;
    }
    .about-section .section-title:hover::after,
    .methodologie-section .section-title:hover::after,
    .contact-section .section-title:hover::after {
        width: 50px;
    }
    .about-section .about-text h3,
    .methodologie-section .methodologie-item h3 {
        font-size: 1.1em;
    }
    .about-section .about-text p,
    .methodologie-section .methodologie-item p {
        font-size: 0.8em;
    }
    .about-section .about-image img {
        border-radius: 8px;
    }
    .about-section .about-button,
    .methodologie-section .methodologie-button {
        padding: 8px 20px;
        font-size: 0.85em;
    }
    .methodologie-section .methodologie-icon {
        width: 35px;
        height: 35px;
    }
    .contact-section .section-intro {
        font-size: 0.85em;
    }
    .form-step h3 {
        font-size: 1.3em;
    }
    .form-prev-btn,
    .form-next-btn,
    .form-submit-btn {
        padding: 8px 20px;
        font-size: 0.85em;
    }
}




/* Style pour le slogan à côté du logo */
.site-branding {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    max-width: 300px;
}

.site-slogan {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1em;
    color: #f0a500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .site-branding {
        gap: 6px !important;
        max-width: 220px;
    }
    .site-branding .custom-logo {
        height: 50px !important;
        width: auto;
    }
    .site-slogan {
        font-size: 0.80em;
    }
}

/* --- Aligner Logo et Slogan côte à côte --- */
.site-branding > a {
    display: flex;        /* <<< Met les enfants (img et span) en ligne */
    align-items: center; /* <<< Centre verticalement l'image et le slogan */
    gap: 15px;           /* <<< Espace entre le logo et le slogan (ajuste) */
    text-decoration: none; /* Enlève le soulignement du lien conteneur */
}

/* Styles pour la popup vidéo */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.video-modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    background: #000;
    border-radius: 5px;
    padding: 20px;
}
.video-modal-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.video-modal-close:hover {
    color: #f0a500;
}
.video-modal-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}
.video-modal-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animation pour la popup spectacles */
.modal-popup#spectaclesPopup {
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
}

.modal-popup#spectaclesPopup.open {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: popupAppear 0.4s ease-out forwards;
}

@keyframes popupAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-overlay#spectaclesOverlay {
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.modal-overlay#spectaclesOverlay.visible {
    visibility: visible;
    opacity: 1;
}

/* Ajuster le footer pour réduire l'espace gris */
footer#colophon {
    background-color: #1a1a1a !important; /* Fond sombre pour correspondre au design */
    padding-top: 10px !important; /* Réduit l'espace interne au-dessus (ajuste selon besoin) */
   
}

/* --- Pied de page --- */

/* Règle générale (Défaut Desktop) */
.site-footer {
    /* ... autres styles ... */
    margin-top: 30px; /* Ta valeur par défaut actuelle */
}

/* Règle générale pour page d'accueil (Desktop & Mobile) */
body.home .site-footer {
    margin-top: 0;
}

/* Règle SPÉCIFIQUE pour page Collectivités (ID 20) - Desktop */
body.page-id-20 .site-footer {
    margin-top: 40px; /* << Mets ici la valeur DESKTOP que tu veux pour page 20 */
}

/* Règle SPÉCIFIQUE pour page Particuliers (ID 22) - Desktop */
body.page-id-22 .site-footer {
    margin-top: 40px; /* << Mets ici la valeur DESKTOP que tu veux pour page 22 */
}


/* --- Styles Responsive --- */
@media (max-width: 768px) {

    /* Règle générale (Défaut Mobile) - si différente du défaut desktop */
    .site-footer {
        margin-top: 20px; /* Exemple : Marge mobile par défaut */
    }

    /* Règle SPÉCIFIQUE pour page Collectivités (ID 20) - Mobile */
    body.page-id-20 .site-footer {
         margin-top: 0px; /* << Mets ici la valeur MOBILE que tu veux pour page 20 */
                           /* Ecrase le défaut mobile */
    }

     /* Règle SPÉCIFIQUE pour page Particuliers (ID 22) - Mobile */
    body.page-id-22 .site-footer {
          margin-top: 0px; /* << Mets ici la valeur MOBILE que tu veux pour page 22 */
                            /* Ecrase le défaut mobile */
    }

    /* Règle spécifique pour page d'accueil (Mobile) - Si différent du défaut mobile */
    /* (Probablement pas nécessaire si le défaut mobile ou desktop est déjà 0) */
    /* body.home .site-footer {
           margin-top: 0;
       } */

    /* ... autres règles mobiles ... */

} /* Fin du @media (max-width: 768px) */




/* Correctif pour centrer la section Qui sommes-nous sur mobile (S25) */
@media (max-width: 768px) {
    .about-section .about-content-wrapper {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .about-section .content-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .about-section .about-text {
        text-align: center !important;
        min-width: 0 !important;
        max-width: 90% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 15px 0 !important;
    }

    .about-section .about-text h3,
    .about-section .about-text p {
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .about-section .about-image {
        min-width: 0 !important;
        max-width: 90% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .about-section .about-image img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Ajustement pour les appareils comme le S25 (viewport ~428px) */
@media (max-width: 428px) {
    .about-section .about-text,
    .about-section .about-image {
        max-width: 95% !important;
    }
}


/* ==========================================================================
   Styles Pages Nouveautés & Single (VestaFireworks) - Version Consolidée
   Ciblé via la classe body .nouveautes-section ajoutée par functions.php
   ========================================================================== */

/* --- Padding sous Header Fixe (si ton header est fixe/sticky) --- */
/* Ajuste la valeur 80px / 70px à la HAUTEUR RÉELLE de ton header ! */
body.nouveautes-section .content-area { /* Cible #primary via sa classe */
    padding-top: 0px; /* Hauteur header desktop - À VÉRIFIER/AJUSTER */
}

@media (max-width: 768px) {
    body.nouveautes-section .content-area {
        padding-top: 0px; /* Hauteur header mobile - À VÉRIFIER/AJUSTER */
    }
}

/* --- Styles pour la page LISTE des Nouveautés (page-nouveautes.php) --- */

.nouveautes-section .blog-container {
    padding: 40px 20px 60px 20px; /* Espace intérieur haut/côtés/bas */
    max-width: 1200px; /* Largeur max du contenu */
    margin: 0 auto; /* Centrage du conteneur */
}

/* Titre principal "Découvrez nos nouveautés" */
.nouveautes-section .page-header-nouveautes {
    text-align: center;
    margin-bottom: 50px; /* Espace sous le titre */
position: static; /* Valeur par défaut, remet l'élément dans le flux normal */
    width: auto;      /* Annule le width: 100% hérité */
    z-index: auto;    /* Annule le z-index hérité */
    /* top: 0 et left: 0 n'ont plus d'effet car position n'est plus fixed */
    /* --- Fin de l'ajout --- */
}
.nouveautes-section h1.page-title-nouveautes {
    text-align: center;
    color: #fff;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.5em;
    font-weight: normal;
    margin-bottom: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    display: inline-block; /* Pour que ::after se positionne bien */
    position: relative; /* Nécessaire pour ::after */
}
/* Ligne décorative sous le titre principal */
.nouveautes-section h1.page-title-nouveautes::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Distance sous le texte */
    left: 50%;
    transform: translateX(-50%); /* Centrage de la ligne */
    width: 60px;
    height: 3px;
    background-color: #f0a500; /* Couleur accent Vesta */
}

/* Grille pour les articles */
.nouveautes-section .blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Colonnes responsives */
    gap: 30px; /* Espace entre les cartes articles */
}

/* Style de chaque carte article dans la liste */
.nouveautes-section .blog-posts article {
    border: 1px solid #f0a500; /* Bordure couleur accent */
    border-radius: 8px;
    overflow: hidden; /* Pour que les coins arrondis s'appliquent à l'image */
    background: rgba(30, 30, 30, 0.7); /* Fond semi-transparent */
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    display: flex; /* Pour organiser image / contenu en colonne */
    flex-direction: column;
    padding: 0; /* Pas de padding ici, on le met sur .article-content */
}

/* Image mise en avant dans la carte */
.nouveautes-section .blog-posts article .post-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0; /* Pas de marge, collé au contenu */
    border-bottom: 1px solid #f0a500; /* Ligne de séparation */
}

/* Conteneur du texte dans la carte */
.nouveautes-section .blog-posts article .article-content {
    padding: 20px; /* Espace intérieur pour le texte */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permet au bouton "Lire la suite" de se caler en bas */
}

/* Titre de l'article dans la carte (H2) */
.nouveautes-section .blog-posts article .article-content h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: normal;
}
.nouveautes-section .blog-posts article .article-content h2 a {
    text-decoration: none;
    color: #f0a500; /* Titre en couleur accent */
    transition: color 0.3s ease;
}
.nouveautes-section .blog-posts article .article-content h2 a:hover {
    color: #ffbf47; /* Accent plus clair au survol */
    text-decoration: underline;
}

/* Méta-données (Date) dans la carte */
.nouveautes-section .blog-posts article .post-meta {
    font-size: 0.8em;
    color: #aaa;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Extrait dans la carte */
.nouveautes-section .blog-posts article .post-excerpt {
    font-family: sans-serif; /* Ou ta police de contenu standard */
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1; /* Prend l'espace dispo avant le bouton */
}
.nouveautes-section .blog-posts article .post-excerpt p {
    margin-bottom: 0;
}

/* Lien "Lire la suite" dans la carte */
.nouveautes-section .blog-posts article .read-more {
    display: inline-block; /* Pour qu'il ne prenne pas toute la largeur */
    margin-top: auto; /* Se pousse vers le bas grâce à flex-grow sur l'excerpt */
    color: #f0a500;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: color 0.3s ease;
    align-self: flex-start; /* S'aligne à gauche */
}
.nouveautes-section .blog-posts article .read-more:hover {
    color: #ffbf47;
    text-decoration: underline;
}

/* Pagination (si tu en as une) */
.nouveautes-section .pagination-container {
    margin-top: 40px;
    text-align: center;
}
.nouveautes-section .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    color: #ccc;
    background-color: rgba(60, 60, 60, 0.5);
    border: 1px solid #555;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.nouveautes-section .page-numbers:hover {
    background-color: #f0a500;
    color: #111;
    border-color: #f0a500;
}
.nouveautes-section .page-numbers.current {
    background-color: #f0a500;
    color: #111;
    border-color: #f0a500;
    font-weight: bold;
}

/* Message si pas d'articles */
.nouveautes-section .no-posts {
    text-align: center;
    color: #aaa;
    font-family: sans-serif;
    padding: 50px 0;
    font-size: 1.1em;
}

/* --- Styles pour la page ARTICLE INDIVIDUEL (single.php) --- */

.nouveautes-section .single-post-container {
    padding: 40px 20px 60px 20px; /* Ajout padding horizontal pour mobile */
    max-width: 800px; /* Largeur max du contenu de l'article */
    margin: 0 auto; /* Centrage */
}

/* Entête de l'article (titre, méta) */
.nouveautes-section .entry-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #333; /* Séparateur */
    padding-bottom: 20px;
    text-align: center;
position: static; /* Remet dans le flux normal */
    width: auto;      /* Annule le width: 100% hérité */
    z-index: auto;    /* Annule le z-index hérité */
    /* top et left sont ignorés car position = static */
    /* --- Fin de l'ajout --- */
}

/* Titre de l'article */
/* Si ce titre n'apparait TOUJOURS PAS, vérifie le fichier single.php ! */
.nouveautes-section .entry-title {
    text-align: center;
    color: #fff;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2.8em;
    line-height: 1.2;
    font-weight: normal;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* Méta-données (Date, auteur etc.) */
.nouveautes-section .entry-meta {
    font-size: 0.9em;
    color: #aaa;
    text-align: center;
    text-transform: uppercase;
}

/* Image mise en avant de l'article */
.nouveautes-section .featured-image {
    width: 100%; /* Prend toute la largeur du conteneur (800px max) */
    height: auto;
    margin-top: 20px; /* Espace au-dessus */
    margin-bottom: 30px; /* Espace en dessous */
    border-radius: 5px;
    border: 1px solid #555; /* Bordure discrète */
    display: block; /* Assure un bon rendu de marge */
    margin-left: auto; /* Assure le centrage si jamais la largeur est contrainte */
    margin-right: auto;
}

/* Contenu principal de l'article (paragraphes, etc.) */
/* Le bloc est centré car .single-post-container l'est. */
/* Le texte dedans est aligné à gauche par défaut (mieux pour lecture). */
.nouveautes-section .entry-content {
    font-family: sans-serif; /* Ou ta police de contenu standard */
    color: #ddd; /* Texte principal un peu moins blanc que le titre */
    line-height: 1.8; /* Bonne lisibilité */
    font-size: 1.05em;
}
/* Pour centrer le texte des paragraphes (DÉCONSEILLÉ pour la lecture) : */
/* .nouveautes-section .entry-content { text-align: center; } */

.nouveautes-section .entry-content p { margin-bottom: 1.5em; }
.nouveautes-section .entry-content h2,
.nouveautes-section .entry-content h3,
.nouveautes-section .entry-content h4 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #eee; /* Sous-titres clairs */
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: normal;
}
.nouveautes-section .entry-content h2 { font-size: 1.6em; }
.nouveautes-section .entry-content h3 { font-size: 1.4em; }
.nouveautes-section .entry-content h4 { font-size: 1.2em; }

.nouveautes-section .entry-content ul,
.nouveautes-section .entry-content ol {
    margin-left: 0; /* On gère l'indentation avec padding */
    margin-bottom: 1.5em;
    padding-left: 1.5em; /* Indentation des listes */
    color: #ccc; /* Couleur du texte des listes */
}
.nouveautes-section .entry-content li {
    margin-bottom: 0.6em;
    padding-left: 0.5em; /* Espace après la puce/numéro */
}

.nouveautes-section .entry-content a {
    color: #f0a500; /* Liens en couleur accent */
    text-decoration: underline;
}
.nouveautes-section .entry-content a:hover {
    color: #ffbf47;
}

.nouveautes-section .entry-content blockquote {
    border-left: 3px solid #f0a500;
    margin: 1.5em 0; /* Marge verticale, pas horizontale */
    padding: 10px 20px; /* Espace intérieur */
    color: #bbb; /* Texte de citation un peu atténué */
    font-style: italic;
    background: rgba(40,40,40,0.5); /* Fond léger */
    border-radius: 4px;
}
.nouveautes-section .entry-content figure { margin: 1.5em 0; text-align: center; } /* Centre les légendes si présentes */
.nouveautes-section .entry-content img { /* Images dans le contenu */
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5em auto; /* Centre les images si elles sont plus petites que le conteneur */
    display: block; /* Pour que margin: auto fonctionne */
}

/* Pied de l'article (catégories, tags...) */
.nouveautes-section .entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333; /* Séparateur */
    font-size: 0.9em;
    color: #aaa;
}

/* Navigation entre articles Précédent/Suivant */
.nouveautes-section .post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
    gap: 20px; /* Espace entre les deux liens */
}
.nouveautes-section .post-navigation a {
    color: #f0a500;
    text-decoration: none;
    max-width: 48%; /* Pour éviter qu'ils se touchent */
    transition: color 0.3s ease;
    display: block; /* Pour bien gérer le texte sur plusieurs lignes */
}
.nouveautes-section .post-navigation a:hover {
    color: #ffbf47;
}
.nouveautes-section .post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8em;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.nouveautes-section .post-navigation .nav-title {
    font-weight: bold;
    font-size: 1em;
    line-height: 1.3;
}
.nouveautes-section .post-navigation .nav-previous { text-align: left; }
.nouveautes-section .post-navigation .nav-next { text-align: right; }


/* Message si article non trouvé */
.nouveautes-section .no-post-found {
    text-align: center;
    color: #aaa;
    padding: 50px 0;
}

/* --- Effet d'apparition douce pour articles Nouveautés --- */

.nouveautes-section .blog-posts article {
    /* Styles existants pour tes articles... */
    /* border: 1px solid #f0a500; */
    /* border-radius: 8px; */
    /* etc... */

    /* État initial : caché et légèrement décalé */
    opacity: 0;
    transform: translateY(25px); /* Commence 25px plus bas */
    /* Transition fluide */
    transition: opacity 1.5s ease-out, transform 0.6s ease-out;
    /* Aide le navigateur pour la performance */
    will-change: opacity, transform;
}

/* État final : visible et à sa place */
/* Cette classe 'is-visible' sera ajoutée par JavaScript */
.nouveautes-section .blog-posts article.is-visible {
    opacity: 1;
    transform: translateY(0);
    /* Le délai pour l'effet décalé sera ajouté par JS */
}

/* --- Styles Responsive (Combinés pour Liste & Single) --- */
@media (max-width: 768px) {
    /* Liste */
    .nouveautes-section .blog-posts {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .nouveautes-section h1.page-title-nouveautes { font-size: 2em; }

    /* Single */
    .nouveautes-section .single-post-container { padding: 30px 15px 50px 15px; } /* Moins de padding sur mobile */
    .nouveautes-section .entry-title { font-size: 2em; } /* Titre single plus petit */
    .nouveautes-section .entry-content { font-size: 1em; } /* Texte single taille standard */

    /* Navigation Single */
    .nouveautes-section .post-navigation .nav-links {
        flex-direction: column; /* Liens l'un sous l'autre */
        gap: 15px;
        align-items: center; /* Centre les liens */
    }
    .nouveautes-section .post-navigation a {
        max-width: 90%; /* Prend plus de largeur */
        text-align: center; /* Centre le texte des liens */
    }
     .nouveautes-section .post-navigation .nav-previous,
     .nouveautes-section .post-navigation .nav-next { text-align: center; }
}

@media (max-width: 480px) {
    /* Liste */
    .nouveautes-section .blog-posts {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 25px;
    }
    .nouveautes-section h1.page-title-nouveautes { font-size: 1.8em; }
    .nouveautes-section .blog-posts article .article-content h2 { font-size: 1.3em; } /* Titre carte plus petit */

    /* Single */
    .nouveautes-section .entry-title { font-size: 1.8em; } /* Titre single encore plus petit */
     .nouveautes-section .entry-content { font-size: 0.95em; } /* Texte single un peu plus petit */

}

/* ==========================================================================
   Fin Styles Pages Nouveautés & Single
   ========================================================================== */
   
/* Effet Hover Portfolio - Option 1: Zoom Image + Bordure */

/* Ajouter la transition aux éléments de base */
.portfolio-item.swiper-slide {
    /* ... tes styles existants ... */
    border: 1px solid #f0a500;
    border-radius: 4px;
    overflow: hidden; /* Important pour que l'image zoomée ne dépasse pas la carte */
    transition: border-color 0.3s ease; /* Transition pour la bordure */
}

.portfolio-item.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px; /* Peut-être enlever si le parent a overflow:hidden et border-radius */
    transition: transform 0.3s ease; /* Transition pour le zoom */
}

/* Styles appliqués au survol */
.portfolio-item.swiper-slide:hover {
    border-color: #ffbf47; /* Couleur accent un peu plus vive */
}

.portfolio-item.swiper-slide:hover img {
    transform: scale(1.05); /* Léger zoom (ajuste 1.05 si tu veux plus ou moins) */
}

/* Ne pas oublier de garder l'effet sur l'icône play si tu l'aimes bien */
.portfolio-item.video-item a:hover .play-icon {
    background-color: rgba(240, 165, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
/* Style pour les nouveaux boutons de l'étape 2 du formulaire */
.venue-type-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.venue-type-btn {
    background: #333; /* Fond par défaut */
    color: #ccc;
    padding: 12px 30px;
    border: 1px solid #555;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.venue-type-btn:hover {
    background: #444;
    border-color: #777;
}
.venue-type-btn.selected { /* Style quand un bouton est sélectionné */
    background: #f0a500;
    color: #111;
    border-color: #f0a500;
}
}

