/*
Theme Name: CleanHit V2
Theme URI: https://example.com/
Author: CleanHit
Author URI: https://example.com/
Description: Conversion du site HTML en thème WordPress compatible WooCommerce, mobile first, SEO optimisé.
Version: 1.0
Text Domain: cleanhitv2
*/

/* Ajoutez vos propres styles personnalisés en dessous */

@media (max-width: 768px) {
  header,
  .hero-gradient,
  .site-header,
  .blog-header {
    position: static !important;
    top: auto !important;
  }
}

/* --- FIX WooCommerce My Account Address Buttons --- */
.woocommerce-MyAccount-content .edit,
.woocommerce-MyAccount-content .add {
    display: block !important;
    float: none !important;
    position: static !important;
    margin: 16px 0 0 0 !important;
    color: #fff !important;
    background: #00b7ce !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: max-content !important;
    min-width: 220px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.woocommerce-Addresses .woocommerce-Address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}
.woocommerce-Addresses .woocommerce-Address-title {
    order: 1;
}
.woocommerce-Addresses address {
    order: 2;
}
.woocommerce-Addresses .edit,
.woocommerce-Addresses .add {
    order: 3;
    display: block !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    align-self: flex-start;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    min-width: 220px;
    width: max-content !important;
    background: #00b7ce !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-align: center !important;
    z-index: 1;
}

.woocommerce-Addresses .woocommerce-Address .edit,
.woocommerce-Addresses .woocommerce-Address .add {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 1;
}

    display: inline-block !important;
    float: none !important;
    position: static !important;
    margin: 10px 0 0 0 !important;
    color: #fff !important;
    background: #00b7ce !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-align: center !important;
}
.woocommerce-MyAccount-content {
    overflow: visible !important;
}


/* HEADER STYLE MAQUETTE */



/* Patch anti-pixel parasite dans le header */
.main-header .container > *:not(.logo):not(nav):not(button) {
    font-size: 0 !important;
    unicode-bidi: isolate;
    color: transparent !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
}


.main-header {
    background: #fff;
    color: #222;
    padding: 0;
    width: 100%;
    box-shadow: none;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    margin-top: 30px;
}
.main-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}
.main-header .logo {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    letter-spacing: 1px;
}
.main-header .logo span {
    color: #111;
}
.main-header .main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-header .main-nav ul li a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}
.main-header .main-nav ul li a:hover {
    color: #00b7ce;
}
@media (max-width: 900px) {
    .main-header .header-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .main-header .main-nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
        margin-left: auto;
        position: relative;
        z-index: 1201;
    }

.mobile-only {
    display: none !important;
}
@media (max-width: 900px) {
    .mobile-only {
        display: block !important;
    }
}
@media (min-width: 901px) {
    /* Container header prend toute la largeur et permet le positionnement absolu */
    .main-header .header-container {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 70px;
    }
    /* Bouton hamburger en haut à droite du header */
    .menu-toggle.mobile-only {
        display: block !important;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        z-index: 1202;
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
    /* Le menu principal ne doit pas être décalé */
    .main-header .main-nav {
        margin-left: auto;
    }
}




    .hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: #111;
    position: relative;
    top: 18px;
    transition: background 0.2s;
}
.hamburger::before, .hamburger::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: #111;
    position: absolute;
    left: 0;
    transition: transform 0.2s;
}

@media (min-width: 901px) {
    .main-header {
        background: #00b7ce !important;
    }
    .main-header .hamburger,
    .main-header .hamburger::before,
    .main-header .hamburger::after {
        background: #fff !important;
    }
}

    .hamburger::before {
        top: -9px;
    }
    .hamburger::after {
        top: 9px;
    }
    nav.main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 70vw;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 16px rgba(0,0,0,0.12);
        z-index: 1201; /* Assure que le menu est au-dessus de l'overlay */
        flex-direction: column;
        padding: 80px 24px 24px 24px;
        transition: transform 0.3s;
        transform: translateX(-100%);
    }
    nav.main-nav.open {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        transform: translateX(0);
        left: 0;
        top: 0;
        height: 100vh;
        width: 70vw;
        max-width: 300px;
        position: fixed;
        background: #fff;
        z-index: 1201;
        box-shadow: 2px 0 16px rgba(0,0,0,0.12);
        padding: 80px 24px 24px 24px;
    }
    nav.main-nav.open > ul,
    nav.main-nav.open > ol {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    nav.main-nav.open li {
        width: 100%;
        margin: 0 0 12px 0;
    }
    nav.main-nav.open li a {
        display: block;
        width: 100%;
        padding: 12px 0;
    }
    .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 1199;
    pointer-events: none !important;
}
.menu-overlay.active {
    display: block;
    pointer-events: auto !important;
}

}

/* Pour éviter que le contenu soit caché sous le header fixe */
body {
    padding-top: 0;
}
.hero {
    margin-top: 75px;
}

/* Toutes les règles WooCommerce/shop supprimées pour retour à l'affichage natif WooCommerce */

/* FOOTER STYLE MAQUETTE */
.main-footer .footer-baseline {
    font-size: 0.95em;
    color: #00b7ce;
    font-weight: bold;
}
.main-footer {
    background: #23272b;
    color: #fff;
    padding: 0 0 0 0;
    margin-top: 60px;
}
.main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 0 20px 0;
}
.main-footer .footer-column {
    flex: 1;
    padding: 0 20px;
}
.main-footer .footer-column h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}
.main-footer .footer-column ul {
    list-style: none;
    padding: 0;
}
.main-footer .footer-column ul li {
    margin-bottom: 10px;
    color: #fff;
}
.main-footer .footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.main-footer .footer-column ul li a:hover {
    color: #ff7f00;
}
.main-footer .social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.main-footer .social-icons img {
    width: 36px;
    height: 36px;
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}
.main-footer .social-icons a:hover img {
    transform: scale(1.13);
    opacity: 0.85;
}


