/* Author: MEMORA solutions - https://memora.solutions */
/**
 * Planifize - Personnalisations CSS
 * Surcharge les styles du theme pour respecter les conventions francaises
 */

/* Desactiver les majuscules automatiques (convention francaise) */
.hero-style-one .hero-content h1,
.hero-style-two .hero-content h1,
.hero-style-three .hero-content h1,
.section-title h2,
.section-title h3,
.pricing-item .title .plan,
.widget-title,
.block-style-one .title,
.block-style-two .title,
.card-header a,
h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
}

/* Boutons - pas de majuscules forcees */
.main-btn,
.bordered-btn,
.btn {
    text-transform: none !important;
}

/* Navigation - pas de majuscules */
.main-menu ul li a,
.footer-nav li a {
    text-transform: none !important;
}

/* Logo Planifize - ajustements */
.site-branding img {
    max-height: 65px;
    width: auto;
}

.footer-area .site-branding img {
    max-height: 36px;
}

/* Sidebar mobile logo */
.sidebar-logo img {
    max-height: 36px;
}

/* Fix contraste boutons bordered sur fonds bleus */
.hero-area .bordered-btn.bordered-white,
.hero-style-one .bordered-btn.bordered-white {
    color: #fff !important;
    border-color: #fff !important;
    background: transparent !important;
}

.hero-area .bordered-btn.bordered-white:hover,
.hero-style-one .bordered-btn.bordered-white:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* CTA sections - boutons visibles */
.cta-area .main-btn.btn-white {
    color: #1e3a5f !important;
    background: #fff !important;
}

.cta-area .main-btn.btn-white:hover {
    background: #f0f0f0 !important;
}

/* =========================================================================
   WCAG 2.2 AA - Corrections contrastes (audit 31 mars 2026)
   ========================================================================= */

/* Fix 1: sub-title violet sur fond violet clair - ratio augmente */
.sub-title.sub-title-bg {
    color: #3B0764 !important; /* ratio 9.5:1 sur fond rgba(158,89,255,0.1) */
    background-color: rgba(158, 89, 255, 0.08) !important; /* fond plus clair */
}

/* Fix 2: hero text blanc sur image - ajouter overlay sombre */
.hero-style-one.bg_cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}
.hero-style-one .hero-content {
    position: relative;
    z-index: 1;
}
.hero-style-one .hero-content h1,
.hero-style-one .hero-content p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Fix 3: counter-item texte sur fond bleu - ratio 4.11:1 → 8.2:1 */
.counter-item .text p {
    color: #FFFFFF !important;
}

/* Fix 4: focus visible sur tous les liens et boutons */
a:focus,
button:focus,
input:focus,
select:focus,
[tabindex]:focus {
    outline: 2px solid #6B21A8 !important;
    outline-offset: 2px !important;
}

/* Fix 5: cookie consent liens et boutons - ratio 4.03:1 → 5.1:1+ */
[wire\:click="acceptAll"],
[wire\:click="acceptNecessaryOnly"] {
    outline: 2px solid transparent;
}
a[href*="cookies"] {
    color: #2563EB !important;
}

/* Fix 6: nav-overlay cache-clavier - invisible par defaut */
.nav-overlay {
    display: none !important;
    pointer-events: none;
}
.nav-overlay.active {
    display: block !important;
    pointer-events: auto;
}

/* Fix 7: navbar-toggler reset styles pour button */
button.navbar-toggler {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}
