/*
Theme Name: Éléana Couture
Theme URI: https://eleanacouture.fr
Author: Éléana Couture
Author URI: https://eleanacouture.fr
Description: Thème écoresponsable sur-mesure pour Éléana Couture — Créations artisanales faites main à Bourg-en-Bresse. Optimisé WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eleana-couture
Tags: e-commerce, woocommerce, custom-colors, custom-logo, featured-images, full-width-template, responsive-layout
WooCommerce: 9.0
*/

/* ═══════ DESIGN TOKENS ═══════ */
:root {
    --blush: #F2D7D5;
    --blush-light: #FDF5F4;
    --blush-deep: #E8B4B8;
    --cream: #FFF9F7;
    --cream-warm: #FFFBFA;
    --teal: #1B6B6D;
    --teal-dark: #145456;
    --teal-light: #2A8E90;
    --gold: #C8A96E;
    --gold-light: #D4BC8E;
    --text-dark: #3A2E2E;
    --text-soft: #7A6B6B;
    --text-light: #A89898;
    --border: #F0E0DD;
    --shadow-soft: 0 2px 20px rgba(58, 46, 46, 0.06);
    --shadow-hover: 0 8px 30px rgba(58, 46, 46, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ═══════ RESET & BASE ═══════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-warm);
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ═══════ ANNOUNCEMENT BAR ═══════ */
.announcement-bar {
    background: var(--teal);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}
.announcement-bar span { margin: 0 20px; opacity: 0.5; }

/* ═══════ HEADER / NAVIGATION ═══════ */
.site-header {
    background: var(--cream-warm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--text-soft);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

.header-logo-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    color: var(--text-light);
}
.header-logo-img img {
    height: 80px;
    width: auto;
}

.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--teal-dark);
}
.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1;
}
.logo-sub {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 2px;
}

.header-icons { display: flex; gap: 20px; align-items: center; }
.header-icons a {
    color: var(--text-soft);
    font-size: 18px;
    transition: color 0.3s;
}
.header-icons a:hover { color: var(--teal); }
.cart-count {
    background: var(--blush-deep);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    margin-top: -8px;
    vertical-align: top;
}

/* ═══════ HERO ═══════ */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 75vh;
    background: linear-gradient(135deg, var(--cream) 0%, var(--blush-light) 60%, var(--blush) 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(232, 180, 184, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 80px;
    z-index: 2;
}
.hero-badge {
    display: inline-block;
    background: var(--teal);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    width: fit-content;
}
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero-content h1 em { font-style: italic; color: var(--teal); }
.hero-text {
    font-size: 16px;
    color: var(--text-soft);
    max-width: 440px;
    margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; }

/* ═══════ BUTTONS ═══════ */
.btn-primary {
    background: var(--teal);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 400;
    display: inline-block;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27, 107, 109, 0.3); }
.btn-secondary {
    background: transparent;
    color: var(--teal);
    border: 1.5px solid var(--teal);
    padding: 14px 36px;
    border-radius: 30px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 400;
    display: inline-block;
}
.btn-secondary:hover { background: var(--teal); color: white; }

/* ═══════ TRUST BAR ═══════ */
.trust-bar {
    background: white;
    padding: 28px 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    border-bottom: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { font-size: 22px; }
.trust-text {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 400;
}

/* ═══════ SECTIONS ═══════ */
.section-container {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.section-title p { color: var(--text-soft); font-size: 15px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 500;
}
.see-all {
    color: var(--teal);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
    transition: opacity 0.3s;
}
.see-all:hover { opacity: 0.7; }

/* ═══════ COLLECTIONS GRID ═══════ */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.collection-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 3/4;
}
.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.collection-card:hover img { transform: scale(1.08); }
.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 84, 86, 0.85) 0%, rgba(20, 84, 86, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: white;
    transition: background 0.4s;
}
.collection-card:hover .collection-overlay {
    background: linear-gradient(to top, rgba(20, 84, 86, 0.9) 0%, rgba(20, 84, 86, 0.4) 60%, rgba(20, 84, 86, 0.1) 100%);
}
.collection-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}
.collection-overlay p { font-size: 13px; opacity: 0.8; margin-bottom: 12px; }

/* ═══════ WOOCOMMERCE PRODUCT CARDS ═══════ */
.products-grid,
ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
}
ul.products li.product,
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-soft);
    list-style: none;
    float: none !important;
    width: auto !important;
    margin-right: 0 !important;
}
ul.products li.product:hover,
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
ul.products li.product a img,
.product-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}
ul.products li.product:hover a img,
.product-card:hover .product-image img {
    transform: scale(1.06);
}
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f0ee;
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--teal);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

