:root {
    --bg-color: #eaddff;
    --card-bg: #ffffff;
    --text-color: #6750a4;
    --accent: #9073d4;
    --border-radius: 24px;
    --gap: 20px;
}

html {
    background-color: #eaddff;
}

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

.highlight {
    font-weight: 800;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   ALIGNEMENT ET RESPONSIVE DU LOGO
   ========================================================================= */

.bento-header {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 25px !important;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
}

.brand-icon {
    height: 38px;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    flex-shrink: 0;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .brand-icon {
        height: 32px;
    }
}

.bento-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

/* ==========================================================================
   BLOC 1 - HERO (SMARTPHONE & PC)
   ========================================================================= */

.item-1 {
    background-color: #6750a4 !important;
    color: #ffffff;
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    position: relative;
    overflow: hidden !important;
    padding: 1.5rem 0 0 1.5rem !important;
    height: auto; 
    min-height: 400px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 58% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.item-1 h2 { 
    color: #ffffff !important;
    font-size: 2.25rem; 
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0;
    letter-spacing: -0.025em;
}

.item-1 .tagline {
    font-size: 1.5rem; 
    font-weight: 500;
    color: #eaddff;
    margin-top: 1rem;
    margin-bottom: 0;
    letter-spacing: -0.025em;
}

.item-1 .desc {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    color: #eaddff;
    margin-top: 1rem;
    margin-bottom: 0;
    max-width: 550px;
    letter-spacing: -0.025em;
}

.item-1 .cta-container {
    margin-top: 1.5rem;
    position: relative;
    z-index: 3;
}

.btn-hero {
    background-color: #ffffff;
    color: #6750a4;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    width: max-content;
}

.btn-hero:hover {
    background-color: #eaddff;
}

.btn-hero:active {
    transform: scale(0.95);
}

.hero-image-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    background: #000000;
    border: 2px solid #1c1c1e;
    border-radius: 24px;
    height: 385px !important;
    width: 180px !important;
    margin: 0 !important;
    transform: translateY(0px) rotate(4deg) translateZ(0) !important;
    transform-origin: bottom center;
    box-shadow: 15px -5px 35px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
    z-index: 1;
    flex-shrink: 0;
}

.hero-image-wrapper::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #000000;
    border-radius: 50%;
    z-index: 10;
}

.hero-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -10px;
    border-radius: 0;
}

/* ==========================================================================
   BLOC 2 - DESIGN (DEUX COLONNES CONFIGURATION)
   ========================================================================= */

.item-2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem;
}

.item-2 h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
    letter-spacing: -0.025em;
}

.item-2 .tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: #000000;
    margin-top: 0.5rem;
    margin-bottom: 0;
    letter-spacing: -0.025em;
}

.config-list {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr; /* Vertical par défaut sur mobile */
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
}

@media (min-width: 1024px) {
    .config-list {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes strictes sur PC */
        gap: 0.75rem 1.5rem;
    }
}

.config-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.config-col ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-col .icon {
    font-size: 1rem;
    color: #9073d4;
}

/* ==========================================================================
   STRUCTURE GRILLE BENTO & COMPOSANTS
   ========================================================================== */

.bento-grid {
    display: grid !important;
    gap: 20px !important;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    animation: bento-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.bento-item:hover {
    transform: translateY(-4px);
}

.bento-item h2 {
    color: #6750a4;
    margin-bottom: 0.5rem;
}

.item-3, .item-4 {
    background-color: #6750a4;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.item-3 {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.item-3 h3, .item-4 .card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #ffffff;
    white-space: nowrap;
}

.item-3 h3 span, .item-4 .card-title span {
    color: #ffffff;
}

.item-3 p, .item-4 .desc-clichés {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.025em;
    color: #eaddff;
    margin-top: 0;
}

.item-3 .bento-control {
    margin-top: 1rem;
    transform: none;
}

.bento-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6750a4;
    border-radius: 9999px;
    padding: 0.4rem 0.8rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    align-self: center;
    margin-top: auto;
    transform: translateY(10px);
    width: 170px;
    height: 42px;
    gap: 0.5rem;
}

