body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #222;
}

/* Navigation */
header {
    background: white;
    border-bottom: 1px solid #ddd;
}

nav {
    max-width: 1000px;
    margin: auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
}


.hero-icon {
    width: 95px;         
    max-width: 100%;      
    height: auto;
    margin-bottom: 1rem;  
}


/* Projects */
.projects {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}




#runGameBtn {
    padding: 24px 48px;
    font-size: 30px;
    background-color: #e19626;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#runGameBtn:hover {
    background-color: #cf9144;
}



.featured-card {
    width: 100%;
    margin-bottom: 30px;
}

.other-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.other-cards .project-card {
    flex: 1;
}


.project-page {
    padding: 60px 20px;
    background: #fafafa;
}

.project-container {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.project-container h3 {
    text-align: center;
    margin-bottom: 30px;
}

.project-container h2 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.project-container p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.project-container ul {
    padding-left: 20px;
}

.project-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
}

.project-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.project-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

.project-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.project-card p {
    flex-grow: 1;
    margin: 0;
    color: #555;
    line-height: 1.4;
}

.project-link {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #0077cc;
}

.project-card {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-link {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    z-index: 10;
    text-decoration: none;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* ratio 16:9 */
    margin: 30px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.short-container {
    width: 315px;
    height: 560px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.short-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.game-frame {
    width: 100%;
    height: 720px; 
    border: none;
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #666;
}


/*about*/
.about {
    max-width: 800px;
    margin: auto;
    padding: 40px 20px;
    line-height: 1.6;
}

.about h1 {
    text-align: center;
    margin-bottom: 20px;
}

.about {
    padding: 60px 20px;
    background: #fafafa;
}

.about-container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.about-container p {
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}


/* Positionnement du dropdown */
.dropdown {
    position: relative;
}

/* Le menu caché */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    display: none;
    min-width: 180px;
    z-index: 100;
}

/* Affichage au survol */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Style des liens */
.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f0f0f0;
}



/* détails mise en page*/
.center {
    text-align: center;
    margin-top: 20px;
}

.indent {
    text-indent: 2em;
}