/* ========================================
   ENGIM - BENTO SECTION (Style Magazine)
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
}

/* ========================================
   SECTION CONTAINER
   ======================================== */
.bento-section {
    position: relative;
    width: 100%;
    padding: 0;
    background: #ffffff;
}

/* ========================================
   GRILLE BENTO - CSS GRID
   ======================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 280px);
    gap: 6px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 30px;
    border-radius: 12px;
    overflow: hidden;
}

/* ========================================
   TUILE DE BASE
   ======================================== */
.bento-tile {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
}

.bento-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-tile:hover img {
    transform: scale(1.05);
}

/* ========================================
   CONTENU DE LA TUILE (Texte sur photo)
   ======================================== */
.bento-tile__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px;
    pointer-events: none;
}

/* Ville en haut à gauche */
.bento-tile__content--left .bento-tile__city {
    align-self: flex-start;
    text-align: left;
}

/* Ville en haut à droite */
.bento-tile__content--right .bento-tile__city {
    align-self: flex-end;
    text-align: right;
}

/* Ville en haut à gauche (nouvelle classe) */
.bento-tile__content--city-left .bento-tile__city {
    align-self: flex-start;
    text-align: left;
}

/* Ville en haut à droite (nouvelle classe) */
.bento-tile__content--city-right .bento-tile__city {
    align-self: flex-end;
    text-align: right;
}

/* ========================================
   TYPOGRAPHIE - VILLE (ÉNORME)
   ======================================== */
.bento-tile__city {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.3),
        4px 4px 8px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.bento-tile__city--small {
    font-size: clamp(24px, 3.5vw, 40px);
}

.bento-tile__city--medium {
    font-size: clamp(20px, 2.5vw, 32px);
}

/* ========================================
   BLOC INFO (Transaction + Type + Surface)
   ======================================== */
.bento-tile__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bento-tile__info--right {
    align-items: flex-end;
    text-align: right;
}

.bento-tile__info--left {
    align-items: flex-start;
    text-align: left;
}

/* Infos décalées vers la gauche (pour éviter le carré jaune) */
.bento-tile__info--right-offset {
    align-items: flex-end;
    text-align: right;
    margin-right: 260px;
}

/* Ligne type + surface */
.bento-tile__details {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* Transaction (A LOUER / A VENDRE) */
.bento-tile__transaction {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.3),
        3px 3px 6px rgba(0, 0, 0, 0.4);
}

/* Type de bien */
.bento-tile__type {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(13px, 1.5vw, 16px);
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Surface */
.bento-tile__surface {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.4),
        2px 2px 6px rgba(0, 0, 0, 0.3);
}

/* ========================================
   VARIANTES DE TAILLES
   ======================================== */

/* Grande tuile (2 cols x 2 rows) */
.bento-tile--large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tile--large .bento-tile__city {
    font-size: clamp(40px, 6vw, 72px);
}

.bento-tile--large .bento-tile__transaction {
    font-size: clamp(24px, 3.5vw, 40px);
}

.bento-tile--large .bento-tile__surface {
    font-size: clamp(20px, 2.5vw, 28px);
}

/* Tuile haute (1 col x 2 rows) */
.bento-tile--tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-tile--tall .bento-tile__city {
    font-size: clamp(28px, 4vw, 48px);
}

/* Tuile large (2 cols x 1 row) */
.bento-tile--wide {
    grid-column: span 2;
    grid-row: span 1;
}

/* Tuile moyenne (1 col x 1 row) */
.bento-tile--medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-tile--medium .bento-tile__city {
    font-size: clamp(24px, 3vw, 36px);
}

.bento-tile--medium .bento-tile__transaction {
    font-size: clamp(16px, 2vw, 24px);
}

.bento-tile--medium .bento-tile__surface {
    font-size: clamp(14px, 1.8vw, 20px);
}

/* Petite tuile */
.bento-tile--small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-tile--small .bento-tile__city {
    font-size: clamp(20px, 2.5vw, 32px);
}

.bento-tile--small .bento-tile__transaction {
    font-size: clamp(14px, 1.8vw, 22px);
}

.bento-tile--small .bento-tile__type {
    font-size: clamp(11px, 1.2vw, 14px);
}

.bento-tile--small .bento-tile__surface {
    font-size: clamp(13px, 1.5vw, 18px);
}

