:root {
    /* Charte graphique */
    --primary-color: #2E8B57;      /* vert sauge */
    --secondary-color: #F5F5DC;    /* beige clair */
    --accent-color: #FFD700;       /* doré */
    --text-color: #333333;
    --bg-color: #FFF3E4;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Logo */
.logo {
    height: 75px;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
}
.navbar .brand {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
}
.nav-menu li {
    position: relative;
}
.nav-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    display: block;
    transition: background 0.3s;
}
.nav-menu a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Sous-menu */
.has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: var(--secondary-color);
    display: none;
    min-width: 150px;
}
.has-submenu:hover .submenu {
    display: block;
    animation: fadeIn 0.3s ease-in;
}
.has-submenu .submenu a {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px);} 
    to { opacity: 1; transform: translateY(0);}    
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    border: none;
    background: none;
    cursor: pointer;
}
.burger span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 4px 0;
    transition: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 200px;
        background: var(--primary-color);
        flex-direction: column;
        align-items: start;
        padding-top: 2rem;
        transition: right 0.3s ease-in;
    }
    .nav-menu.active {
        right: 0;
    }
    .burger {
        display: flex;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--secondary-color);
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero .btn {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 4px;
    transition: opacity 0.3s;
}
.hero .btn:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-top: auto;
}
footer .social {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}
footer .social li {
    margin: 0 0.5rem;
}

/* Animation for burger toggle */
.toggle .span1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .span2 {
    opacity: 0;
}
.toggle .span3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
.seo-block {
  display: flex;
  align-items: center;
  margin: 4rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.seo-block.reverse {
  flex-direction: row-reverse;
}
.seo-block-image,
.seo-block-content {
  flex: 1;
  padding: 1rem;
}
.seo-block-image img {
  width: 75%;
  height: auto;
  border-radius: 8px;
}
.seo-block-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.seo-block-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-secondary:hover {
  background: var(--accent-color);
}
@media (max-width: 768px) {
  .seo-block {
    flex-direction: column !important;
    text-align: center;
  }
  .seo-block.reverse {
    flex-direction: column !important;
  }
  .seo-block-image,
  .seo-block-content {
    padding: 0.5rem;
  }
  .seo-block-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
  }
}