css
/* ===== RESET ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, sans-serif;
line-height: 1.6;
color: #333;
}
/* ===== HEADER ===== */
header {
background: #fff;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 100;
}
nav {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: #2563eb;
}
nav ul {
display: flex;
list-style: none;
gap: 25px;
}
nav a {
text-decoration: none;
color: #555;
font-weight: 500;
transition: color 0.3s;
}
nav a:hover {
color: #2563eb;
}
/* ===== HERO ===== */
.hero {
background: linear-gradient(135deg, #2563eb, #7c3aed);
color: white;
text-align: center;
padding: 100px 20px;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 15px;
}
.hero p {
font-size: 1.3rem;
margin-bottom: 30px;
opacity: 0.9;
}
/* ===== BOUTON ===== */
.btn {
display: inline-block;
padding: 12px 35px;
background: #fff;
color: #2563eb;
text-decoration: none;
border-radius: 50px;
font-weight: bold;
font-size: 1rem;
border: none;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
/* ===== SECTIONS ===== */
section {
max-width: 1200px;
margin: 0 auto;
padding: 80px 20px;
}
section h2 {
text-align: center;
font-size: 2.2rem;
margin-bottom: 50px;
color: #1e40af;
}
/* ===== CARDS ===== */
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}
.card {
background: #f8fafc;
padding: 35px;
border-radius: 15px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
border: 1px solid #e2e8f0;
}
.card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.card h3 {
font-size: 1.3rem;
margin-bottom: 12px;
color: #2563eb;
}
.card p {
color: #64748b;
}
/* ===== FORMULAIRE ===== */
.contact {
background: #f1f5f9;
border-radius: 15px;
max-width: 700px;
}
form {
display: flex;
flex-direction: column;
gap: 20px;
max-width: 500px;
margin: 0 auto;
}
form input,
form textarea {
padding: 14px 18px;
border: 1px solid #cbd5e1;
border-radius: 8px;
font-size: 1rem;
font-family: inherit;
transition: border 0.3s;
}
form input:focus,
form textarea:focus {
outline: none;
border-color: #2563eb;
}
form button {
align-self: center;
background: #2563eb;
color: white;
padding: 14px 45px;
}
/* ===== FOOTER ===== */
footer {
background: #1e293b;
color: #94a3b8;
text-align: center;
padding: 25px;
margin-top: 50px;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
nav {
flex-direction: column;
gap: 15px;
}
nav ul {
flex-wrap: wrap;
justify-content: center;
}
.hero h1 {
font-size: 2rem;
}
}