/*
Theme Name: Angel Friterie
Theme URI: https://angel-friterie.be
Author: Angel Team
Author URI: https://angel-friterie.be
Description: Thème WordPress personnalisé pour la Friterie Angel avec intégration WooCommerce. Design moderne, coloré et convivial avec animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: angel-friterie
Tags: e-commerce, food-and-drink, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B42;
    --secondary: #FFCD3C;
    --accent: #FF8E53;
    --warm: #FFF4E6;
    --text: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --shadow: rgba(45, 52, 54, 0.1);
    --shadow-strong: rgba(45, 52, 54, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--warm);
    color: var(--text);
    line-height: 1.6;
}

/* Fun animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 205, 60, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

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

/* Header super friendly */
header.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    border-bottom: 3px solid var(--secondary);
}

/* Barre d'info en haut du header */
.header-topbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 2px solid var(--secondary);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.phone-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 6px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.phone-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.address-info {
    font-weight: 500;
    font-size: 14px;
}

.itinerary-btn {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 6px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.itinerary-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* Statut d'ouverture dans la topbar */
.opening-status-topbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Statut : Ouvert */
.opening-status-topbar.status-open .status-indicator {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
}

/* Statut : Ferme bientôt */
.opening-status-topbar.status-closing_soon {
    background: rgba(255, 193, 7, 0.4);
    border-color: rgba(255, 193, 7, 0.7);
    animation: pulse-warning 2s infinite;
}

.opening-status-topbar.status-closing_soon .status-indicator {
    background: #FFC107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 1);
    animation: pulse-indicator-warning 1s infinite;
}

/* Statut : Fermé */
.opening-status-topbar.status-closed .status-indicator {
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.8);
}

.opening-status-topbar .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    animation: pulse-indicator 2s infinite;
}

.opening-status-topbar .status-text {
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Animation pour "Ferme bientôt" */
@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-indicator-warning {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

nav.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo::before {
    content: '🍟';
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

/* Animation pulse pour l'indicateur */
@keyframes pulse-indicator {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.cart-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 205, 60, 0.3);
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 205, 60, 0.3);
}

/* Main content spacing */
.site-main {
    min-height: calc(100vh - 200px);
}

/* Hero section super fun */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--warm) 100%);
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 80px 20px;
}

.hero::before {
    content: '🍟 🍔 🥤 🍟 🍔 🥤 🍟 🍔 🥤';
    position: absolute;
    top: 10%;
    left: -100px;
    font-size: 40px;
    opacity: 0.1;
    animation: slide 20s linear infinite;
    white-space: nowrap;
}

.hero::after {
    content: '🧡 💛 🧡 💛 🧡 💛 🧡 💛 🧡';
    position: absolute;
    bottom: 10%;
    right: -100px;
    font-size: 35px;
    opacity: 0.1;
    animation: slide-reverse 25s linear infinite;
    white-space: nowrap;
}

@keyframes slide {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100vw); }
}

@keyframes slide-reverse {
    0% { transform: translateX(100px); }
    100% { transform: translateX(-100vw); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

.hero h1 {
    font-size: clamp(50px, 10vw, 100px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px var(--secondary);
}

.hero p {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 66, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 18px 35px;
    border: 3px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Sections with personality */
.content-section {
    padding: 80px 0;
}

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

.section-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.section-header h2 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-description {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Fun features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-strong);
}

.feature-emoji {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* Page content styling */
.page-content,
.entry-content {
    background: var(--white);
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 8px 25px var(--shadow);
    margin-bottom: 40px;
}

.page-content h1,
.entry-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
}

.page-content h2,
.entry-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 20px;
}

/* WooCommerce Styling */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 60px;
}

.woocommerce-products-header__title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 5px solid var(--secondary);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-strong);
}

.woocommerce ul.products li.product img {
    border-radius: 15px;
    margin-bottom: 20px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .button {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 66, 0.3);
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 66, 0.4);
}

/* Contact cards friendly */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--secondary);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-strong);
}

