
body{
background:#f5f7fb;
}

.rentman-container{
max-width:1450px;
margin:auto;
padding:50px 20px;
}

.rentman-hero{
background:white;
padding:40px;
border-radius:24px;
margin-bottom:40px;
box-shadow:0 15px 40px rgba(0,0,0,.06);
}

.rentman-hero h1{
font-size:42px;
margin-bottom:10px;
}

.rentman-hero p{
font-size:18px;
opacity:.7;
margin-bottom:30px;
}

.rentman-search{
display:flex;
gap:20px;
flex-wrap:wrap;
}

.rentman-search input,
.rentman-search button,
.rm-form input{
padding:16px;
border-radius:14px;
border:1px solid #ddd;
font-size:16px;
}

.rentman-search button,
#rm-send{
background:black;
color:white;
border:none;
cursor:pointer;
font-weight:bold;
}

.rentman-layout{
display:grid;
grid-template-columns:2fr 420px;
gap:30px;
align-items:start;
}

.rentman-products{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:25px;
}

.rentman-card{
background:white;
border-radius:22px;
overflow:hidden;
box-shadow:0 12px 30px rgba(0,0,0,.08);
transition:.2s ease;
}

.rentman-card:hover{
transform:translateY(-4px);
}

.rentman-card img{
width:100%;
height:240px;
object-fit:cover;
background:#f2f2f2;
}

.rentman-content{
padding:24px;
}

.rentman-meta{
display:flex;
justify-content:space-between;
margin:20px 0;
font-weight:bold;
}

.rm-qty-wrap{
display:flex;
flex-direction:column;
gap:10px;
}

.rm-qty{
padding:12px;
border-radius:12px;
border:1px solid #ddd;
}

.rm-summary-box{
position:sticky;
top:30px;
background:white;
padding:30px;
border-radius:24px;
box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.rm-summary-box h3{
margin-bottom:20px;
}

.rm-line{
display:flex;
justify-content:space-between;
padding:10px 0;
border-bottom:1px solid #eee;
}

.rm-total{
font-size:34px;
font-weight:bold;
margin:25px 0;
}

.rm-form{
display:flex;
flex-direction:column;
gap:14px;
}

#rm-send{
padding:18px;
border-radius:16px;
font-size:16px;
}

.rm-success{
background:#d4edda;
padding:16px;
border-radius:14px;
margin-top:20px;
}

.rm-error{
background:#ffd9d9;
padding:16px;
border-radius:14px;
margin-top:20px;
}

@media(max-width:980px){

.rentman-layout{
grid-template-columns:1fr;
}

.rm-summary-box{
position:relative;
top:0;
}
}


/* Affichage 4 produits par ligne */

.rentman-products{
grid-template-columns:repeat(4,minmax(0,1fr)) !important;
gap:20px !important;
}

.rentman-card img{
height:180px !important;
}

@media(max-width:1200px){

.rentman-products{
grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
}

@media(max-width:900px){

.rentman-products{
grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
}

@media(max-width:600px){

.rentman-products{
grid-template-columns:1fr !important;
}
}


.rentman-price{
font-size:22px;
font-weight:bold;
margin:16px 0 10px 0;
}


.rm-price-line{
font-size:16px;
margin-bottom:8px;
}

.rm-price-final{
font-size:32px;
font-weight:bold;
margin-top:14px;
}


/* afficher l'image entière sans changer la taille du cadre */

.rentman-card img{
object-fit:contain !important;
background:#ffffff !important;
padding:10px !important;
}


/* optimisation performance */

.rentman-card{
contain:content;
}

.rentman-card img{
image-rendering:auto;
will-change:auto;
}
