/*
Theme Name: TP1 Site
Author: Edouard Frelin
Version: 1.0
*/

/* STRUCTURE GLOBALE */
html, body{
height: 100%;
margin: 0;
scroll-behavior: smooth; /* un scroll fluide */
}

body{
display: flex;
flex-direction: column;
min-height: 100vh;
font-family:'Poppins', sans-serif;
background: linear-gradient(180deg, #0a0a0a, #0e0e0e);
color:white;
}

/* HEADER */
header{
display:flex;
justify-content:space-between;
align-items:center;
background: linear-gradient(90deg, #000000, #0c0c0c);
padding:20px;
}

h1{
display:flex;
align-items:center;
gap:10px;
font-size:38px;
}

.logo{
width:200px;
}

/* MENU */
nav a{
color:white;
text-decoration:none;
margin-left:20px;
font-weight:500;
font-size: 19px;
}

nav a:hover{
color:#ff4d6d;
}

/* MAIN PREND L'ESPACE */
main{
flex: 1;
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:40px;
padding:60px;
}

/* SECTIONS */
.anime{
background: linear-gradient(180deg, #111111, #1c1c1c);
padding:20px;
border-radius:10px;
text-align:center;
margin-bottom:80px; /* espace entre sections */
transition: all 0.3s ease;
}

/* effet quand on clique sur une section */
.anime:target{
box-shadow: 0 0 25px rgba(255, 77, 109, 0.7);
transform: scale(1.02);
}

/* évite que le header cache la section */
section{
scroll-margin-top: 100px;
}

.anime h2{
color:#ff4d6d;
}

p{
padding-bottom: 20px;
}

/* IMAGES */
.image{
width:100%;
max-width:450px;
margin:15px 0;
cursor:pointer;
transition: transform 0.3s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.image:hover{
transform: scale(1.1);
}

/* LOGOS ANIME */
.logo-anime{
width:100px;
display:block;
margin:10px auto;
}

/* FOOTER */
footer{
background: linear-gradient(90deg, #000000, #0f0f0f);
display:flex;
justify-content:center;
align-items:center;
gap:15px;
padding:20px;
}

/* LOGO FOOTER */
.logo-footer{
width:60px;
}

/* RESPONSIVE */
@media(max-width:900px){
main{
grid-template-columns:1fr;
}
header{
flex-direction:column;
gap:10px;
}
}