.contact-emoji {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* Footer fun */
footer.site-footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

footer.site-footer::before {
    content: '🍟 💛 🍟 💛 🍟 💛 🍟 💛';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    font-size: 30px;
    opacity: 0.2;
    animation: float 10s ease-in-out infinite;
}

footer.site-footer p {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Cart badge */
.cart-badge {
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    top: -5px;
    left: 5px;
    min-width: 20px;
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
}

/* Notifications fun */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.4s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification.show {
    transform: translateX(0);
}

.notification::before {
    content: '✨';
    font-size: 16px;
}

/* Smooth transitions */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 50px;
    }

    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Topbar responsive */
    .header-topbar {
        font-size: 12px;
        padding: 8px 0;
    }

    .topbar-content {
        justify-content: center;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .separator {
        display: none;
    }

    .phone-link {
        font-size: 14px;
        padding: 5px 12px;
    }

    .address-info {
        font-size: 12px;
    }

    .itinerary-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .opening-status-topbar {
        font-size: 11px;
        padding: 5px 12px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .page-content,
    .entry-content {
        padding: 30px 20px;
    }

    nav.main-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-center {
        order: 2;
        width: 100%;
    }

    .logo {
        order: 1;
        font-size: 26px;
    }

    .cart-link {
        order: 3;
    }

    .opening-status {
        font-size: 12px;
        padding: 6px 12px;
    }

    .status-text {
        font-size: 11px;
    }
}

/* WordPress specific classes */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    padding: 10px 0;
    font-style: italic;
    color: var(--text-light);
}

/* ==================================
   Styles pour la sélection de tranche horaire au checkout
   ================================== */
#angel_pickup_datetime_fields {
    background: linear-gradient(135deg, #FFF4E6 0%, #FFE8CC 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 3px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(255, 107, 66, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#angel_pickup_datetime_fields:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 66, 0.25);
    transform: translateY(-2px);
}

#angel_pickup_datetime_fields::before {
    content: '🍟';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 100px;
    opacity: 0.08;
    transform: rotate(15deg);
    pointer-events: none;
}

#angel_pickup_datetime_fields h3 {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--secondary) !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
    font-size: 1.4em !important;
    font-weight: 700 !important;
}

#angel_pickup_datetime_fields label {
    font-weight: 600;
    color: var(--primary);
    font-size: 17px;
    margin-bottom: 8px;
    display: block;
}

#angel_pickup_datetime_fields select,
#angel_pickup_datetime_fields input[type="date"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

#angel_pickup_datetime_fields select:hover,
#angel_pickup_datetime_fields input[type="date"]:hover {
    border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(255, 107, 66, 0.25);
    transform: translateY(-1px);
}

#angel_pickup_datetime_fields select:focus,
#angel_pickup_datetime_fields input[type="date"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 66, 0.2);
}

#angel_pickup_datetime_fields select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#angel_pickup_datetime_fields .form-row {
    margin-bottom: 0;
}

#angel_pickup_datetime_fields .woocommerce-input-wrapper {
    position: relative;
}

#angel_pickup_datetime_fields .woocommerce-input-wrapper::after {
    content: '▼';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
    font-size: 12px;
}

/* Animation pour le chargement des créneaux */
#angel_time_slots_container select[disabled] {
    background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s ease-in-out infinite;
}

@keyframes loadingGradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Styles pour l'affichage dans le résumé de commande (frontend) */
.woocommerce-order-details .pickup-info {
    background: linear-gradient(135deg, #FFF4E6 0%, #FFE8CC 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.woocommerce-order-details .pickup-info p {
    margin: 8px 0;
    font-size: 15px;
}

.woocommerce-order-details .pickup-info strong {
    color: var(--primary);
}

/* Styles pour l'admin WooCommerce */
.order_data_column h3 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.order_data_column .form-field input[type="date"],
.order_data_column .form-field input[type="text"],
.order_data_column .form-field select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.order_data_column .form-field .description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.order_data_column .form-field label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.order_data_column .form-field input[type="checkbox"] {
    margin-right: 8px;
}