.bento-tile--small .bento-tile__content {
    padding: 14px 16px;
}

/* ========================================
   CTA JAUNE FLOTTANT (Notre Sélection)
   ======================================== */
.bento-cta-floating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background: #ffc700;
    border: 10px solid #ffffff;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    width: 470px;
    height: 330px;
}

.bento-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    width: 100%;
    height: 100%;
    padding: 20px 24px 24px 20px;
}

.bento-cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    width: 100%;
}

.bento-cta__line1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0 0 10px 0;
}

.bento-cta__line2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 50px;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0 0 10px 0;
}

.bento-cta__line3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 98px;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 0.85;
    margin: 0 0 16px 0;
}

.bento-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: #1a4d7c;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: auto;
}

.bento-cta__btn:hover {
    background: #0f2744;
}

.bento-cta__btn svg {
    transition: transform 0.3s ease;
    stroke: #ffffff;
}

.bento-cta__btn:hover svg {
    transform: translateX(4px);
}

/* ========================================
   HOVER EFFECTS
   ======================================== */
.bento-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-tile:hover::before {
    opacity: 0.7;
}

.bento-tile__content {
    z-index: 2;
}

/* ========================================
   RESPONSIVE - TABLETTE (1024px)
   ======================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 240px;
        gap: 5px;
        padding: 16px 24px;
    }
    
    .bento-tile--large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-tile--wide {
        grid-column: span 2;
    }
    
    .bento-tile__city {
        font-size: clamp(24px, 4vw, 40px);
    }
    
    .bento-tile--large .bento-tile__city {
        font-size: clamp(32px, 5vw, 56px);
    }
    
    .bento-cta-floating {
        padding: 24px 32px;
    }
}

/* ========================================
   RESPONSIVE - TABLETTE PETITE (768px)
   ======================================== */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 4px;
        padding: 12px 16px;
    }
    
    .bento-tile--large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-tile--tall {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .bento-tile--wide {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-tile__content {
        padding: 14px 16px;
    }
    
    .bento-tile__city {
        font-size: clamp(20px, 5vw, 32px);
    }
    
    .bento-tile--large .bento-tile__city {
        font-size: clamp(28px, 7vw, 48px);
    }
    
    .bento-tile__transaction {
        font-size: clamp(16px, 4vw, 24px);
    }
    
    .bento-tile__surface {
        font-size: clamp(14px, 3vw, 18px);
    }
    
    .bento-tile__type {
        font-size: clamp(11px, 2.5vw, 14px);
    }
    
    /* CTA flottant */
    .bento-cta-floating {
        padding: 20px 28px;
        border-width: 5px;
    }
    
    .bento-cta__line1 {
        font-size: 11px;
    }
    
    .bento-cta__line2 {
        font-size: 16px;
    }
    
    .bento-cta__line3 {
        font-size: 24px;
    }
    
    .bento-cta__btn {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (430px)
   ======================================== */
@media (max-width: 430px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 3px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .bento-tile {
        border-radius: 6px;
    }
    
    .bento-tile--large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-tile--tall {
        grid-row: span 2;
    }
    
    .bento-tile--wide {
        grid-column: span 2;
    }
    
    .bento-tile__content {
        padding: 10px 12px;
    }
    
    .bento-tile__city {
        font-size: clamp(16px, 5vw, 24px);
    }
    
    .bento-tile--large .bento-tile__city {
        font-size: clamp(22px, 8vw, 36px);
    }
    
    .bento-tile__transaction {
        font-size: clamp(12px, 4vw, 18px);
    }
    
    .bento-tile__type {
        font-size: 10px;
    }
    
    .bento-tile__surface {
        font-size: clamp(11px, 3vw, 14px);
    }
    
    /* CTA flottant mobile */
    .bento-cta-floating {
        padding: 16px 20px;
        border-width: 4px;
    }
    
    .bento-cta__text {
        margin-bottom: 12px;
    }
    
    .bento-cta__line1 {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    .bento-cta__line2 {
        font-size: 13px;
    }
    
    .bento-cta__line3 {
        font-size: 20px;
    }
    
    .bento-cta__btn {
        padding: 6px 12px;
        font-size: 10px;
        gap: 6px;
    }
    
    .bento-cta__btn svg {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   ANIMATIONS AU CHARGEMENT (optionnel)
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-tile {
    animation: fadeInUp 0.6s ease-out forwards;
}

.bento-tile:nth-child(1) { animation-delay: 0s; }
.bento-tile:nth-child(2) { animation-delay: 0.05s; }
.bento-tile:nth-child(3) { animation-delay: 0.1s; }
.bento-tile:nth-child(4) { animation-delay: 0.15s; }
.bento-tile:nth-child(5) { animation-delay: 0.2s; }
.bento-tile:nth-child(6) { animation-delay: 0.25s; }
.bento-tile:nth-child(7) { animation-delay: 0.3s; }
.bento-tile:nth-child(8) { animation-delay: 0.35s; }
.bento-tile:nth-child(9) { animation-delay: 0.4s; }
.bento-tile:nth-child(10) { animation-delay: 0.45s; }

/* ========================================
   CORRECTIONS RESPONSIVE - Audit Janvier 2026
   Mode simplifié (sans carte jaune) jusqu'à 1025px
   ======================================== */

/* ========================================
   TITRE (masqué sur grand desktop uniquement)
   ======================================== */
.bento-section__title-mobile {
    display: none;
}

/* ========================================
   TABLETTE & MOBILE (jusqu'à 1025px)
   Masquer la carte jaune, afficher titre + CTA
   ======================================== */
@media (max-width: 1025px) {
    
    /* === TITRE VISIBLE === */
    .bento-section__title-mobile {
        display: block;
        text-align: center;
        padding: 24px 20px 16px;
        margin: 0;
        font-family: 'Source Serif 4', Georgia, serif;
        font-size: 1.6rem;
        font-weight: 600;
        color: #1e293b;
    }
    
    /* === SECTION COMPACTE === */
    .bento-section {
        padding-bottom: 0;
    }
    
    /* === MASQUER CTA FLOTTANT JAUNE === */
    .bento-cta-floating {
        display: none !important;
    }
    
    /* === GRILLE TABLETTE 8 TUILES (4 colonnes) === */
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 220px);
        gap: 5px;
        padding: 0 16px 16px;
    }
    
    /* Reset des positions inline pour tablette */
    .bento-tile {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    /* Grande tuile en haut à gauche */
    .bento-tile:nth-child(1) {
        grid-column: 1 / 3 !important;
        grid-row: 1 / 3 !important;
    }
    
    /* Tuiles 2-4 à droite */
    .bento-tile:nth-child(2) {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }
    
    .bento-tile:nth-child(3) {
        grid-column: 4 !important;
        grid-row: 1 !important;
    }
    
    .bento-tile:nth-child(4) {
        grid-column: 3 / 5 !important;
        grid-row: 2 !important;
    }
    
    /* Tuiles 5-8 en bas */
    .bento-tile:nth-child(5) {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    
    .bento-tile:nth-child(6) {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }
    
    .bento-tile:nth-child(7) {
        grid-column: 3 !important;
        grid-row: 3 !important;
    }
    
    .bento-tile:nth-child(8) {
        grid-column: 4 !important;
        grid-row: 3 !important;
    }
}

/* ========================================
   PETIT TABLETTE / GRAND MOBILE (481px - 768px)
   Grille 2x4 tuiles
   ======================================== */
@media (max-width: 768px) {
    .bento-section__title-mobile {
        font-size: 1.5rem;
        padding: 20px 16px 14px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 140px 140px 140px;
        gap: 5px;
        padding: 0 12px 12px;
    }
    
    /* Grande tuile en haut */
    .bento-tile:nth-child(1) {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }
    
    /* Grille 2x3 pour les autres */
    .bento-tile:nth-child(2) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    .bento-tile:nth-child(3) {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
    
    .bento-tile:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    
    .bento-tile:nth-child(5) {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }
    
    .bento-tile:nth-child(6) {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }
    
    .bento-tile:nth-child(7) {
        grid-column: 2 !important;
        grid-row: 4 !important;
    }
    
    /* Masquer la 8ème tuile sur petit écran */
    .bento-tile:nth-child(8) {
        display: none;
    }
}

/* ========================================
   SMARTPHONE (480px et moins)
   Grille 5 tuiles compacte
   ======================================== */
@media (max-width: 480px) {
    
    .bento-section__title-mobile {
        font-size: 1.4rem;
        padding: 20px 16px 12px;
    }
    
    /* === GRILLE MOBILE 5 TUILES === */
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 115px 115px;
        gap: 5px;
        padding: 0 12px 12px;
    }
    
    /* Première tuile : toute la largeur */
    .bento-tile:nth-child(1) {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }
    
    /* Tuiles 2-5 : grille 2×2 */
    .bento-tile:nth-child(2) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    .bento-tile:nth-child(3) {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
    
    .bento-tile:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    
    .bento-tile:nth-child(5) {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }
    
    /* Masquer tuiles 6-8 */
    .bento-tile:nth-child(6),
    .bento-tile:nth-child(7),
    .bento-tile:nth-child(8) {
        display: none;
    }
    
    /* === CONTENU PREMIÈRE TUILE === */
    .bento-tile:nth-child(1) .bento-tile__content {
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        box-sizing: border-box;
    }
    
    .bento-tile:nth-child(1) .bento-tile__city {
        font-size: 22px;
        line-height: 1.15;
        margin-bottom: 0;
    }
    
    .bento-tile:nth-child(1) .bento-tile__info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: auto;
    }
    
    .bento-tile:nth-child(1) .bento-tile__transaction {
        font-size: 15px;
        font-weight: 600;
    }
    
    .bento-tile:nth-child(1) .bento-tile__details {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .bento-tile:nth-child(1) .bento-tile__type {
        font-size: 11px;
    }
    
    .bento-tile:nth-child(1) .bento-tile__surface {
        font-size: 12px;
        font-weight: 600;
    }
    
    /* === CONTENU AUTRES TUILES === */
    .bento-tile__content {
        padding: 10px 12px;
    }
    
    .bento-tile__city {
        font-size: 15px;
        line-height: 1.2;
    }
    
    .bento-tile__transaction {
        font-size: 12px;
    }
    
    .bento-tile__type {
        font-size: 9px;
    }
    
    .bento-tile__surface {
        font-size: 11px;
    }
    
    /* === PERFORMANCE - Désactiver animations === */
    .bento-tile {
        animation: none;
    }
}

/* ========================================
   PETIT SMARTPHONE (374px et moins)
   ======================================== */
@media (max-width: 374px) {
    .bento-section__title-mobile {
        font-size: 1.25rem;
        padding: 16px 12px 10px;
    }
    
    .bento-grid {
        grid-template-rows: 140px 100px 100px;
        gap: 4px;
        padding: 0 8px 8px;
    }
    
    .bento-tile:nth-child(1) .bento-tile__city {
        font-size: 18px;
    }
    
    .bento-tile__city {
        font-size: 13px;
    }
    
    .bento-tile__transaction {
        font-size: 11px;
    }
    
    .bento-tile__content {
        padding: 8px 10px;
    }
    
    .bento-tile:nth-child(1) .bento-tile__content {
        padding: 10px 12px;
    }
}

/* ========================================
   CTA BOUTON (injecté par JS) - Visible jusqu'à 1025px
   ======================================== */
.bento-cta-mobile {
    display: none;
}

@media (max-width: 1025px) {
    .bento-cta-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 16px auto 24px;
        padding: 16px 32px;
        max-width: 320px;
        background: linear-gradient(135deg, #ffc700 0%, #ffb300 100%);
        color: #1a4d7c;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .bento-cta-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    .bento-cta-mobile:active {
        transform: scale(0.98);
    }
    
    .bento-cta-mobile svg {
        stroke: #1a4d7c;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .bento-cta-mobile {
        margin: 12px 12px 16px;
        padding: 16px 24px;
        max-width: none;
        font-size: 15px;
    }
}

@media (max-width: 374px) {
    .bento-cta-mobile {
        margin: 10px 8px 14px;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ========================================
   EFFET SPLIT-FLAP AÉROPORT (Authentique)
   ======================================== */

/* ========================================
   ANIMATION CROSSFADE
   ======================================== */

/* Transition douce sur les tuiles */
.bento-tile {
    transition: opacity 0.4s ease-out, transform 0.3s ease;
}

/* Phase fade out */
.bento-tile--fading {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Phase fade in */
.bento-tile--fading-in {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Image transition */
.bento-tile img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.4s ease-out;
}

/* Contenu transition */
.bento-tile__content {
    transition: opacity 0.3s ease-out;
}

.bento-tile--fading .bento-tile__content {
    opacity: 0;
}