@media (max-width: 900px) {
    .main-footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .main-header .header-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

:root {
    --primary-color: #00b7ce;
    --secondary-color: #ffffff;
    --accent-color: #ff7f00;
    --text-color: #333333;
    --light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

/* Décalage du contenu Mon compte pour header fixe */
body.woocommerce-account {
    padding-top: 270px !important;
}

/* 1. Masquer le slash parasite du breadcrumb */
body.woocommerce-account .woocommerce-breadcrumb {
    display: none;
}

/* 2 & 3. Mise en page flex pour menu colonne et contenu aligné */
body.woocommerce-account main#main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-height: 500px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content > form {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 200px;
    float: left;
    margin-right: 40px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: block;
    padding-left: 0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 12px;
    text-align: left;
}
body.woocommerce-account .woocommerce-MyAccount-content {
    margin-left: 0;
    flex: 1 1 0%;
    min-width: 0;
}

/* Responsive : menu au-dessus sur mobile */
@media (max-width: 900px) {
    body.woocommerce-account main#main {
        display: block;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
}


/* Améliore l'espacement du contenu principal Mon compte WooCommerce */
body.woocommerce-account .woocommerce-MyAccount-content {
    margin-left: 40px;
    min-width: 0;
}
@media (max-width: 900px) {
    body.woocommerce-account .woocommerce-MyAccount-content {
        margin-left: 0;
    }
}




h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 2em;
    display: inline-block;
    transform: rotate(-3deg);
    position: relative;
    top: 5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    padding-top: 80px !important;
}

.hero {
    margin-top: 0 !important;
    padding-top: 60px;
}

@media (max-width: 900px) {
    .hero {
        padding-top: 80px;
    }
}


@media (max-width: 900px) {
    body {
        padding-top: 100px !important;
    }
}

/* Ceci garantit que le header est collé en haut et que le contenu n'est pas caché dessous */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #000000; /* Logo toujours en noir */
}

.logo span {
    color: #000000; /* "Hit" aussi en noir */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 18px;
    margin-top: 24px;
}


.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    margin-left: 15px;
}

/* Product Description Section */
.product-description {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.product-description-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-description-text {
    text-align: center;
    max-width: 800px;
    margin-bottom: 50px;
}

.product-description-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-description-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.product-scenarios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.scenario {
    text-align: center;
    transition: transform 0.3s;
}

.scenario:hover {
    transform: translateY(-10px);
}

.scenario img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scenario h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.scenario p {
    font-size: 16px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.features-container {
    display: flex;
    gap: 30px;
}
@media (max-width: 900px) {
    .features-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .feature-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
    }
    .features-grid {
        width: 100%;
    }
}

.feature-image {
    flex: 0 0 33.333%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.feature-image-caption {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: var(--primary-color);
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    max-width: 90%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    flex: 0 0 66.666%;
}

.feature-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 36px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
}

.step-gif {
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    padding: 0 20px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.main-footer .social-icons a {
    width: auto;
    height: auto;
    background: none;
    color: inherit;
    border-radius: 0;
    display: inline-block;
    margin-right: 10px;
    transition: none;
    align-items: unset;
    justify-content: unset;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    color: #000000; /* Nom de marque toujours en noir */
    font-weight: bold;
}

/* Barre d'achat fixe */
.sticky-purchase-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.sticky-purchase-bar.visible {
    transform: translateY(0);
}

.sticky-purchase-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 600px) {
  .sticky-purchase-bar .container {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 18px !important;
  }
  .sticky-purchase-bar-text,
  .sticky-purchase-bar-action {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .sticky-purchase-bar-action .btn {
    width: 100% !important;
    max-width: 300px;
    margin: 0 auto !important;
    display: block !important;
  }
}

.sticky-purchase-bar-text {
    flex: 1;
}

.sticky-purchase-bar-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.sticky-purchase-bar-text p {
    font-size: 14px;
    margin: 0;
}

.sticky-purchase-bar-action {
    margin-left: 20px;
}

.sticky-purchase-bar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
    color: var(--text-color);
}

.hero-throne-nowrap {
    white-space: nowrap;
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .how-it-works .section-title h2 {
        font-size: 8.5vw;
        white-space: nowrap;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
        align-items: center;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 18px;
    }
    .hero-text .btn,
    .hero-text .btn-secondary {
        width: 100%;
        max-width: 350px;
        box-sizing: border-box;
        margin-left: 0;
    }
    .hero-text .btn-secondary {
        margin-top: 12px;
    }

    .hero-throne-nowrap {
        font-size: clamp(6vw, 8vw, 9vw);
        width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
    }
    .hero-throne-nowrap .handwritten {
        font-size: 1.3em;
    }

    .hero-content {
        flex-direction: column;
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .product-scenarios {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
    }
    .step {
        margin-bottom: 40px;
    }
    .step:not(:last-child):after {
        display: none;
    }
    .footer-content {
        flex-direction: column;
    }
    .footer-column {
        margin-bottom: 30px;
    }
}
@media (min-width: 901px) {
    .main-header .header-container {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 70px !important;
    }
    .menu-toggle.mobile-only {
        display: block !important;
        position: absolute !important;
        right: 30px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 40px !important;
        background: none !important;
        border: none !important;
        z-index: 1202 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
    .main-header .main-nav {
        margin-left: auto !important;
    }
}