.timer-val {
    color: rgba(234, 221, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 0.4rem;
    min-width: 30px;
    text-align: center;
}

.timer-val.active {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    top: -1px;
}

.item-4 .bento-control {
    gap: 1.5rem;
}

.layout-icon {
    transition: transform 0.3s ease;
}

.layout-icon.primary {
    width: 18px;
    height: 26px;
    color: #ffffff;
    transform: scale(1.1);
}

.layout-icon.secondary {
    width: 16px;
    height: 24px;
    color: rgba(234, 221, 255, 0.8);
}

.item-4 .footer-tip {
    background-color: #9073d4;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #eaddff;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.item-4 .tip-icon {
    font-size: 28px !important;
    color: #ffffff;
    flex-shrink: 0;
}

.item-4 .tip-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.item-4 .footer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.item-4 .tip-label {
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.item-4 .tip-emoji {
    font-size: 0.95rem;
}

.item-4 .tip-text {
    font-size: 0.8rem;
    color: #ffffff;
    line-height: 1.4;
    font-weight: 500;
}

.item-5 {
    background-color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid rgba(103, 80, 164, 0.1);
    gap: 0.75rem;
}

.item-5 .printer-icon-box {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-5 .printer-svg {
    width: 56px;
    height: 56px;
}

.item-5 .printer-text p {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
}

.item-6 {
    background-color: #ffffff;
    color: var(--text-color);
    border: 1px solid rgba(103, 80, 164, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.item-6 .card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.bouton-paysage-conteneur {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    margin: auto 0;
}

.colonne-action {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, opacity 0.2s;
    font-family: inherit;
}

.colonne-action:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.colonne-action .icone {
    font-size: 24px !important;
    color: var(--text-color);
}

.texte-conteneur {
    display: flex;
    flex-direction: column;
}

.texte-principal {
    color: #000000;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.texte-secondaire {
    color: #757575;
    font-size: 0.7rem;
    font-weight: 500;
}

.separateur {
    width: 1px;
    height: 32px;
    background: rgba(103, 80, 164, 0.1);
}

.item-7, .item-8 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #ffffff;
    color: var(--text-color);
    border: 1px solid rgba(103, 80, 164, 0.1);
    justify-content: center;
    padding: 1rem;
}

.item-7 {
    align-items: flex-start;
    text-align: left;
}

.item-7 .header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.item-7 .card-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--text-color);
    margin-bottom: 0;
}

.item-7 .desc {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.025em;
    color: var(--text-color);
    opacity: 0.8;
}

.filter-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6750a4;
    border-radius: 9999px;
    padding: 0.6rem 1.5rem;
    gap: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.filter-val {
    color: rgba(234, 221, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}

.filter-val.active {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.item-8 {
    align-items: flex-start;
    text-align: left;
}

.item-8 .item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.item-8 .header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    color: var(--text-color);
}

.item-8 .card-title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--text-color);
    margin-bottom: 0;
}

.item-8 .desc {
    font-size: 0.875rem;
    color: var(--accent);
    line-height: 1.6;
    margin-top: 0.75rem;
    font-weight: 500;
}

/* ==========================================================================
   BLOC 9 - MODE ENFANT
   ========================================================================== */

.item-9 {
    background-color: #ffffff;
    color: var(--text-color);
    border: 1px solid rgba(103, 80, 164, 0.1);
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0 0 1.5rem !important;
}

.emoji-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
}

.emoji-background span {
    position: absolute;
    user-select: none;
    translate: -50% -50%;
    animation: 
        emojiFloat var(--float-dur) ease-in-out var(--anim-delay) infinite alternate,
        emojiSwing var(--swing-dur) ease-in-out var(--anim-delay) infinite alternate;
}

@keyframes emojiFloat {
    from { translate: -50% calc(-50% - 3px); }
    to { translate: -50% calc(-50% + 3px); }
}

@keyframes emojiSwing {
    from { rotate: calc(var(--init-rot) - 5deg); }
    to { rotate: calc(var(--init-rot) + 5deg); }
}

.kid-content {
    position: relative;
    z-index: 1;
    width: 58% !important;
    margin-bottom: 1.5rem;
}

.item-9 h2 {
    color: var(--text-color);
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.item-9 .header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.item-9 .header-row .emoji-icon {
    font-size: 2.5rem;
}

.item-9 .desc {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    color: #000000;
    margin-top: 0.75rem;
    margin-bottom: 0;
    max-width: 550px;
    letter-spacing: -0.025em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.item-9 ul {
    list-style: none;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.item-9 ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.item-9 ul li span {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 800;
}

.item-9 ul li strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text-color);
}

.item-9 .feature-list div { color: #000000; font-weight: 400; }
.item-9 .feature-list strong { color: #000000; font-weight: 800; }
.item-9 .highlight { color: #000000; }

.kid-image-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    background: #000000;
    border: 2px solid #1c1c1e;
    border-radius: 24px;
    height: 385px !important;
    width: 180px !important;
    margin: 0 !important;
    transform: translateY(0px) rotate(4deg) translateZ(0) !important;
    transform-origin: bottom center;
    box-shadow: 15px -5px 35px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
    z-index: 1;
    flex-shrink: 0;
}

.kid-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -2px; 
    border-radius: 0;
}

/* ==========================================================================
   BLOC 10 - CONTACT
   ========================================================================== */

.item-10 {
    background-color: #2F3132 !important;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
}

.item-10 .card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.025em;
}

.item-10 .desc {
    color: #b0b3b8 !important;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 0;
}

.item-10 .contact-link {
    display: inline-block;
    margin-top: 1rem;
    color: #c5b3e6 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.875rem;
}

.item-10 .thanks-sep {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    margin: 1.5rem 0 1rem 0;
}

.item-10 .thanks-title {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b0b3b8 !important;
}

.item-10 .thanks-text {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    color: #b0b3b8 !important;
}

.item-10 .thanks-text strong {
    color: #ffffff !important;
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE / MEDIA QUERIES
   ========================================================================= */

@media (min-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-9 { grid-column: span 2; }
}

@media (max-width: 768px) {
    .bouton-paysage-conteneur {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .separateur {
        display: none;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px;
    }
    .item-1 { grid-column: span 2; grid-row: span 2; }
    .item-2 { grid-column: span 2; grid-row: span 1; }
    .item-3 { grid-column: span 1; grid-row: span 1; }
    .item-4 { grid-column: span 1; grid-row: span 2; }
    .item-5 { grid-column: span 1; grid-row: span 1; }
    .item-6 { grid-column: span 2; grid-row: span 1; }
    .item-7 { grid-column: 1; grid-row: 4; }
    .item-8 { grid-column: 1; grid-row: 5; }
    .item-9 { grid-column: 2 / span 2; grid-row: 4 / span 2; }
    .item-10 { grid-column: 4; grid-row: 4 / span 2; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes bento-appear {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.item-1 { animation-delay: 0.1s; }
.item-2 { animation-delay: 0.2s; }
.item-3 { animation-delay: 0.3s; }
.item-4 { animation-delay: 0.4s; }
.item-5 { animation-delay: 0.5s; }
.item-6 { animation-delay: 0.6s; }
.item-7 { animation-delay: 0.7s; }
.item-8 { animation-delay: 0.8s; }
.item-9 { animation-delay: 0.9s; }
.item-10 { animation-delay: 1s; }