@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
	outline: none;
	font-family: 'Poppins', sans-serif;
}

html{
	font-size: 62.5%;
}

body{
	width: 100%;
	height: 100vh;
	overflow-x: hidden;
	background-color: teal;
	color: black;
}

header{
	margin-top: 20px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1rem 9%;
	background-color: transparent;
	filter: drop-shadow(10px);
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
}

.logo{
    font-size: clamp(2rem, 5vw, 4rem) ;      /* 6% de la largeur de l’écran */
    color: darkred;
    margin-left: 4rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
	transform: scale(1.1);
}

nav a{
	font-size: 2.3rem;
	color: whitesmoke;
	margin-left: 4rem;
	font-weight: 500;
	transition: 0.3s ease;
	border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
	color: darkred;
	border-bottom: 3px solid darkred;
}

select{
	#display: none;
	margin-left: 3vh;
	background-color: teal;
	color: darkred;
	font-size: 2vh;
	border: none;
	outline: none;
	font-weight: 550 !important;
}

select {
  border: none;
  outline: none;
  box-shadow: none;
}

.h1-container {
  display: flex;
  align-items: center;  /* vertically aligns them */
  gap: 10px;            /* optional space between h1s */
}

.h3-container {
  display: flex;
  align-items: center;  /* vertically aligns them */
  gap: 10px;            /* optional space between h1s */
}

@media(max-width: 995px){
	nav{
		position: absolute;
		top: 0%;
		right: 0;
		width: 40%;
		border-left: 3px solid darkred;
		border-bottom: 3px solid darkred;
		border-bottom-left-radius: 2rem;
		padding: 1rem solid;
		background-color: teal;
		border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
	}



	nav.active{
		display:block;
	}

	nav a{
		display: block;
		font-size: 2rem;
		margin: 3rem 0;
	}

	nav a:hover
	nav a.active{
		padding: 1rem;
		border-radius: 0.5rem;
		border-bottom: 0.5s;
	}
}

section{
	min-height: 100vh;
	padding: 5rem 9% 5rem;
}

.home{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8rem;
	background-color: teal;
}

.home .home-content h1{
	font-size: clamp(2rem, 5vw, 6rem);
	font-weight: 700;
	line-height: 1.3;
}

span{
	color: darkred;
}

.home-content h3{
    white-space: nowrap;       /* prevent wrapping */
    overflow: hidden;          /* hide overflow */
    text-overflow: ellipsis;   /* optional: add "..." if too long */
	font-size: clamp(2rem, 5vw, 4rem);
	margin-bottom: 1rem;
	font-weight: 700;
}

.home-content p{
	font-size: 1.4rem;
}

.home-img{
	border-radius: 50%;
}

.home-img img{
	position:relative;
	width: 32vw;
	border-radius: 50%;
	box-shadow: 0 0 25px solid darkred;
	cursor: pointer;
	transition: 0.2s linear;
}

home-img img:hover{
	font-size: 1.8rem;
	font-weight: 500;
}

.social-icons a{
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 5rem;
	height: 5rem;
	background-color: transparent;
	border: 0.2rem solid darkred;
	font-size: 3rem;
	border-radius: 50%;
	margin:3rem 1.5rem 3rem 0;
	transition: 0.3 ease;
	color: black;
}

.social-icons a:hover{
	color: teal;
	transform: scale(1.3)translateY(-5px);
	background-color: darkred;
	box-shadow: 0 0 25px darkred;
}

.btn{
	display: inline-flex;
	padding: 2rem 2.8rem;
	background-color: teal;
	border-radius: 4rem;
	font-size: 2rem;
	color: darkred;
	letter-spacing: 0.3rem;
	font-weight: 600;
	border:2px solid darkred;
	transition: 0.3s ease;
	cursor: pointer;
	margin: 1.5rem 1rem 0rem 0;

}

.btn:hover{
	transform: scale3d(1.3);
	background-color: darkred;
	color: teal;
	box-shadow: 0 0 25px darkred;
}

.typing-text{
	font-size: 34px;
	font-weight: 600;
	min-width: 280px;
}



.typing-text span::after{
	content: "";
	background-color: teal;
	position:relative;
	 width: calc(100% + 8px);
	 height: 100%;
	 border-left: 3px solid teal;
	 right: -8px;
	 animation: cursor 0.6s infinite;
}

@keyframes cursor{
	to{
		border-left: 3px solid darkred;
	}
}

@media (max-width: 1000px){
	.home{
		gap: 4rem;
	}
}

@media(max-width: 995px){
	.home{
		flex-direction: column;
		margin:5rem 4rem;
	}

	.home .home-content h3{
		font-size: 2.5rem;
		text-align: center;
	}

	.home-content h1{
		font-size: 5rem;
		text-align: center;
	}

	.home-img img{
		width: 70vh;
		margin-top: 4rem;
	}
}

.gallery-container {
	margin-top: 10rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 20px;
}

.category img {
    width: 100%;
    height: 200px;
    object-fit: cover;

    border-radius: 10px;
    transition: transform 0.3s;
}

.category img:hover {
    transform: scale(1.05);
}

.category h2 {
	font-size: 2rem;
    text-align: center;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
    color: darkred;
    text-decoration: none;
}

/* Category page */
.category-gallery{
    padding: 8rem 9%;
    text-align: center;
}

.category-gallery h1{
    font-size: 4rem;
    margin-bottom: 4rem;
}

/* Grid for images */
.category-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

/* Images keep their original ratio */
.category-container img{
    width: 100%;       /* fills the column */
    height: auto;      /* keeps original aspect ratio */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-container img:hover{
    transform: scale(1.03); /* subtle zoom */
    box-shadow: 0 0 20px darkred;
}

.category-container img{
    max-width: 100%;
    display: block;
}

/* Responsive */
@media(max-width: 900px){
    .category-container{
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media(max-width: 500px){
    .category-container{
        grid-template-columns: 1fr;
    }
}

.category-gallery h1{
	color: darkred;
}

.contact-container {
    background-color: transparent;
    border-radius: 0px;
    max-width: 600px;       /* largeur maximale du formulaire */
    width: 90%;             /* largeur relative à l’écran */
    padding: 40px;          /* padding intérieur */
    margin: 150px auto 50px auto; /* ↑ descend le container */    /* centré horizontalement et un peu d’espace en haut */
    box-sizing: border-box; /* inclut le padding dans la largeur */
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: darkred;
    font-size: 32px;
}

.form-group {
    margin-bottom: 22px;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid darkred;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f0f0f0;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    border-color: #00acc1;
    box-shadow: 0 0 5px darkred;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    display: block;
    margin: 20px auto 0 auto;
    background-color: darkred;
    color: whitesmoke;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background-color: #700000;
}

/* Optionnel : ajustement pour petits écrans */
@media (max-width: 480px) {
    .contact-container {
        padding: 20px;
    }

    .contact-container h2 {
        font-size: 24px;
    }
}

.label{
	font-size: 2rem;
}

.contact-container label {
    font-size: 2rem; /* bigger labels */
    color: darkred;    /* optional color */
}