.compare-items, .compare-table {
	max-width: 1140px;
	margin: auto;
}
.compare-items {
    display: flex;
	gap: 3.5rem;
    margin-block: 2rem;
	padding-left: 260px;
	box-sizing: border-box;
}

/* ZONE DE SELECTION */
.compare-items .items-container {
	width: 27%;
}

.compare-items form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    padding-block: 20px;
    gap: 0.5rem;
    position: relative;
}
.compare-items form input {
    padding: 10px;
    font-size: 14px;
    font-family: Roboto;
    border: none;
    width: 100%;
}
.compare-items form button {
    padding: 10px 15px;
    font-size: 20px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.compare-items form .phoneList {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1;
    width: calc(100% - 58px);
    top: 60px;
    background-color: white;
}

.compare-items form .phoneList li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.compare-items form .phoneList li:hover {
    background-color: #f2f2f2;
}
.compare-items .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.compare-items .item h2{
	height: 90px;
	text-align: center!important;
}

.compare-items .item .illustration{
    width: 180px;
    height: 250px;
    margin-block: 2rem;
    border-radius: 0.3rem;
}

/* TABLEAU COMPARATIF */
table {
	background-color: white;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	border-radius: 10px;
	border-color: inherit;
	border-color: rgba(0,0,0,.1);
	width: 100%;
	margin: 0 0 1.5rem;
	border-collapse: separate;
	border-spacing: 0;
	border-width: 1px;
	border-style: solid;
	border-bottom: none;
}
table td {
	padding: 0.75rem;
	border: none;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-color: inherit;
	border-collapse: separate;
	border-spacing: 0;
	border-color: rgba(0,0,0,.1);
}
table td .phone-name{
	font-style: italic;
	font-weight: 600;
	display: none;
	padding-bottom: 0.5rem;
}

.column-1 {
	font-size: 1.25rem;
	color: rgb(206, 16, 16);
	font-weight: bold;
	letter-spacing: -1px;
	width: 9%;
	display: table-cell;
	box-sizing: border-box;
}
.column-2 {
	font-size: 1rem;
	font-weight: bold;
	color: rgb(80, 80, 80);
	width: 10%;
	display: table-cell;
	box-sizing: border-box;
}
.column-3, .column-4, .column-5 {
	font-size: 1rem;
	color: rgb(80, 80, 80);
	width: 27%;
	display: table-cell;
	box-sizing: border-box;
}

/* MEDIA QUERIES */

@media (max-width: 1140px) { 
	.compare-items .item .illustration button{
		padding: 10px;
	}
}
@media (max-width: 768px) { 

	.details {
		width: 100%;
		margin: auto;
	}
	.compare-items form {
		flex-direction: column;
	}
	.compare-items {
		padding: 0;
		justify-content: center;
		gap: 2rem;
	}
	.compare-items form .phoneList {
		width: 100%;
	}
	.compare-items .items-container {
		width: 40%;
	}
	.compare-items .items-container:last-of-type {
		display: none;
	}
	.compare-items .item h2{
		height: 45px;
	}
	.compare-items .item .illustration{
		width: 55%;
		height: 196px;
	}
	table {
		background-color: white;
		box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
		border-radius: 10px;
		border-color: inherit;
		border-color: rgba(0,0,0,.1);
		width: 95%;
		margin: auto;
		border-collapse: separate;
		border-spacing: 0;
		border-width: 1px;
		border-style: solid;
		border-bottom: none;
		margin-bottom: 10px;
	}
	table td .phone-name{
		display: block;
	}
	.column-5 {
		display: none;
	}
	.main-container {
		flex-direction: column;
	}
	.article-illustration {
		width: 100%;
	}
	.infos-2 {
		gap: unset;
		text-align: center;
		justify-content: space-around;
	}
	.first-block, .second-and-third {
		gap: 2rem;
	}
	.infos-1 .item p{
		font-size: 20px;
	}
	.infos-2 .item {
		flex: unset;
		width: 40%;
	}
	.second-block .item, .third-block .item {
		border-left: unset;
		padding: 0.5rem;
	}
	.third-block {
		order: -1;
	}
}

@media (max-width: 500px) { 

	.compare-items .item .illustration{
		width: 90%;
	}
	.infos-1 .item p{
		font-size: 16px;
	}
	.important {
		font-size: 1.25rem;
	}
	.important-2 {
		font-size: 1.25rem;
	}
	.column-1, .column-2, .column-3, .column-4 {
		display: block;
		width: 100%;
	}
	.hidden {
		display: none;
	}

	.table, tbody,th  {
		display: block;
	}

	tr {
		display: flex;
		flex-direction: column;
	}


}

