/*
Theme Name: Nectar
Theme URI: https://hiveprotect.ai
Author: HiveProtect Team
Author URI: https://hiveprotect.ai
Description: Theme WordPress moderne et professionnel pour HiveProtect.ai - Design responsive, optimise pour les performances et l'accessibilite.
Version: 1.0.34
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nectar
Tags: full-site-editing, block-themes, custom-colors, custom-logo, responsive-layout, accessibility-ready
*/

/* === MATERIAL ICONS (LOCAL) === */
@font-face {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url(./assets/fonts/material-icons-outlined.otf) format('opentype');
}

.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: 100;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
    -webkit-text-stroke: 0;
}

/* === VARIABLES DESIGN SYSTEM === */
:root {
    /* Couleurs HiveProtect */
    --hp-blue: #4A90E2;
    --hp-blue-dark: #3A7BC8;
    --hp-blue-light: #6BA5E7;
    --hp-blue-navy: #1e3a5f;
    --hp-orange: #FFAD33;
    --hp-orange-dark: #E69A2E;
    --hp-dark-grey: #333333;
    --hp-medium-grey: #666666;
    --hp-light-grey: #F5F5F5;
    --hp-white: #FFFFFF;
    --hp-success: #28a745;
    --hp-error: #dc3545;

    /* Typographie */
    --font-heading: 'Montserrat', 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
    --font-body: 'Open Sans', 'Roboto', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;

    /* Espacements (echelle 8px) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Bordures & Ombres */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --header-height: 80px;
    --header-height-mobile: 64px;
    --content-max-width: 1200px;
    --content-wide-width: 1700px;

    /* Z-index */
    --z-header: 1000;
    --z-dropdown: 1100;
    --z-modal: 1200;
    --z-tooltip: 1300;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--hp-dark-grey);
    background-color: #f8fbfd;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background statique hexagones (uniquement si motif par defaut) */
body.bg-pattern-hexagons {
    background-image: url('assets/images/background-hex.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: manual;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--hp-blue);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    color: var(--hp-blue);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.625rem;
    line-height: 1.3;
    color: var(--hp-blue);
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--hp-dark-grey);
}

h5 {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--hp-dark-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--hp-dark-grey);
}

p {
    margin-bottom: var(--space-sm);
}

p:last-child {
    margin-bottom: 0;
}

/* === LIENS === */
/* Exclure l'admin bar et les boutons des styles globaux */
a:not(#wpadminbar a):not(.ab-item):not(.btn):not(.read-more-featured) {
    color: var(--hp-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:not(#wpadminbar a):not(.ab-item):not(.btn):not(.read-more-featured):hover {
    color: var(--hp-orange);
}

a:focus {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
}

a:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
}

/* === IMAGES === */
/* Exclure l'admin bar WordPress et emojis */
img:not(#wpadminbar img):not(.emoji) {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Support emojis drapeaux WordPress (Twemoji) */
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 0.875rem;
    color: var(--hp-medium-grey);
    margin-top: var(--space-xs);
}

/* === LISTES === */
ul, ol {
    margin: 0 0 var(--space-sm) var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), background var(--transition-normal);
}

/* Compenser le header fixed (non connecte) */
body:not(.admin-bar) .site-main {
    margin-top: var(--header-height);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* === SUPPORT ADMIN BAR WORDPRESS === */
/* WordPress ajoute deja margin-top au html, on garde top: 0 pour sticky */
html.admin-bar {
    margin-top: 0 !important;
}

.admin-bar .site-header {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
}

.admin-bar .site-main {
    margin-top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar .site-main {
        margin-top: calc(var(--header-height-mobile) + 46px);
    }
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    height: 48px;
    width: auto;
    transition: transform var(--transition-fast);
}

.site-logo:hover img {
    transform: scale(1.02);
}

.site-logo:focus {
    outline: 2px solid var(--hp-blue);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* === NAVIGATION PRINCIPALE === */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hp-dark-grey);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--hp-blue);
    background: var(--hp-light-grey);
}

.nav-menu a:focus-visible {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
}

.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--hp-blue);
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-xs);
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--hp-light-grey);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
}

.menu-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hp-dark-grey);
    position: relative;
    transition: background var(--transition-fast);
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--hp-dark-grey);
    transition: transform var(--transition-normal);
}

.menu-toggle .hamburger::before {
    top: -7px;
}

.menu-toggle .hamburger::after {
    bottom: -7px;
}

/* Menu ouvert */
.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px;
    min-width: 44px;
}

