/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #b83b5e;
}
.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin: 0 20px;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
}
.nav-links a:hover {
    color: #fff;
    background-color: #b83b5e;
    border-radius: 5px;
}

/* En-tête (首页) */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    animation: fadeIn 1.5s ease-in;
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    z-index: 10;
}
.hero-text h1 {
    font-size: 60px;
}
.hero-text p {
    font-size: 28px;
    margin-top: 15px;
}
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #b83b5e;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #d14d72;
}

/* 子页面头部 (博客和政策页面) */
.blog-hero, .page-hero {
    position: relative;
    height: 40vh; /* 减小高度，避免覆盖内容 */
    overflow: hidden;
}
.blog-hero img, .page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-hero .hero-text, .page-hero .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.5); /* 增加背景透明度 */
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 10;
}
.blog-hero .hero-text h1, .page-hero .hero-text h1 {
    font-size: 40px;
}

/* Sections générales */
section {
    padding: 80px 20px;
    text-align: center;
}
h2 {
    font-size: 40px;
    margin-bottom: 40px;
    color: #b83b5e;
}

/* Introduction */
.intro-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}
.intro-content p {
    font-size: 18px;
    max-width: 50%;
    line-height: 1.6;
}
.intro-content img {
    width: 40%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.blog-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.blog-item:hover {
    transform: translateY(-10px);
}
.blog-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-item h3 {
    margin: 15px;
    font-size: 20px;
}
.blog-item a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.blog-item a:hover {
    color: #b83b5e;
}
.blog-item p {
    color: #666;
    margin: 0 15px 15px;
}

/* Blog内容 */
.blog-content {
    max-width: 900px;
    margin: 40px auto 0; /* 确保内容在图片下方 */
    padding: 0 20px;
    text-align: left;
}
.blog-content h2 {
    font-size: 30px;
    margin-bottom: 25px;
}
.blog-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

/* Avantages */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.adv-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.adv-item:hover {
    transform: translateY(-10px);
}
.adv-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}
.adv-item h3 {
    margin: 15px 0;
    font-size: 20px;
}
.adv-item p {
    color: #666;
}

/* 政策页面内容 */
.page-content {
    max-width: 900px;
    margin: 40px auto 0; /* 确保内容在图片下方 */
    padding: 0 20px;
    text-align: left;
}
.page-content h2 {
    font-size: 30px;
    margin-bottom: 25px;
}
.page-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

/* Pied de page */
footer {
    background-color: #f5e8e4;
    padding: 25px;
    text-align: center;
    color: #333;
    margin-top: 40px;
}
footer a {
    color: #b83b5e;
    text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Réactivité */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    .intro-content p, .intro-content img {
        max-width: 100%;
    }
    .hero-text h1, .blog-hero .hero-text h1, .page-hero .hero-text h1 {
        font-size: 32px;
    }
    .hero-text p {
        font-size: 20px;
    }
}