/* === RESET GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-family: 'Arial', sans-serif;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}

/* === HEADER & NAVIGATION === */
header {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.logo {
    flex: 0 0 auto;
}
.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}
.nav-links li a:hover {
    color: #007BFF;
}

/* === BURGER MENU (MOBILE) === */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}
.burger div {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    nav .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 60%;
        display: none;
        padding: 1rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    nav .nav-links.nav-active {
        display: flex;
    }
}

/* === HERO SECTION === */
#hero,
.hero {
    position: relative;
    padding: 6rem 2rem;
    background: url('../images/hero-background.jpg') no-repeat center/cover;
    color: #fff;
    text-align: center;
}
#hero::before,
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
#hero .hero-text,
.hero .hero-text {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}
.hero-text h1,
#hero .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-text p,
#hero .hero-text p {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* === GLOBAL SECTION STYLE === */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #222;
    text-align: left;
}

/* === DERNIÈRES ACTUALITÉS (CARDS AVEC IMAGES) === */
.latest-news .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.latest-news .card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.latest-news .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}
.latest-news .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.latest-news .card-content {
    padding: 1.5rem;
}
.news-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #111;
}
.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}
.news-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}
.latest-news .read-more {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #007BFF;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}
.latest-news .read-more:hover {
    background: #0056b3;
}

/* === GRILLE 3 COLONNES POUR LES 9 DERNIERS ARTICLES === */
.latest-articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.latest-articles .articles-grid-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s ease;
}
.latest-articles .articles-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.latest-articles .articles-grid-item h3 {
    font-size: 1.1rem;
    color: #0056b3;
    text-align: left;
    margin: 0;
}
.latest-articles .articles-grid-item p.article-excerpt {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    text-align: left;
}
.latest-articles .articles-grid-item a {
    text-decoration: none;
    display: block;
}

/* === VIEW ALL BUTTON === */
.view-all {
    text-align: center;
    margin-top: 2rem;
}
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #28a745;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s;
}
.btn:hover {
    background: #218838;
}

/* === MISE EN PAGE ARTICLE DÉTAILLÉ === */
.article-detail {
    padding: 4rem 2rem;
}
.article-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.article-container {
    flex: 0 0 65%;
    max-width: 65%;
}
.other-articles {
    flex: 0 0 30%;
    max-width: 30%;
}
.article-header {
    margin-bottom: 2rem;
}
.article-title {
    font-size: 2.4rem;
    color: #222;
    margin-bottom: 0.5rem;
    text-align: left;
}
.article-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 2rem;
    text-align: left;
}
.article-content {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    text-align: left;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-footer {
    margin-top: 3rem;
    text-align: left;
}
.share-buttons p {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.share-button {
    color: #007BFF;
    margin-right: 0.8rem;
    font-weight: 600;
}
.share-button:hover {
    color: #0056b3;
}
.back-to-articles {
    margin-top: 2rem;
}
.btn-back,
.back-to-articles .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #28a745;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s;
}
.btn-back:hover,
.back-to-articles .btn:hover {
    background: #218838;
}

/* === HERO POUR PAGE ARTICLE === */
.article-hero {
    background: #f8f8f8;
    padding: 4rem 2rem;
    text-align: center;
}
.article-hero .hero-text h1 {
    font-size: 2.5rem;
    color: #222;
}
.article-hero .article-date {
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
}

/* === FOOTER === */
footer {
    background: #f8f8f8;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

/* === MESSAGES (CONTACT / ADMIN) === */
.success-message {
    color: #28a745;
    text-align: center;
    margin-bottom: 1rem;
}
.error-message {
    color: #dc3545;
    text-align: center;
    margin-bottom: 1rem;
}

/* === RESPONSIVE ADAPTATION === */
@media (max-width: 992px) {
    .latest-articles .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .latest-articles .articles-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        width: 100%;
    }
    #hero,
    .hero {
        padding: 4rem 1rem;
    }
    section {
        padding: 3rem 1rem;
    }
    .article-layout {
        flex-direction: column;
    }
    .article-container,
    .other-articles {
        max-width: 100%;
        flex: 0 0 100%;
    }
}
footer form {
  margin-top: 1rem;
}
footer input[type="email"] {
  padding: 0.5rem;
  margin-right: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
footer button {
  padding: 0.5rem 1rem;
  background: #007BFF;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
.topbar {
  background: #007BFF;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-weight: bold;
}