* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

.playfair {
    font-family: 'Great Vibes', cursive;
}

.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gradient-pink {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.gradient-warm {
    background: linear-gradient(135deg, #faf5f0 0%, #fef3c7 100%);
}

.hero-image {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(251, 146, 60, 0.1)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><style>.cake{fill:%23f3d5ca;}.frosting{fill:%23fbbf24;}.cherry{fill:%23ec4899;}</style></defs><circle cx="200" cy="220" r="80" class="cake"/><path d="M120 220Q120 160 200 140Q280 160 280 220" class="frosting"/><circle cx="200" cy="120" r="15" class="cherry"/></svg>');
    background-size: cover;
    background-position: center;
}


.testimonial-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
}
.testimonial-card > p {
    flex: 1;
}
.testimonial-card > div:last-child {
    margin-top: auto;
}

input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out forwards;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    pointer-events: auto;
}

.toast-notification.mobile {
    right: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast-notification.exit {
    animation: slideOutRight 0.3s ease-out forwards;
}

.toast-notification.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

/* ===== VALIDATION CHAMP ===== */
.field-error {
    border-color: #ef4444 !important;
    animation: fieldShake 0.35s ease;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ===== FLATPICKR THÈME ROSE DÉGRADÉ ===== */
.flatpickr-calendar {
    border: none;
    border-radius: 18px !important;
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.18);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.flatpickr-months {
    background: linear-gradient(to right, #ec4899, #fb7185);
    padding: 10px 0;
}

.flatpickr-months .flatpickr-month {
    height: 40px;
}

.flatpickr-current-month {
    font-size: 15px;
    font-weight: 700;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Mois : texte blanc, sans bordure, sans fond */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: transparent !important;
    border: none !important;
    padding: 0 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #333;
    background: #fff;
    font-weight: 600;
}

/* Année : texte blanc, sans bordure, sans fond */
.flatpickr-current-month input.cur-year {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    border: none !important;
    padding: 0;
    width: 52px;
    outline: none;
    box-shadow: none;
}

/* Cacher les flèches spinner de l'année */
.numInputWrapper span {
    display: none !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: rgba(255,255,255,0.85);
    padding: 10px 14px;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #fff;
}

.flatpickr-weekdays {
    background: #fdf2f8;
    padding: 6px 0;
}

span.flatpickr-weekday {
    color: #be185d;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.flatpickr-day {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    border: none;
}

.flatpickr-day:hover {
    background: #fce7f3;
    border-color: transparent;
    color: #be185d;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: linear-gradient(to right, #ec4899, #fb7185);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
}

.flatpickr-day.today {
    border: 2px solid #f9a8d4;
    color: #ec4899;
    font-weight: 700;
}

.flatpickr-day.today:hover {
    background: #fce7f3;
    border-color: #f9a8d4;
    color: #be185d;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #e5e7eb !important;
    font-weight: 400;
}

/* ===== TOPPING / NAPPAGE CHIPS ===== */
.topping-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    background: #fff;
    border: 1.5px solid #fce4ec;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: default;
}

.topping-chip:hover {
    border-color: #f9a8d4;
    background: #fdf2f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.12);
}

.topping-chip img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.topping-chip.topping-premium {
    border-color: #fed7aa;
    background: #fff7ed;
}

.topping-chip.topping-premium .chip-price {
    color: #f97316;
    font-size: 10px;
    font-weight: 700;
}

.toppings-section p.toppings-label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

/* ===== CHIP SELECTABLES (formulaire commandes) ===== */
.chip-select {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px 5px 8px;
    background: #fff;
    border: 1.5px solid #fce4ec;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.chip-select:hover {
    border-color: #f9a8d4;
    background: #fdf2f8;
    transform: translateY(-1px);
}

.chip-select:has(input:checked) {
    border-color: #ec4899;
    background: #fce7f3;
    color: #be185d;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.15);
}

.chip-select input[type="checkbox"],
.chip-select input[type="radio"] {
    display: none;
}

.chip-select img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
}

.chip-select.chip-premium {
    border-color: #fed7aa;
    background: #fff7ed;
}

.chip-select.chip-premium:hover {
    border-color: #fdba74;
    background: #ffedd5;
}

.chip-select.chip-premium:has(input:checked) {
    border-color: #f97316;
    background: #ffedd5;
    color: #c2410c;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.chip-select.chip-green {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #374151;
}

.chip-select.chip-green:hover {
    border-color: #86efac;
    background: #dcfce7;
}

.chip-select.chip-green:has(input:checked) {
    border-color: #22c55e;
    background: #dcfce7;
    color: #15803d;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

.chip-select .chip-price {
    color: #f97316;
    font-size: 10px;
    font-weight: 700;
}

.chip-select:has(input:checked) .chip-price {
    color: inherit;
}

/* Label section dans commandes */
.order-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: block;
}

.snap-yellow { background-color: #fffc00; }
.snap-yellow:hover { background-color: #e8e900; }

/* ===== ACCORDÉONS ===== */
.accordion-content {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-icon {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ec4899;
}
.accordion-icon.rotated {
    transform: rotate(180deg);
}

/* ===== IMAGE LOADING SHIMMER ===== */
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.img-wrap {
    background: linear-gradient(90deg, #fce4ec 25%, #fdf2f8 50%, #fce4ec 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}
.img-wrap img {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.img-wrap.img-loaded {
    animation: none;
    background: none;
}
/* ===== FLASH PANIER ===== */
@keyframes cart-flash {
    0%   { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
    40%  { box-shadow: 0 0 0 8px rgba(236, 72, 153, 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}
.cart-flash {
    animation: cart-flash 0.6s ease;
}

.img-wrap.img-loaded img {
    opacity: 1;
}