/*
Theme Name: Poortfolia
Description: Portfolio creation service theme
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #e0b3d3;
}

nav {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 2rem !important;
    min-height: 60px !important;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b9d, #c44bc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #8b5a96;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff6b9d;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.1);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b9d, #c44bc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #8b5a96;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards */
.services {
    max-width: 1000px;
    margin: 0 auto;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2);
    border: 3px solid #ffb3d9;
}

.service-card.premium {
    border: 3px solid #ff6b9d;
    position: relative;
    overflow: hidden;
}

.service-card.premium::before {
    content: "✨ POPULAR";
    position: absolute;
    top: -5px;
    right: -30px;
    background: linear-gradient(45deg, #ff6b9d, #c44bc4);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ff6b9d;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #c44bc4;
    margin: 1rem 0;
}

.features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.features li {
    padding: 0.5rem 0;
    color: #8b5a96;
    position: relative;
    padding-left: 1.5rem;
}

.features li::before {
    content: "💖";
    position: absolute;
    left: 0;
}

.buy-button {
    background: linear-gradient(45deg, #ff6b9d, #c44bc4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* Footer */
footer {
    background: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-radius: 20px 20px 0 0;
    border-top: 3px solid #e0b3d3;
}

footer p {
    color: #8b5a96;
    margin-bottom: 1rem;
}

footer a {
    color: #ff6b9d;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

footer a:hover {
    color: #c44bc4;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1rem;
    }
}

/* ==================== */
/* STYLES WOOCOMMERCE GÉNÉRAUX */
/* ==================== */

/* Variables CSS pour WooCommerce */
:root {
    --wc-primary: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --wc-secondary: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --wc-accent: #e91e63;
    --wc-accent-light: #f8bbd9;
    --wc-text-dark: #2c2c2c;
    --wc-text-light: #6c6c6c;
    --wc-white: #ffffff;
    --wc-background: #fdf7f7;
    --wc-card-shadow: 0 20px 60px rgba(233, 30, 99, 0.15);
    --wc-hover-shadow: 0 30px 80px rgba(233, 30, 99, 0.25);
}

/* Pages WooCommerce - Layout général */
.woocommerce,
.woocommerce-page {
    background: linear-gradient(45deg, #ffeef7, #fff0f7, #fdf2f8);
    min-height: 100vh;
}

/* ==================== */
/* STYLES PANIER */
/* ==================== */

/* Wrapper principal panier */
.poortfolia-cart-wrapper {
    background: linear-gradient(45deg, #ffeef7, #fff0f7, #fdf2f8);
    min-height: 100vh;
    padding: 2rem 0;
    padding-top: 100px;
}

.poortfolia-cart-wrapper .cart-hero {
    text-align: center;
    padding: 2rem 0 3rem;
    margin-bottom: 2rem;
}

.poortfolia-cart-wrapper .cart-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    background: var(--wc-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.poortfolia-cart-wrapper .cart-subtitle {
    font-size: 1.2rem;
    color: var(--wc-text-light);
    font-weight: 500;
}

/* ==================== */
/* STYLES CHECKOUT */
/* ==================== */

/* Wrapper principal checkout */
.poortfolia-checkout-wrapper {
    background: linear-gradient(45deg, #ffeef7, #fff0f7, #fdf2f8);
    min-height: 100vh;
    padding: 2rem 0;
    padding-top: 100px;
}

.poortfolia-checkout-wrapper .checkout-hero {
    text-align: center;
    padding: 2rem 0 3rem;
    margin-bottom: 2rem;
}

.poortfolia-checkout-wrapper .checkout-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    background: var(--wc-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.poortfolia-checkout-wrapper .checkout-subtitle {
    font-size: 1.2rem;
    color: var(--wc-text-light);
    font-weight: 500;
}

/* Conteneurs et grilles */
.cart-container,
.woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.checkout-container,
.cart-main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Sections principales */
.checkout-form-wrapper,
.cart-items-wrapper,
.checkout-sidebar,
.cart-sidebar {
    background: var(--wc-white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--wc-card-shadow);
    border: 2px solid rgba(233, 30, 99, 0.1);
}

.checkout-sidebar,
.cart-sidebar {
    position: sticky;
    top: 100px;
    padding: 2.5rem;
}

/* Headers de section */
.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--wc-accent-light);
}

.section-header h3 {
    color: var(--wc-accent);
    margin-bottom: 0.5rem;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
}

.section-header p {
    color: var(--wc-text-light);
    font-size: 0.95rem;
}

/* ==================== */
/* FORMULAIRES WOOCOMMERCE */
/* ==================== */

/* Champs de formulaire */
.woocommerce .form-row input[type="text"],
.woocommerce .form-row input[type="email"],
.woocommerce .form-row input[type="tel"],
.woocommerce .form-row input[type="password"],
.woocommerce .form-row select,
.woocommerce .form-row textarea,
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--wc-accent-light);
    border-radius: 15px;
    font-family: inherit;
    background: var(--wc-white);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.woocommerce .form-row input:focus,
.woocommerce .form-row select:focus,
.woocommerce .form-row textarea:focus,
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--wc-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.woocommerce .form-row label,
.woocommerce-checkout .form-row label {
    color: var(--wc-text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.woocommerce .form-row,
.woocommerce-checkout .form-row {
    margin-bottom: 1.5rem;
}

/* ==================== */
/* BOUTONS WOOCOMMERCE */
/* ==================== */

/* Boutons principaux */
.woocommerce .button,
.woocommerce-checkout .button,
#place_order,
.checkout-button,
.return-to-shop {
    background: var(--wc-primary) !important;
    color: var(--wc-white) !important;
    padding: 1.2rem 3rem !important;
    border-radius: 25px !important;
    border: none !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    box-shadow: var(--wc-card-shadow) !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}

.woocommerce .button:hover,
.woocommerce-checkout .button:hover,
#place_order:hover,
.checkout-button:hover,
.return-to-shop:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: var(--wc-hover-shadow) !important;
}

/* Bouton checkout spécial */
.checkout-button {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%) !important;
    font-size: 1.3rem !important;
    width: 100% !important;
    margin-top: 2rem !important;
}

#place_order {
    width: 100% !important;
    margin-top: 2rem !important;
}

/* ==================== */
/* TABLEAUX WOOCOMMERCE */
/* ==================== */

/* Tables du panier */
.shop_table_responsive,
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.shop_table_responsive th,
.shop_table_responsive td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
    text-align: left;
}

.shop_table_responsive th,
.woocommerce-checkout-review-order-table th {
    color: var(--wc-accent);
    font-weight: 600;
}

.order-total th,
.order-total td {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wc-accent);
    border-top: 2px solid var(--wc-accent-light);
    border-bottom: none;
}

/* ==================== */
/* MÉTHODES DE PAIEMENT */
/* ==================== */

.wc_payment_methods,
.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_method,
.payment_methods li {
    background: rgba(233, 30, 99, 0.05);
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(233, 30, 99, 0.1);
}

.wc_payment_method input[type="radio"],
.payment_methods input[type="radio"] {
    margin: 1rem;
}

.wc_payment_method label,
.payment_methods label {
    padding: 1rem;
    display: block;
    font-weight: 600;
    color: var(--wc-text-dark);
    cursor: pointer;
}

.payment_box {
    padding: 1.5rem;
    background: rgba(233, 30, 99, 0.02);
    border-top: 1px solid rgba(233, 30, 99, 0.1);
}

/* ==================== */
/* MESSAGES WOOCOMMERCE */
/* ==================== */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.woocommerce-error {
    background: #ffe6e6;
    border-left-color: #e74c3c;
    color: #c0392b;
}

.woocommerce-message {
    background: #e6ffe6;
    border-left-color: #27ae60;
    color: #229954;
}

.woocommerce-info {
    background: #e6f3ff;
    border-left-color: #3498db;
    color: #2980b9;
}

/* ==================== */
/* PANIER - ÉLÉMENTS SPÉCIFIQUES */
/* ==================== */

.product-thumbnail img {
    max-width: 80px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.product-name a {
    color: var(--wc-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.product-name a:hover {
    color: var(--wc-accent);
}

.product-price,
.product-subtotal {
    color: var(--wc-accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.qty {
    width: 70px;
    padding: 0.5rem;
    border: 2px solid var(--wc-accent-light);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.qty:focus {
    border-color: var(--wc-accent);
    outline: none;
}

.remove {
    color: #dc3545 !important;
    text-decoration: none !important;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove:hover {
    background: #dc3545;
    color: white !important;
}

/* ==================== */
/* TOTAUX PANIER */
/* ==================== */

.cart_totals {
    background: rgba(233, 30, 99, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--wc-accent-light);
}

.cart_totals h2 {
    color: var(--wc-accent);
    margin-bottom: 1.5rem;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
}

.cart_totals table {
    width: 100%;
    margin-bottom: 2rem;
}

.cart_totals th,
.cart_totals td {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
}

.cart_totals th {
    text-align: left;
    color: var(--wc-text-dark);
    font-weight: 600;
}

.cart_totals td {
    text-align: right;
    color: var(--wc-text-dark);
    font-weight: 500;
}

/* ==================== */
/* COUPONS */
/* ==================== */

.coupon {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}

.coupon input[type="text"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--wc-accent-light);
    border-radius: 15px;
    font-size: 1rem;
}

.coupon input[type="text"]:focus {
    border-color: var(--wc-accent);
    outline: none;
}

.coupon .button {
    min-width: auto;
    padding: 1rem 1.5rem !important;
}

/* ==================== */
/* ACTIONS PANIER */
/* ==================== */

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ==================== */
/* PANIER VIDE */
/* ==================== */

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--wc-white);
    border-radius: 25px;
    box-shadow: var(--wc-card-shadow);
}

.cart-empty .cart-empty-message,
.cart-empty p {
    color: var(--wc-text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ==================== */
/* GARANTIES SECTION */
/* ==================== */

.guarantee-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(233, 30, 99, 0.05);
    border-radius: 20px;
    border: 2px solid var(--wc-accent-light);
}

.guarantee-section h4 {
    color: var(--wc-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.guarantee-section ul {
    list-style: none;
    padding: 0;
}

.guarantee-section li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.guarantee-section i {
    color: #28a745;
}

/* ==================== */
/* CHECKOUT SPÉCIFIQUE */
/* ==================== */

/* Section de révision de commande */
.woocommerce-checkout-review-order {
    background: rgba(233, 30, 99, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

/* Termes et conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(233, 30, 99, 0.05);
    border-radius: 12px;
}

.woocommerce-terms-and-conditions-checkbox-text {
    color: var(--wc-text-dark);
    line-height: 1.6;
}

.woocommerce-terms-and-conditions-checkbox-text a {
    color: var(--wc-accent);
    text-decoration: underline;
}

/* Layout des champs */
.form-row-first,
.form-row-last {
    width: 48%;
    float: left;
}

.form-row-last {
    float: right;
}

.form-row-wide {
    width: 100%;
    clear: both;
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

@media (max-width: 768px) {
    /* Headers */
    .poortfolia-cart-wrapper,
    .poortfolia-checkout-wrapper {
        padding-top: 80px;
    }
    
    .cart-title,
    .checkout-title {
        font-size: 2.5rem;
    }
    
    /* Grilles */
    .checkout-container,
    .cart-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Sections */
    .checkout-form-wrapper,
    .checkout-sidebar,
    .cart-items-wrapper,
    .cart-sidebar {
        padding: 2rem;
    }
    
    .checkout-sidebar,
    .cart-sidebar {
        position: static;
    }

    /* Navigation */
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Tables responsive */
    .shop_table_responsive {
        font-size: 0.9rem;
    }
    
    .shop_table_responsive th,
    .shop_table_responsive td {
        padding: 1rem 0.5rem;
    }
    
    /* Actions */
    .actions,
    .coupon {
        flex-direction: column;
    }
    
    /* Champs de formulaire */
    .form-row-first,
    .form-row-last {
        width: 100%;
        float: none;
    }
    
    /* Conteneurs principaux */
    .cart-container,
    .woocommerce-checkout {
        padding: 0 1rem;
    }
}

/* ==================== */
/* ANIMATIONS ET TRANSITIONS */
/* ==================== */

/* Animation de chargement */
.processing {
    opacity: 0.6;
    pointer-events: none;
}

.blockUI {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px) !important;
}

/* Effets de survol pour les cartes */
.service-card,
.cart-items-wrapper,
.checkout-form-wrapper,
.cart-sidebar,
.checkout-sidebar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* ==================== */
/* SURCHARGES WOOCOMMERCE SPÉCIFIQUES */
/* ==================== */

/* Masquer certains éléments WooCommerce par défaut */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3 {
    display: none;
}

/* Groupes de notices */
.woocommerce-NoticeGroup {
    margin-bottom: 2rem;
}

/* Sidebar du checkout personnalisée */
.woocommerce-checkout .col2-set {
    width: 100%;
}

.woocommerce-checkout #order_review {
    background: transparent;
    padding: 0;
}

/* Ajustements pour les thèmes */
.woocommerce-checkout #customer_details {
    margin-bottom: 2rem;
}

/* ==================== */
/* STYLES ADDITIONNELS POUR COMPATIBILITÉ */
/* ==================== */

/* S'assurer que les styles s'appliquent même avec d'autres plugins */
.woocommerce-cart .poortfolia-cart-wrapper,
.woocommerce-checkout .poortfolia-checkout-wrapper {
    background: linear-gradient(45deg, #ffeef7, #fff0f7, #fdf2f8) !important;
}

/* Forcer l'application des styles sur les pages WooCommerce */
body.woocommerce,
body.woocommerce-page {
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%) !important;
}

body.woocommerce-cart,
body.woocommerce-checkout {
    background: linear-gradient(45deg, #ffeef7, #fff0f7, #fdf2f8) !important;
}

/* ==================== */
/* CORRECTIONS FINALES */
/* ==================== */

/* S'assurer que le header reste au-dessus */
header {
    z-index: 9999 !important;
}

/* Espacement correct pour le contenu principal */
.woocommerce main,
.woocommerce-page main {
    margin-top: 0;
    padding: 0;
}

/* Container global pour les pages WooCommerce */
.woocommerce .container,
.woocommerce-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* Supprime le texte ET le conteneur */
.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Supprime l'espace résiduel */
.woocommerce-checkout-review-order {
    margin-bottom: 0 !important;
}
/* Masquer le bouton Update cart */
button[name="update_cart"] {
    display: none !important;
}
button[name="update_cart"], 
input[name="update_cart"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}