.btn:focus-visible {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--hp-blue);
    color: var(--hp-white);
    border-color: var(--hp-blue);
}

.btn-primary:hover {
    background: var(--hp-blue-dark);
    border-color: var(--hp-blue-dark);
    color: var(--hp-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--hp-orange);
    color: var(--hp-white);
    border-color: var(--hp-orange);
}

.btn-secondary:hover {
    background: var(--hp-orange-dark);
    border-color: var(--hp-orange-dark);
    color: var(--hp-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--hp-orange);
    color: var(--hp-white);
    border-color: var(--hp-orange);
}

.btn-accent:hover {
    background: var(--hp-orange-dark);
    border-color: var(--hp-orange-dark);
    color: var(--hp-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* === CONTENU PRINCIPAL === */
.site-main {
    min-height: calc(100vh - var(--header-height) - 200px);
}

.content-area {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.content-wide {
    max-width: var(--content-wide-width);
}

.content-full {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* === SECTIONS === */
.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-solid {
    background: var(--hp-white);
}

/* === BLOCS DE CONTENU AVEC FOND BLANC === */

/* Chaque titre HN dans son propre carré blanc */
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6 {
    background: #fff;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

/* Premier titre sans margin-top */
.entry-content > h1:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child {
    margin-top: 0;
}

/* Tous les paragraphes, listes, images entre les titres = un seul bloc blanc */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > pre,
.entry-content > figure,
.entry-content > .wp-block-image {
    background: #fff;
    padding: var(--space-md);
    padding-left: var(--space-md) !important;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0 !important;
    box-shadow: var(--shadow-sm);
    list-style-position: inside;
}

/* Premier élément texte après titre = border-radius haut */
.entry-content > h1 + p,
.entry-content > h1 + ul,
.entry-content > h1 + ol,
.entry-content > h2 + p,
.entry-content > h2 + ul,
.entry-content > h2 + ol,
.entry-content > h3 + p,
.entry-content > h3 + ul,
.entry-content > h3 + ol {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Dernier élément texte avant titre = border-radius bas + margin-bottom pour gap */
.entry-content > p + h1,
.entry-content > p + h2,
.entry-content > p + h3,
.entry-content > ul + h1,
.entry-content > ul + h2,
.entry-content > ul + h3,
.entry-content > ol + h1,
.entry-content > ol + h2,
.entry-content > ol + h3 {
    margin-top: var(--space-xl);
}

.entry-content > p:has(+ h1),
.entry-content > p:has(+ h2),
.entry-content > p:has(+ h3),
.entry-content > ul:has(+ h1),
.entry-content > ul:has(+ h2),
.entry-content > ul:has(+ h3),
.entry-content > ol:has(+ h1),
.entry-content > ol:has(+ h2),
.entry-content > ol:has(+ h3) {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--hp-medium-grey);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: var(--space-3xl) var(--space-lg);
    background: transparent;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-sm);
    max-width: 100%;
    line-height: 1.15;
}

.hero-features {
    list-style: none;
    margin: 0 0 var(--space-md) 0;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--hp-blue);
}

.hero-features li {
    margin-bottom: var(--space-xs);
    padding-left: var(--space-lg);
    position: relative;
}

.hero-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--hp-orange);
    font-size: 2rem;
    line-height: 1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--hp-dark-grey);
    margin-bottom: var(--space-lg);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* === CARTES === */
.card {
    background: var(--hp-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: var(--space-sm);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.card-content {
    color: var(--hp-medium-grey);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border-radius: 0;
    margin: 0 0 var(--space-sm) 0;
    color: var(--hp-blue);
}

/* Material Icons dans les cartes */
.card-icon .material-icons-outlined {
    font-size: 28px;
    color: var(--hp-blue);
}

/* === MODULE CARDS (15 modules) === */
.module-card {
    padding: var(--space-md);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.module-card .card-icon {
    width: 56px;
    height: 56px;
    margin: 0;
    background: transparent !important;
    border-radius: 0;
}

.module-card .card-icon .material-icons-outlined {
    font-size: 32px;
}

.module-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--hp-dark-grey);
    margin: 0;
}

/* === STATS SECTION === */
.stat-item {
    padding: var(--space-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--hp-blue);
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 1rem;
    color: var(--hp-medium-grey);
    font-weight: 500;
}

/* === STEPS SECTION === */
.step-item {
    background: var(--hp-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.step-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--hp-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

.step-item:last-child .step-number {
    background: var(--hp-orange);
}

/* === GRILLES === */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* === FORMULAIRES === */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--hp-dark-grey);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--hp-dark-grey);
    background: var(--hp-white);
    border: 2px solid var(--hp-light-grey);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: var(--hp-blue-light);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--hp-medium-grey);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* === FOOTER SECONDAIRE === */
.footer-secondary {
    width: 100%;
}

.footer-secondary-content {
    text-align: center;
}

.footer-secondary-content p:last-child {
    margin-bottom: 0;
}

/* === FOOTER PRINCIPAL === */
.site-footer {
    background: var(--hp-blue-navy);
    color: var(--hp-white);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.footer-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* Grilles footer dynamiques selon nombre de colonnes */
.footer-grid-2 {
    grid-template-columns: 2fr repeat(2, 1fr);
}

.footer-grid-3 {
    grid-template-columns: 2fr repeat(3, 1fr);
}

.footer-grid-4 {
    grid-template-columns: 2fr repeat(4, 1fr);
}

.footer-brand {
    max-width: 300px;
    text-align: center;
}

.footer-brand img {
    height: 40px;
    margin-bottom: var(--space-sm);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--hp-white);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--hp-orange);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--space-md);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    line-height: 1;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    line-height: 1;
}

.site-footer .footer-social a,
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--hp-white) !important;
    font-weight: 400 !important;
    transition: all var(--transition-fast);
}

.site-footer .footer-social a:hover,
.footer-social a:hover {
    background: var(--hp-orange);
    color: var(--hp-white) !important;
    transform: translateY(-2px);
}

/* === UTILITAIRES === */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hp-blue);
    color: var(--hp-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-sm);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-slide-in {
    animation: slideIn var(--transition-slow) ease forwards;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer 2 colonnes sur tablette */
    .footer-grid-2,
    .footer-grid-3,
    .footer-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 900px) {
    :root {
        --space-lg: 24px;
        --space-xl: 40px;
        --space-2xl: 56px;
        --space-3xl: 80px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {
    /* Fix scroll horizontal et background iOS */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }

    /* Background statique hexagones en scroll sur mobile */
    body.bg-pattern-hexagons {
        background-attachment: scroll;
        background-size: cover;
        background-position: top center;
    }

    /* Empecher tout debordement */
    .site-main,
    .site-footer,
    .hero,
    .section,
    .content-area {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Header mobile - hauteur reduite */
    .site-header {
        height: var(--header-height-mobile);
        padding: 0 var(--space-sm);
    }

    /* Compenser le header fixed mobile */
    body:not(.admin-bar) .site-main {
        margin-top: var(--header-height-mobile);
    }

    .admin-bar .site-main {
        margin-top: calc(var(--header-height-mobile) + 46px);
    }

    .site-logo img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        bottom: auto;
        background: var(--hp-white);
        padding: var(--space-md);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        z-index: calc(var(--z-header) - 1);
        box-shadow: var(--shadow-lg);
    }

    /* Ajustement menu mobile avec admin bar */
    .admin-bar .main-navigation {
        top: calc(var(--header-height-mobile) + 46px);
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu a {
        display: block;
        padding: var(--space-sm);
        font-size: 1.125rem;
        border-bottom: 1px solid var(--hp-light-grey);
    }

    /* Footer 1 colonne sur mobile */
    .footer-grid-2,
    .footer-grid-3,
    .footer-grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        max-width: none;
        grid-column: 1;
    }

    .footer-column {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xs) var(--space-md);
    }

    .footer-links li {
        margin: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    :root {
        --space-lg: 20px;
        --space-xl: 32px;
        --space-2xl: 48px;
        --space-3xl: 64px;
    }

    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) var(--space-sm);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .content-area {
        padding: var(--space-lg) var(--space-sm);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Modules grid-5 sur mobile : 2 colonnes */
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    /* Stats responsive - grille 2x2 sur mobile */
    .grid-4.text-center {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .stat-item {
        padding: var(--space-sm);
    }

    /* Steps responsive */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .btn {
        width: 100%;
    }
}

/* === WORDPRESS SPECIFIQUE === */
.wp-block-button__link {
    background: var(--hp-blue);
    color: var(--hp-white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.wp-block-button__link:hover {
    background: var(--hp-blue-dark);
    color: var(--hp-white);
}

.has-hiveprotect-blue-color {
    color: var(--hp-blue);
}

.has-hiveprotect-blue-background-color {
    background-color: var(--hp-blue);
}

.has-hiveprotect-orange-color {
    color: var(--hp-orange);
}

.has-hiveprotect-orange-background-color {
    background-color: var(--hp-orange);
}

.has-dark-grey-color {
    color: var(--hp-dark-grey);
}

.has-dark-grey-background-color {
    background-color: var(--hp-dark-grey);
}

/* Alignements WordPress */
.alignwide {
    max-width: var(--content-wide-width);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ========================================
   PAGE B - STYLES MARKETING (AIDA)
   ======================================== */

/* --- Hero B --- */
.hero-b .hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    color: var(--hp-medium-grey);
}

.hero-proofs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 144, 226, 0.1);
    color: var(--hp-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.proof-badge .material-icons-outlined {
    font-size: 18px;
    color: var(--hp-success);
}

/* --- Logos Section --- */
/* --- Stats Section --- */
.stats-section {
    background: var(--hp-light-grey);
    padding: var(--space-xl) 0;
}

.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hp-blue);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--hp-medium-grey);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Problem Section --- */
.problem-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.problem-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.problem-content h2 {
    color: var(--hp-error);
}

.problem-intro {
    font-size: 1.1rem;
    color: var(--hp-medium-grey);
    margin-bottom: var(--space-lg);
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.problem-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 1.1rem;
    color: var(--hp-dark-grey);
}

.problem-list .material-icons-outlined {
    color: var(--hp-error);
    font-size: 24px;
    flex-shrink: 0;
}

/* --- Solution Section (Piliers) --- */
.solution-section .pillar-card {
    text-align: center;
    padding: var(--space-xl);
}

.solution-section .card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hp-blue) 0%, var(--hp-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.solution-section .card-icon .material-icons-outlined {
    font-size: 40px;
    color: white;
}

.solution-section .pillar-card h3 {
    color: var(--hp-blue);
    margin-bottom: var(--space-sm);
}

/* --- Founders Section --- */
.founders-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
}

.founders-section h2 {
    color: white;
}

.founders-tagline {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hp-dark-grey);
    background: var(--hp-orange);
    padding: var(--space-sm) var(--space-xl);
    border-radius: 50px;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 15px rgba(255, 173, 51, 0.4);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.founders-intro {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.advantages-grid {
    margin-bottom: var(--space-xl);
}

.advantage-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 173, 51, 0.2);
    margin: 0 auto var(--space-sm);
}

.advantage-icon .material-icons-outlined {
    font-size: 32px;
    color: var(--hp-orange);
}

.advantage-card h4 {
    color: var(--hp-orange);
    margin-bottom: var(--space-sm);
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.founders-cta {
    text-align: center;
}

.founders-cta .btn-accent {
    background: var(--hp-orange);
    color: var(--hp-dark-grey);
    font-size: 1.1rem;
    padding: 16px 32px;
}

.founders-cta .btn-accent:hover {
    background: var(--hp-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 173, 51, 0.4);
}

/* --- Features B Section --- */
.features-b-section .feature-b-card {
    text-align: center;
    padding: var(--space-lg);
}

.features-b-section .card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(74, 144, 226, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
}

.features-b-section .card-icon .material-icons-outlined {
    font-size: 28px;
    color: var(--hp-blue);
}

.features-b-section .feature-b-card h4 {
    color: var(--hp-dark-grey);
    margin-bottom: var(--space-xs);
}

.features-b-section .feature-b-card p {
    color: var(--hp-medium-grey);
    font-size: 0.9rem;
}

/* --- Install Section --- */
.install-section {
    text-align: center;
}

.install-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.install-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--hp-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.install-step .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin: 0;
    flex-shrink: 0;
}

.install-step:last-child .step-number {
    background: var(--hp-orange);
}

.install-step p {
    margin: 0;
    text-align: left;
}

/* --- CTA B Section --- */
.cta-b-section {
    background: linear-gradient(135deg, var(--hp-blue) 0%, var(--hp-blue-dark) 100%);
    color: white;
    padding: var(--space-3xl) 0;
}

.cta-b-section h2 {
    color: white;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.cta-buttons {
    margin-bottom: var(--space-md);
}

.cta-buttons .btn-accent {
    background: var(--hp-orange);
    color: var(--hp-dark-grey);
    font-size: 1.1rem;
    padding: 16px 32px;
}

.cta-mentions {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Responsive Page B --- */
@media (max-width: 900px) {
    .stats-bar {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .install-steps {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .hero-proofs {
        flex-direction: column;
        align-items: center;
    }

    .proof-badge {
        width: 100%;
        justify-content: center;
    }

    .problem-list li {
        font-size: 1rem;
    }

    .solution-section .pillar-card {
        padding: var(--space-lg);
    }
}

/* === PRINT === */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .skip-link {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .content-area {
        max-width: none;
        padding: 0;
    }
}
