/* Domoria Habitat — CSS spécifique à portfolio.html */

.container { padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.page-hero { padding: 160px 0 80px; min-height: 45vh; }
.cta-section { border-top: none; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.portfolio-item { position: relative; background: var(--color-bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.portfolio-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.portfolio-item-img-wrapper { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-darker); }
.portfolio-item-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-item:hover .portfolio-item-img-wrapper img { transform: scale(1.05); }

.portfolio-item-badge {
    position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
    color: var(--color-text-main); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.4rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 2;
}
.portfolio-item-badge svg { width: 16px; height: 16px; color: var(--color-accent-1); }

.ba-indicator {
    position: absolute; bottom: 1rem; right: 1rem; background: var(--color-accent-1); color: var(--color-white);
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; z-index: 2;
}

.ba-slider { --pos: 50%; touch-action: pan-y; }
.ba-slider .ba-img-after,
.ba-slider .ba-img-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-item:hover .ba-slider img { transform: none !important; }
.ba-slider .ba-img-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--color-white); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,0.3); z-index: 1; }
.ba-divider::after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; background: var(--color-white); border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--color-accent-1); font-weight: bold; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; z-index: 3; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; background: transparent; border: none; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 24px; height: 24px; background: transparent; border: none; cursor: ew-resize; }
.ba-range::-moz-range-track { background: transparent; border: none; }

.portfolio-item-info { padding: 1.5rem; text-align: left; background: var(--color-white); }
.portfolio-item-info h4 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--color-text-main); }
.portfolio-item-info span { color: var(--color-text-light); font-size: 0.95rem; display: block; margin-bottom: 1.5rem; }

.footer { background: var(--color-text-main); color: var(--color-white); padding: 5rem 0 2rem 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--color-accent-1); }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a { color: #AFA59E; transition: var(--transition); }
.footer-col ul a:hover { color: var(--color-accent-light); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: #AFA59E; font-size: 0.9rem; }
.footer-bottom a { margin: 0 10px; color: #AFA59E; }
.footer-bottom a:hover { color: var(--color-white); }

/* Footer crème uniforme + texte foncé lisible */
.footer{background:#FAF6EF;color:#3D2B1F;}
.footer-col ul a,.footer-bottom,.footer-bottom a,.footer-brand p{color:#6B5D4F;}
.footer-bottom{border-top-color:rgba(0,0,0,0.08);}
.footer-bottom a:hover{color:#C17A50;}