/* WooCommerce product info override */
ul.products li.product .woocommerce-loop-product__title,
.product-name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    padding: 16px 18px 0;
}
ul.products li.product .price,
.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--teal);
    padding: 0 18px 20px;
}
.woocommerce ul.products li.product .button,
.btn-add-to-cart {
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 12px;
    text-align: center;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    display: block;
}
.woocommerce ul.products li.product .button:hover,
.btn-add-to-cart:hover {
    background: var(--teal-dark);
}

/* ═══════ STORY / ABOUT SECTION ═══════ */
.story-section {
    background: white;
    padding: 80px 40px;
}
.story-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 20px;
}
.story-content p {
    color: var(--text-soft);
    margin-bottom: 16px;
    font-size: 15px;
}
.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--teal);
}
.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* ═══════ ENGAGEMENTS ═══════ */
.engagements {
    background: var(--teal);
    color: white;
    padding: 70px 40px;
}
.engagements-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.engagements h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 50px;
}
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.engagement-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    margin: 12px 0 8px;
}
.engagement-item p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}
.engagement-icon { font-size: 36px; }

/* ═══════ NEWSLETTER ═══════ */
.newsletter-section {
    background: var(--blush-light);
    padding: 60px 40px;
    text-align: center;
}
.newsletter-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
}
.newsletter-section p { color: var(--text-soft); margin-bottom: 28px; font-size: 15px; }
.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    background: white;
    outline: none;
    color: var(--text-dark);
}
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-form button {
    background: var(--teal);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 0 30px 30px 0;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 400;
}
.newsletter-form button:hover { background: var(--teal-dark); }

/* ═══════ FOOTER ═══════ */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 40px 30px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo-main { color: white; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    font-size: 14px;
    max-width: 280px;
}
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color 0.3s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
.payment-icons { display: flex; gap: 12px; font-size: 22px; }

/* ═══════ WOOCOMMERCE SINGLE PRODUCT ═══════ */
.woocommerce div.product div.images {
    border-radius: var(--radius);
    overflow: hidden;
}
.woocommerce div.product .product_title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--text-dark);
}
.woocommerce div.product p.price {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    font-size: 28px;
}
.woocommerce div.product .single_add_to_cart_button {
    background: var(--teal) !important;
    border-radius: 30px !important;
    padding: 14px 36px !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    transition: all 0.3s !important;
}
.woocommerce div.product .single_add_to_cart_button:hover {
    background: var(--teal-dark) !important;
}

/* ═══════ WOOCOMMERCE CART & CHECKOUT ═══════ */
.woocommerce .checkout .form-row input,
.woocommerce .checkout .form-row textarea,
.woocommerce .checkout .form-row select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 12px 16px;
    font-family: 'Josefin Sans', sans-serif;
}
.woocommerce #place_order {
    background: var(--teal);
    border-radius: 30px;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 40px;
}
.woocommerce #place_order:hover { background: var(--teal-dark); }

/* ═══════ MOBILE MENU ═══════ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ═══════ WOOCOMMERCE PRODUCT PAGE ═══════ */
.sku_wrapper { display: none; }

/* ═══════ CONTACT FORM ═══════ */
.page-template-default .section-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 40px;
}
.page-template-default .section-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
}
.page-template-default .section-container > p {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 40px;
    font-size: 15px;
}
.wpcf7-form label {
    display: block;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 400;
    margin-bottom: 20px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-dark);
    background: white;
    outline: none;
    margin-top: 8px;
    transition: border-color 0.3s;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--teal);
}
.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
}
.wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    background: var(--teal);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 30px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 400;
    margin-top: 10px;
}
.wpcf7-form input[type="submit"]:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 107, 109, 0.3);
}
.wpcf7-response-output {
    border: none !important;
    text-align: center;
    font-size: 14px;
    padding: 14px !important;
    border-radius: var(--radius-sm);
    margin: 20px 0 0 !important;
}
.wpcf7-form.sent .wpcf7-response-output {
    background: rgba(27, 107, 109, 0.1);
    color: var(--teal-dark);
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background: rgba(232, 180, 184, 0.2);
    color: var(--text-dark);
}
.wpcf7-not-valid-tip {
    color: var(--blush-deep);
    font-size: 12px;
    margin-top: 6px;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; min-height: auto; }
    .hero-content { padding: 60px 40px; }
    .hero-mosaic { display: none; }
    .collections-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid, ul.products { grid-template-columns: repeat(3, 1fr); }
    .story-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .engagements-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .products-grid, ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .trust-bar { flex-wrap: wrap; gap: 20px; padding: 20px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-right: 1.5px solid var(--border); border-radius: 30px; }
    .newsletter-form button { border-radius: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-container { padding: 40px 20px; }
}

@media (max-width: 480px) {
    .collections-grid { grid-template-columns: 1fr; }
    .products-grid, ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.8s ease both; }
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }
