/*Page d'ouverture*/

.intro{
	background-image: url(img/fond1.jpg);
}

.moi {
	width: 100%;
	padding: 100px 0px;
	background-color: #191919;
}
.main {
	width: 1130px;
	max-width: 95%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-around;
}
.moi img {
	height: auto;
	width: 430px;
	padding-right: 40px;
}
.moi-text {
	width: 550px;
	text-align: justify;
}
.moi-text h2 {
	color: white;
	font-size: 60px;
	text-transform: capitalize;
	margin-bottom: 20px;
}
.moi-text h5 {
	color: white;
	letter-spacing: 2px;
	font-size: 22px;
	margin-bottom: 25px;
	text-transform: capitalize;
}
.moi-text p {
	color: var(--pastel);
	letter-spacing: 1px;
	line-height: 28px;
	font-size: 18px;
	margin-bottom: 45px;
}
button {
	background-color: var(--secondaire);
	color: white;
	text-decoration: none;
	border: 2px solid transparent;
	font-weight: bold;
	padding: 13px 30px;
	border-radius: 30px;
	transition: .4s;
}
button:hover {
	background-color: transparent;
	border: 2px solid var(--secondaire);
	cursor: pointer;
}

/*Accès aux pages*/

.service{
	background: #101010;
	width: 100%;
	padding: 60px 0px;
}
.box{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
}
.card{
	height: 50%;
	width: 335px;
	padding: 10px 15px;
	background: #191919;
	border-radius: 20px;
	margin: 15px;
	position: relative;
	overflow: hidden;
	text-align: center;
	min-height: 350px;
}
.card i{
	font-size: 50px;
	display: block;
	text-align: center;
	margin: 25px 0px;
	color: var(--tertiaire);

}
h5{
	color: white;
	font-size: 23px;
	margin-bottom: 15px;
}
.pra p{
	color: var(--pastel);
	font-size: 16px;
	line-height: 27px;
	margin-bottom: 25px;
}
.card .button{
	background-color:var(--secondaire);
	color: black;
	text-decoration: none;
	border: 2px solid transparent;
	font-weight: bold;
	padding: 8px 15px;
	border-radius: 30px;
	transition: .4s; 
	align-items:bottom
}
.card .button:hover{
	background-color: transparent;
	border: 2px solid var(--secondaire);
	cursor: pointer;
	color: white;
}

/* Configuration pour les petits écrans */
@media (max-width: 767px) {

	/*A propos de moi*/

    .moi {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .moi img {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .moi-text {
        width: 100%;
        padding: 0 20px;
        text-align: justify;
    }

    .moi-text h2 {
        font-size: 40px;
    }

    .moi-text h5 {
        font-size: 18px;
    }

    .moi-text p {
        font-size: 16px;
        line-height: 24px;
    }

    button {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }

	/*Cartes à la fin*/

	.box {
        flex-direction: column; /* Aligne les cartes en colonne */
        justify-content: center;
        align-items: center;
    }
}

/* Configuration pour les grands écrans */

@media (min-width: 768px) {

	/*A propos de moi*/

    .moi img {
        width: 430px;
        padding-right: 40px;
    }

    .moi-text {
        width: 550px;
    }

    .moi-text h2 {
        font-size: 60px;
    }

    .moi-text h5 {
        font-size: 22px;
    }

    .moi-text p {
        font-size: 18px;
        line-height: 28px;
    }

    button {
        width: auto;
        padding: 13px 30px;
        font-size: 18px;
    }

	/*Cartes à la fin de la page*/

	.box {
        flex-direction: row; /* Aligne les cartes en ligne */
        justify-content: center;
        align-items: center;
    }

    .card {
        min-height: 350px; /* Vous pouvez ajuster la hauteur si besoin */
    }
}
