/*
Theme Name: Clic Boutique Theme 1
Theme URI: https://www.clic-boutique.com
Author: Clic Boutique
Author URI: https://www.clic-boutique.com
Description: Thème e-commerce sur mesure pour Clic Boutique. Intègre le support WooCommerce natif et une page Coming Soon personnalisable.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clic-boutique
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Clic Boutique Theme 1 - Thème propriétaire développé pour www.clic-boutique.com
*/

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. CSS Reset & Base
   2. Typography
   3. Layout
   4. Header
   5. Navigation
   6. Content
   7. Sidebar
   8. Footer
   9. Forms
   10. Buttons
   11. WooCommerce
   12. Coming Soon
   13. Utilities
   14. Media Queries
   ========================================================================== */

/* ==========================================================================
   1. CSS RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #005177;
    text-decoration: underline;
}

ul, ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

p {
    margin: 0 0 1.5rem;
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-area {
    width: 100%;
}

@media (min-width: 768px) {
    .site-content.has-sidebar {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: #1a1a1a;
}

.site-title a:hover {
    text-decoration: none;
    color: #0073aa;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #0073aa;
    text-decoration: none;
}

/* Sous-menus */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 0.75rem 1rem;
}

/* Menu toggle mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
}

/* ==========================================================================
   6. CONTENT
   ========================================================================== */

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
}

.entry-meta a {
    color: #666;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-footer {
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.875rem;
    color: #666;
}

/* ==========================================================================
   7. SIDEBAR
   ========================================================================== */

.widget-area {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.25rem 0;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #0073aa;
}

.site-info {
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   9. FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ==========================================================================
   10. BUTTONS
   ========================================================================== */

.button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #005177;
    text-decoration: none;
    color: #fff;
}

.button:active,
button:active,
input[type="submit"]:active {
    transform: translateY(1px);
}

.button.button-secondary {
    background-color: #666;
}

.button.button-secondary:hover {
    background-color: #333;
}

/* ==========================================================================
   11. WOOCOMMERCE
   ========================================================================== */

/* Boutons WooCommerce */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    background-color: #0073aa;
    color: #fff;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background-color: #005177;
    color: #fff;
}

/* Produits */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    width: 100%;
    float: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    padding: 0.5rem 0;
}

.woocommerce ul.products li.product .price {
    color: #0073aa;
    font-weight: 600;
}

/* Panier */
.woocommerce-cart-form,
.woocommerce-checkout {
    max-width: 100%;
}

/* Badges */
.woocommerce span.onsale {
    background-color: #0073aa;
    padding: 0.5rem 1rem;
    min-width: auto;
    min-height: auto;
    line-height: 1;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: #0073aa;
}

.woocommerce-message::before {
    color: #0073aa;
}

/* ==========================================================================
   12. COMING SOON (intégration avec le plugin)
   ========================================================================== */

.coming-soon-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
}

.coming-soon-content {
    max-width: 600px;
    width: 100%;
}

.coming-soon-logo {
    margin-bottom: 2rem;
}

.coming-soon-logo img {
    max-width: 200px;
    margin: 0 auto;
}

.coming-soon-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.coming-soon-message {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Countdown */
.coming-soon-countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    display: block;
}

/* Formulaire email */
.coming-soon-form {
    margin-bottom: 2rem;
}

.coming-soon-form form {
    display: flex;
    gap: 0.5rem;
    max-width: 450px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.coming-soon-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.coming-soon-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.coming-soon-form input[type="email"]:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.coming-soon-form button {
    padding: 1rem 2rem;
    border-radius: 50px;
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coming-soon-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    background: #fff;
}

.coming-soon-form .form-message {
    width: 100%;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.coming-soon-form .form-message.success {
    color: #4ade80;
}

.coming-soon-form .form-message.error {
    color: #f87171;
}

/* Réseaux sociaux */
.coming-soon-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.coming-soon-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.coming-soon-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.coming-soon-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   13. UTILITIES
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ==========================================================================
   14. MEDIA QUERIES
   ========================================================================== */

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 1rem;
    }

    .countdown-number {
        font-size: 1.75rem;
    }
}

@media (min-width: 1200px) {
    .site-content {
        padding: 3rem 2rem;
    }
}
