/* =====================================================
   LES JOSIE & CO - STYLES COMMUNS
   ===================================================== */

/* ========== VARIABLES ========== */
:root {
    --bleu-fonce: #2a5d7c;
    --bleu-petrole: #1e6b7b;
    --turquoise: #5ac0b8;
    --turquoise-clair: #7ed4c8;
    --menthe: #a8e6cf;
    --corail: #f4a490;
    --corail-fonce: #e07860;
    --blanc-casse: #fefefe;
    --gris-doux: #f5f9fa;
    --texte: #2a4a5a;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--texte);
    background: var(--blanc-casse);
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========== PAGE LOADER ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-petrole) 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: 'Nunito', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 40px;
    opacity: 0;
    animation: loaderFadeIn 0.8s ease forwards;
}

.loader-peluche {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: loaderBounce 0.8s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 30px;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--turquoise), var(--corail));
    width: 0;
    animation: loaderProgress 0.8s ease forwards;
}

@keyframes loaderFadeIn {
    to { opacity: 1; }
}

@keyframes loaderBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes loaderProgress {
    to { width: 100%; }
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), var(--corail), var(--menthe));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ========== FLOATING HEARTS ========== */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatHeart 15s ease-in-out infinite;
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(42, 93, 124, 0.08);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    overflow: visible;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

header.scrolled .nav-links a {
    color: var(--bleu-fonce);
}

/* Header pour les pages internes (fond blanc par défaut) */
body.internal-page header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(42, 93, 124, 0.08);
}

body.internal-page .nav-links a {
    color: var(--bleu-fonce);
}

body.internal-page .nav-links a:hover {
    color: var(--turquoise);
}

body.internal-page .mobile-menu span {
    background: var(--bleu-fonce);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--turquoise);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--turquoise);
}

/* ========== NAV CART ========== */
.nav-cart {
    position: relative;
    background: var(--turquoise);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-cart:hover {
    background: var(--bleu-petrole);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(90, 192, 184, 0.4);
}

.cart-count {
    background: var(--corail);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    animation: cartPulse 2s ease-in-out infinite;
}

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

/* ========== MOBILE MENU ========== */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

header.scrolled .mobile-menu span {
    background: var(--bleu-fonce);
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu mobile fullscreen */
.nav-links-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-petrole) 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-links-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-links-mobile a {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
}

.nav-links-mobile.active a {
    opacity: 1;
    transform: translateY(0);
}

.nav-links-mobile.active a:nth-child(1) { transition-delay: 0.05s; }
.nav-links-mobile.active a:nth-child(2) { transition-delay: 0.1s; }
.nav-links-mobile.active a:nth-child(3) { transition-delay: 0.15s; }
.nav-links-mobile.active a:nth-child(4) { transition-delay: 0.2s; }
.nav-links-mobile.active a:nth-child(5) { transition-delay: 0.25s; }
.nav-links-mobile.active a:nth-child(6) { transition-delay: 0.3s; }
.nav-links-mobile.active a:nth-child(7) { transition-delay: 0.35s; }

.nav-links-mobile a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links-mobile a.active {
    color: var(--turquoise-clair);
}

/* Burger reste au-dessus du menu */
.mobile-menu {
    z-index: 10001 !important;
    position: relative;
}

/* ========== BOUTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--turquoise);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--bleu-petrole);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(90, 192, 184, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.4s ease;
    cursor: pointer;
}

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

/* ========== ANIMATIONS REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========== SECTION TITLES ========== */
.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--turquoise);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--turquoise);
    border-radius: 2px;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-petrole) 100%);
    color: white;
    padding: 80px 40px 30px;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--turquoise);
    transform: translateY(-5px);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--turquoise);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul a:hover {
    color: var(--turquoise);
    transform: translateX(5px);
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form button {
    background: var(--corail);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--corail-fonce);
    transform: scale(1.05);
}

.footer-bottom {
    max-width: 1400px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.footer-bottom a:hover {
    color: var(--turquoise);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 20px 40px;
    max-width: 1400px;
    margin: 100px auto 0;
}

.breadcrumb a {
    color: var(--turquoise);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
    color: #ccc;
}

/* ========== PAGE HERO ========== */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    max-height: 600px;
    overflow: hidden;
}

.page-hero .hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-hero .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .hero-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 93, 124, 0.75) 0%, rgba(30, 107, 123, 0.6) 50%, rgba(90, 192, 184, 0.4) 100%);
}

.page-hero .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding-top: 40px;
}

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bleu-petrole);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease;
}

.page-hero .hero-badge span {
    font-size: 1.2rem;
}

.page-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.1s both;
}

.page-hero h1 .highlight {
    color: var(--turquoise-clair);
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Floating hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.heart {
    position: absolute;
    animation: heartFloat 10s linear infinite;
    opacity: 0;
    font-size: 20px;
}

@keyframes heartFloat {
    0% { 
        transform: translateY(100vh) rotate(0deg) scale(0.5); 
        opacity: 0; 
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { 
        transform: translateY(-100px) rotate(360deg) scale(1); 
        opacity: 0; 
    }
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    nav {
        padding: 15px 30px;
    }
    
    .nav-links {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
        gap: 10px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .nav-cart {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .page-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column a:hover {
        padding-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-newsletter {
        padding: 30px 20px;
    }
    
    .newsletter-footer-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-footer-form {
        width: 100%;
        flex-direction: column;
    }
    
    .newsletter-footer-form input {
        min-width: auto;
        width: 100%;
    }
    
    .newsletter-footer-form button {
        width: 100%;
    }
    
    .breadcrumb {
        padding: 20px;
        margin-top: 80px;
    }
}

/* ========== NEWSLETTER FOOTER ========== */
.footer-newsletter {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--bleu-petrole) 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 1400px;
    margin: 40px auto 0;
}

.newsletter-footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.newsletter-footer-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: white;
}

.newsletter-footer-content p {
    opacity: 0.9;
    margin: 0;
    color: white;
}

.newsletter-footer-form {
    display: flex;
    gap: 10px;
}

.newsletter-footer-form input {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    min-width: 250px;
}

.newsletter-footer-form button {
    padding: 15px 25px;
    background: var(--corail);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-footer-form button:hover {
    background: var(--corail-fonce);
    transform: translateY(-2px);
}

.newsletter-footer-success {
    text-align: center;
    color: white;
}

.newsletter-footer-success code {
    color: var(--bleu-fonce);
}

@media (max-width: 768px) {
    .footer-newsletter {
        padding: 30px 20px;
    }
    
    .newsletter-footer-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-footer-form {
        width: 100%;
        flex-direction: column;
    }
    
    .newsletter-footer-form input {
        min-width: auto;
        width: 100%;
    }
}

