/*
Theme Name: SDIS66 MyTheme
Theme URI: https://pompiers.pro
Author: mySIS 66
Author URI: https://pompiers.pro
Description: Thème personnalisé pour l'intégration des shortcodes mySIS 66
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdis66-mytheme
*/

/* Import Google Fonts - Police Outfit pour tout le site */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Styles de base gérés par les plugins mySIS */

/* Police Outfit globale pour tout le site */
html,
body,
* {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Fond blanc pour tout le site - PRIORITÉ MAXIMALE */
html,
html body {
    background-color: #ffffff !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Zone encoche iPhone - fond blanc absolu */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0px);
    background-color: #ffffff !important;
    z-index: 999998;
}

body,
body.logged-in,
body:not(.logged-in) {
    background-color: #ffffff !important;
    background: #ffffff !important;
    background-image: none !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fond blanc pour TOUS les conteneurs de contenu */
.site-main,
.sdis66-page-content,
.sdis66-homepage-container,
#page.site,
#page,
.site-content,
.content-area,
.entry-content,
.main-content,
.wp-block-shortcode,
.wp-block-group,
.wp-block-columns,
.wp-block-column {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Largeur 100% pour les conteneurs de shortcodes (formation, ressources, outils, annuaire, agenda, etc.) */
.sdis66-page-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.site-header {
    position: sticky;
    top: 0;
    padding-top: max(12px, var(--safe-top));
    /* Optimisations pour éviter le clignotement lors du scroll */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.site-footer-fixed {
    position: fixed;
    bottom: 0;
    padding-bottom: max(12px, var(--safe-bottom));
    width: 100%;
}

body.has-safe-area {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

