<!DOCTYPE html>
<html lang=”fr”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Accueil – Vos Gîtes</title>
<style>
/* Global styles */
body {
margin: 0;
font-family: Arial, sans-serif;
display: flex;
flex-direction: row;
height: 100vh;
overflow: hidden;
}
/* Split sections */
.split {
width: 50%;
height: 100%;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
text-align: center;
transition: transform 0.3s ease;
color: white;
}
.split:hover {
transform: scale(1.05);
}
/* Background images */
.split-left {
background: url(‘gite1.jpg’) no-repeat center center/cover;
}
.split-right {
background: url(‘gite2.jpg’) no-repeat center center/cover;
}
/* Dark overlay */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1;
}
/* Content on top of images */
.content {
position: relative;
z-index: 2;
}
.content h1 {
font-size: 2.5rem;
margin: 0;
}
.content p {
margin: 10px 0;
font-size: 1.2rem;
}
.content a {
display: inline-block;
margin-top: 20px;
padding: 10px 20px;
background-color: #fff;
color: #333;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}
.content a:hover {
background-color: #333;
color: #fff;
}
/* Responsive design */
@media (max-width: 768px) {
body {
flex-direction: column;
}
.split {
width: 100%;
height: 50%;
}
}
</style>
</head>
<body>
<!– First gîte –>
<div class=”split split-left” onclick=”window.location.href=’gite1.html'”>
<div class=”overlay”></div>
<div class=”content”>
<h1>Gîte 1</h1>
<p>Découvrez notre premier gîte au cœur de la nature.</p>
<a href=”gite1.html”>Découvrir</a>
</div>
</div>
<!– Second gîte –>
<div class=”split split-right” onclick=”window.location.href=’gite2.html'”>
<div class=”overlay”></div>
<div class=”content”>
<h1>Gîte 2</h1>
<p>Un espace chaleureux et moderne pour vos séjours.</p>
<a href=”gite2.html”>Découvrir</a>
</div>
</div>
</body>
</html>