/* --- DESIGN SYSTEM : COLORÉ & LUDIQUE --- */
/* --- VARIABLES THEME --- */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --gradient-main: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --text-dark: #2c3e50;
    --accent-pink: #ff4b1f;
    --accent-yellow: #ff9068;
    --soft-bg: #fdfbf7;
    --text-light: #666;
    --gradient-fun: linear-gradient(120deg, #f6d365 0%, #fda085 100%);

    /* Couleurs Pop */
    --pop-orange: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --pop-blue: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    --pop-purple: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    --pop-green: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--soft-bg);
    overflow-x: hidden;
    padding-top: 125px;
}

h1, h2, h3, h4, .fredoka-font {
    font-family: 'Fredoka', sans-serif; /* Police arrondie style enfant */
}

.dropdown-menu {
    transform-origin: top center;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 160ms ease, transform 1000ms cubic-bezier(.2, .7, .2, 1);
    &.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-block__icon {
    margin-right: 0;
}

.header-block__action-btn {
    --header-block-spacing-x: 0;
    --header-block-spacing-y: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-left: 15px;
    position: relative;
    transition: color 0.3s;
}


/* --- GLOBAL HEADER WRAPPER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transition fluide */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Classe ajoutée via JS pour cacher le menu */
.site-header.hide-nav {
    transform: translateY(-100%);
}

/* --- 1. TOP ANNOUNCEMENT BAR (MARQUEE) --- */
.top-bar {
    background: var(--gradient-main);
    color: white;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.marquee-container {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Commence hors écran */
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding-right: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pause au survol pour lire le code promo */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* --- 2. MAIN NAVBAR --- */
@media (max-width: 576px) {
    .offcanvas {
        min-height: 70vh;
    }

}

.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

/* Liens du menu */
.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
    font-size: 0.95rem;
}

/* Effet souligné au survol */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* Dropdown custom */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-top: 15px; /* Petit décalage */
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background-color: #f0f4ff;
    color: var(--primary-color);
    transform: translateX(5px);
}
.dropdown-item i { width: 25px; color: #888; }
.dropdown-item:hover i { color: var(--primary-color); }

/* Icons Actions (Cart, User...) */
.nav-action-btn {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-left: 15px;
    position: relative;
    transition: color 0.3s;
}
.nav-action-btn:hover { color: var(--primary-color); }

.cart-badge {
    position: absolute;
    top: -10px;
    right: -8px;
    background: #ff4b1f;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 70px;
    padding-bottom: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23F1F8FF" d="M44.7,-76.4C58.9,-69.2,71.8,-59.1,81.6,-46.6C91.4,-34.1,98.1,-19.2,95.8,-5.2C93.5,8.8,82.2,21.9,71.2,33.1C60.2,44.3,49.5,53.6,37.6,61.6C25.7,69.6,12.6,76.3,-0.9,77.9C-14.4,79.5,-29.1,76,-41.8,68.4C-54.5,60.8,-65.2,49.1,-73.4,35.9C-81.6,22.7,-87.3,8,-85.7,-6C-84.1,-20,-75.2,-33.3,-64.5,-43.6C-53.8,-53.9,-41.3,-61.2,-28.4,-69.1C-15.5,-77,-2.2,-85.5,12.2,-87.6C26.6,-89.7,30.5,-73.6,44.7,-76.4Z" transform="translate(100 100)" /></svg>') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: #eef2ff;
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient {
    background: var(--gradient-main);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.3);
    transition: transform 0.3s;
}
.btn-gradient:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 15px 25px rgba(106, 17, 203, 0.4);
}

/* Hero Image Container */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-img {
    max-height: 350px;
    z-index: 10;
    filter: drop-shadow(0 50px 60px rgba(0,0,0,0.3));
}

/* ANIMATED BADGES (Ce que vous aimez !) */
.floating-badge {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    animation: float 5s ease-in-out infinite;
}
.badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.fb-1 { top: 15%; left: 0; animation-delay: 0s; }
.fb-2 { bottom: 20%; right: 0; animation-delay: 2.5s; }
.fb-3 { top: 50%; right: -20px; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- TRUST / FRENCH BRAND SECTION --- */
.trust-section {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}
.flag-icon { width: 30px; margin-right: 10px; }

/* --- FEATURE CARDS (Colorful) --- */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--gradient-main);
}
.f-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Specific colors for specific cards to be playful */
.card-purple .f-icon { color: #8e44ad; -webkit-text-fill-color: #8e44ad; }
.card-blue .f-icon { color: #2980b9; -webkit-text-fill-color: #2980b9; }
.card-green .f-icon { color: #27ae60; -webkit-text-fill-color: #27ae60; }
.card-orange .f-icon { color: #d35400; -webkit-text-fill-color: #d35400; }

/* --- NEW iKIDS 5 XS SECTION --- */
.new-model-section {
    background-color: #fff;
    padding: 80px 0;
}
.highlight-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--secondary-color);
}

/* --- ENGRAVING / CUSTOMIZATION --- */
.custom-section {
    background: var(--gradient-main);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-section { text-align: center; padding-top: 120px; }
    .hero-img { margin-top: 3rem; }
    .floating-badge { display: none; } /* On simplifie sur mobile */
    .fb-mobile { display: block !important; position: static; margin: 10px auto; width: fit-content; }
}


.custom-experience-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdfbf7 0%, #fff0f5 100%); /* Fond très léger rosé/crème */
    overflow: hidden;
    position: relative;
}

/* --- Côté Vidéo --- */
.video-wrapper {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-frame {
    border-radius: 40px; /* Coins très arrondis */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(106, 17, 203, 0.2);
    transform: rotate(-3deg); /* Légère rotation fun */
    transition: transform 0.5s ease;
    background: white;
    padding: 10px; /* Bordure blanche autour de la vidéo */
    max-width: 450px;
    width: 100%;
}

.video-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.video-element {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

/* Formes d'arrière-plan (Blobs animés) */
.blob-bg {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
    animation: blob-float 10s infinite ease-in-out;
}
.blob-1 {
    top: -10%;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff9a9e 0%, #fecfef 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
.blob-2 {
    bottom: -10%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #a18cd1 0%, #fbc2eb 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: 2s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* --- Côté Texte & Simulateur --- */
.custom-content {
    padding-left: 2rem;
    z-index: 10;
    position: relative;
}

.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ffa500, #ffff00, #008000, #0000ff, #4b0082, #ee82ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Le Simulateur */
.preview-box {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 30px;
    border: 2px dashed #e0e0e0;
    text-align: center;
}

.preview-display {
    font-family: 'Fredoka', sans-serif; /* Police enfantine */
    font-size: 2.5rem;
    color: #888;
    margin-bottom: 20px;
    min-height: 50px;
    text-transform: capitalize;
    transition: color 0.3s;
}
.preview-display.active {
    color: var(--primary-color); /* Devient violet quand on tape */
    text-shadow: 2px 2px 0px #eee;
}

.form-floating-custom input {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
    text-align: center;
    transition: border-color 0.3s;
}
.form-floating-custom input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(106, 17, 203, 0.1);
}

.badge-premium {
    background: #2c3e50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

@media (max-width: 991px) {
    .custom-content { padding-left: 0; margin-top: 40px; text-align: center; }
    .video-frame { transform: rotate(0deg); margin: 0 auto; }
    .blob-1, .blob-2 { width: 150px; height: 150px; }
}



.showcase-section {
    background-color: #fdfbf7;
    padding: 80px 0 100px;
    position: relative;
}

/* Titre avec soulignement fun */
.section-headline {
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    margin: 2.5rem 0;
}
.section-headline::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--gradient-main); /* Le dégradé violet/bleu */
    border-radius: 10px;
    margin: 5px auto 0;
}

/* --- CARTE PRODUIT AVANCÉE --- */
.premium-card {
    background: white;
    border-radius: 30px;
    padding: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(37, 117, 252, 0.15);
    border-color: rgba(37, 117, 252, 0.2);
}

/* Badge Promo / New */
.card-badge {
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.product-flags {
    padding: 1rem;
    gap: 10px;
}
.bg-gradient-new { background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 100%); color: #d63384; }
.bg-gradient-hot { background: linear-gradient(45deg, #f6d365 0%, #fda085 100%); color: #d35400; }
.bg-gradient-pack { background: linear-gradient(45deg, #84fab0 0%, #8fd3f4 100%); color: #00796b; }

/* Zone Image avec Spotlight */
.card-img-area {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Le cercle de lumière derrière la montre */
.card-spotlight {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.08) 0%, rgba(255,255,255,0) 70%);
    transition: all 0.4s ease;
}
.premium-card:hover .card-spotlight {
    transform: scale(1.2);
    background: radial-gradient(circle, rgba(106, 17, 203, 0.15) 0%, rgba(255,255,255,0) 70%);
}

.card-img-product {
    max-height: 200px;
    z-index: 2;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.premium-card:hover .card-img-product {
    transform: scale(1.08) translateY(-5px);
}

/* Informations Produit */
.card-info {
    text-align: center;
    margin-top: auto; /* Pousse vers le bas */
}

.card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    text-decoration: none;
    display: block;
}
.card-title:hover { color: var(--secondary-color); }

.card-rating {
    color: #ffc107;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Tech Pills (Les petits badges techniques) */
.tech-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}
.tp-item {
    background: #f4f6f9;
    color: #6c757d;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tp-item i { color: var(--secondary-color); }

/* Prix et Action */
.card-footer-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    margin: 0 -25px -25px; /* Pour coller aux bords */
    padding: 15px 25px;
    border-top: 1px solid #eee;
}

.price-block { text-align: left; }
.price-final { font-weight: 800; font-size: 1.3rem; color: var(--primary-color); line-height: 1; }
.price-old { font-size: 0.85rem; color: #999; text-decoration: line-through; }

.btn-card-action {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.premium-card:hover .btn-card-action {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    transform: rotate(90deg); /* Petit effet de rotation fun */
}

/* Bouton principal pour voir le produit */
.btn-card-view {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 10px;
}

.rich-text table>:not(caption)>*>*, .table>:not(caption)>*>* {
    background: transparent;
    padding: 12px 30px 12px 0;
    font-size: 14px;
}