/* ---------------------------------
   CSS RESET & NORMALIZE
--------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F5F2E7;
  color: #243744;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------
   CUSTOM FONT FACE (fallback loaded from Google Fonts in HTML, but CSS uses font-family)
--------------------------------- */
h1, h2, h3, .display, .lead {
  font-family: 'Merriweather', Georgia, serif;
  color: #295C41;
}

/* ---------------------------------
   BASIC STRUCTURE & CONTAINER
--------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

main {
  flex: 1 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(41, 92, 65, 0.06);
}

/* ---------------------------------
   HEADER, NAVIGATION, CTA
--------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
  box-shadow: 0 2px 8px rgba(41,92,65,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: #295C41;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 4px 0px;
  transition: color .2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #A0C886;
  outline: none;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #295C41;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(41,92,65,0.12);
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #3C7F5D;
  color: #FFF;
  box-shadow: 0 4px 16px rgba(160,200,134,0.12);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: #295C41;
  cursor: pointer;
  padding: 6px 10px;
  margin-left: 20px;
  z-index: 160;
  transition: background 0.2s;
  border-radius: 6px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #A0C886;
  background: #eef4ef;
}

/* ---------------------------------
   MOBILE NAVIGATION MENU
--------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(41,92,65,0.98);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 34px;
  position: absolute;
  top: 22px;
  right: 26px;
  cursor: pointer;
  z-index: 210;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #A0C886;
}
.mobile-nav {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  padding-left: 38px;
  padding-top: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 4px;
  transition: background 0.18s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A0C886;
  color: #295C41;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: 15px;
  }
  .logo img { height: 36px; }
}
@media (max-width: 768px) {
  header .container {
    gap: 12px;
    height: 58px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    margin-left: 0;
    padding: 9px 15px;
    font-size: 15px;
  }
}

/* ---------------------------------
   HERO, TITLES, TEXTS, LEADS
--------------------------------- */
h1 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #295C41;
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
}
h2 {
  font-size: 2.1rem;
  font-weight: 600;
  color: #295C41;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #295C41;
}
.lead {
  color: #3C7F5D;
  font-size: 1.1rem;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #243744;
  font-size: 16px;
  margin-bottom: 10px;
}
ul, ol {
  padding-left: 26px;
}
li {
  margin-bottom: 7px;
}
strong {
  font-weight: 700;
}
a {
  color: #295C41;
  text-underline-position: under;
  text-decoration-thickness: 1.6px;
  transition: color 0.15s;
  outline: none;
}
a:hover, a:focus {
  color: #3C7F5D;
  text-decoration: underline;
}

/* ---------------------------------
   FLEXBOX LAYOUTS (MANDATORY CLASSES)
--------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(41,92,65,0.07);
  transition: box-shadow .2s, transform .18s;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(41,92,65,0.12);
  transform: translateY(-3px) scale(1.016);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* ---------------------------------
   FEATURES, SERVICES, ARTICLES
--------------------------------- */
.features-list, .services-list, .contact-details-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 16px;
  margin-bottom: 10px;
}
.features-list li, .services-list li, .contact-details-list li {
  background: #F5F2E7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(41,92,65,0.07);
  padding: 26px 22px 20px 22px;
  min-width: 215px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
  transition: box-shadow 0.17s, transform 0.18s;
}
.features-list li img, .services-list li img, .contact-details-list li img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}
.features-list li:hover, .services-list li:hover {
  box-shadow: 0 6px 20px rgba(160,200,134,0.11);
  transform: translateY(-2px) scale(1.01);
}
.services-list li span {
  display: inline-block;
  font-weight: 700;
  background: #A0C886;
  color: #295C41;
  font-size: 16px;
  padding: 4px 13px;
  border-radius: 8px;
  margin-top: 9px;
}
@media (max-width: 900px) {
  .features-list, .services-list, .contact-details-list {
    gap: 14px;
  }
  .features-list li, .services-list li, .contact-details-list li {
    min-width: 160px;
    padding: 18px 10px 15px 14px;
  }
}
@media (max-width: 640px) {
  .features-list, .services-list, .contact-details-list {
    flex-direction: column;
    gap: 12px;
  }
  .features-list li, .services-list li, .contact-details-list li {
    flex: 1 1 100%;
    min-width: unset;
  }
}

/* Articles à la une preview */
.articles-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.articles-preview-grid article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(41,92,65,.08);
  padding: 24px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow .18s, transform .15s;
}
.articles-preview-grid article:hover {
  box-shadow: 0 7px 24px rgba(160,200,134,0.14);
  transform: translateY(-2px) scale(1.012);
}
.articles-preview-grid article a {
  color: #295C41;
  font-weight: 600;
  text-decoration: underline;
  font-size: 16px;
  margin-top: auto;
  transition: color .17s;
}
.articles-preview-grid article a:hover,
.articles-preview-grid article a:focus {
  color: #A0C886;
}
@media (max-width: 768px) {
  .articles-preview-grid {
    flex-direction: column;
    gap: 15px;
  }
}

/* Article filters */
.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  align-items: center;
}
.article-filters label {
  font-size: 15px;
  color: #295C41;
  letter-spacing: 0.01em;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.article-filters input[type="text"] {
  border: 1px solid #A0C886;
  border-radius: 7px;
  font-size: 15px;
  padding: 6px 14px;
  outline: none;
  margin-left: 7px;
  transition: border .16s;
}
.article-filters input[type="text"]:focus {
  border: 1.5px solid #295C41;
}
@media (max-width: 700px) {
  .article-filters {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* Grid for full article lists */
.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.article-grid article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(41,92,65,.07);
  padding: 22px 17px 16px 17px;
  flex: 1 1 240px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  transition: box-shadow .22s, transform .13s;
}
.article-grid article span.categorie {
  color: #fff;
  background: #295C41;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 500;
  position: absolute;
  top: 16px;
  left: 16px;
}
.article-grid article span.date {
  color: #6B8372;
  font-size: 13px;
}
.article-grid article a {
  margin-top: 14px;
  color: #295C41;
  font-weight: 600;
  text-decoration: underline;
  font-size: 15px;
  align-self: flex-start;
  transition: color .15s;
}
.article-grid article a:hover, .article-grid article a:focus {
  color: #A0C886;
}
.article-grid article:hover {
  box-shadow: 0 6px 22px rgba(160,200,134,0.13);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 768px) {
  .article-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* ---------------------------------
   TESTIMONIALS / REVIEWS (Services)
--------------------------------- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 19px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F5F2E7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(41,92,65,0.08);
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow .16s, transform .13s;
  color: #243744;
}
.testimonial-card p {
  font-size: 16px;
  color: #243744;
  font-style: italic;
  font-family: 'Merriweather', Georgia, serif;
}
.testimonial-card span {
  font-size: 15px;
  color: #295C41;
  font-weight: 600;
  margin-top: 9px;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(160,200,134,0.13);
  transform: translateY(-2px) scale(1.012);
}
@media (max-width: 768px) {
  .testimonial-list {
    flex-direction: column;
    gap: 17px;
  }
}

/* ---------------------------------
   FORMS, INPUTS, BUTTONS
--------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}
input, textarea, select {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  padding: 10px 14px;
  border: 1px solid #A0C886;
  border-radius: 7px;
  background: #F5F2E7;
  margin-top: 4px;
  margin-bottom: 0;
  outline: none;
  transition: border .18s, background .14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #295C41;
  background: #fff;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  font-size: 15.7px;
  font-weight: 500;
  color: #295C41;
  margin-bottom: 3px;
}
button[type="submit"], form button, .cta-btn {
  background: #295C41;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 21px;
  padding: 12px 24px;
  margin-top: 5px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(41,92,65,0.11);
  transition: background 0.16s, box-shadow 0.16s, color 0.16s, transform 0.14s;
  outline: none;
}
button[type="submit"]:hover, button[type="submit"]:focus, form button:hover, form button:focus {
  background: #3C7F5D;
  color: #fff;
  box-shadow: 0 5px 18px rgba(160,200,134,0.11);
  transform: translateY(-2px) scale(1.016);
}

/* Newsletter form join */
input[type="email"] {
  max-width: 250px;
  display: inline-block;
}
form input[type="email"] + button[type="submit"] {
  margin-left: 10px;
}
form input[type="email"] {
  margin-bottom: 0;
}
@media (max-width: 600px){
  form {
    max-width: 99%;
    width: 100%;
  }
  input[type="email"], input[type="text"] {
    max-width: 100%;
  }
  form input[type="email"] + button[type="submit"] {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ---------------------------------
   FOOTER
--------------------------------- */
footer {
  background: #243744;
  color: #F5F2E7;
  font-size: 16px;
  margin-top: 70px;
  padding-top: 42px;
  padding-bottom: 20px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-top img {
  height: 38px;
}
.footer-top p {
  color: #A0C886;
  font-size: 16px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #A0C886;
  font-weight: 500;
  text-decoration: underline;
  font-size: 15px;
  margin-right: 12px;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-top: 1.5px solid #395662;
  padding-top: 22px;
  margin-top: 18px;
}
.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #F5F2E7;
  font-size: 15px;
}
.contact-infos img {
  margin-right: 7px;
  vertical-align: middle;
  height: 17px;
}
.social-icons {
  display: flex;
  gap: 13px;
}
.social-icons a img {
  height: 28px;
  width: 28px;
  display: block;
  filter: grayscale(0.4) brightness(0.89) contrast(1.12);
  transition: filter 0.16s;
}
.social-icons a:hover img, .social-icons a:focus img {
  filter: none;
}
@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
}

/* ---------------------------------
   COOKIE CONSENT BANNER
--------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #243744;
  color: #F5F2E7;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 26px;
  z-index: 10000;
  box-shadow: 0 -2px 13px rgba(41,92,65,0.11);
  font-size: 16px;
  animation: cookiebanner-fade-in 0.42s ease;
}
@keyframes cookiebanner-fade-in {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner-text {
  flex: 2 1 60%;
  font-size: 15px;
}
.cookie-banner-actions {
  flex: 1 1 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  border: none;
  border-radius: 8px;
  padding: 9px 21px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
  transition: background .18s, color .17s;
}
.cookie-btn-primary {
  background: #A0C886;
  color: #243744;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #7fa663;
  color: #fff;
}
.cookie-btn-secondary {
  background: #295C41;
  color: #fff;
  border: 1px solid #A0C886;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #3C7F5D;
  color: #fff;
}
.cookie-btn {
  background: #fff;
  color: #295C41;
  border: 1px solid #243744;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #A0C886;
  color: #295C41;
}
@media (max-width: 600px){
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px;
    font-size: 15px;
  }
  .cookie-banner-actions {
    flex-direction: row;
    gap: 7px;
  }
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,55,68,0.78);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-overlay-in .35s cubic-bezier(.53,.13,.22,.98);
}
@keyframes cookie-overlay-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #243744;
  border-radius: 15px;
  box-shadow: 0 4px 32px rgba(41,92,65,0.17);
  max-width: 400px;
  width: 92%;
  padding: 36px 28px 28px 28px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-fade-in .35s cubic-bezier(.53,.13,.22,.98);
}
@keyframes cookie-modal-fade-in {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #295C41;
  font-size: 28px;
  position: absolute;
  top: 17px;
  right: 22px;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}
.cookie-category label {
  font-size: 15px;
  color: #295C41;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #295C41;
}
.cookie-category.essential label {
  font-style: italic;
  opacity: 0.7;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 12px;
}

/* ---------------------------------
   GENERAL UTILITIES/SPACING
--------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-4 { margin-bottom: 32px !important; }

.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.gap-40 { gap: 40px !important; }
@media (max-width: 480px){
  .section {
    padding: 18px 8px;
    margin-bottom: 24px;
    border-radius: 9px;
  }
}

/* ---------------------------------
   MISC. & ACCESSIBILITY
--------------------------------- */
::-moz-selection { background: #A0C886; color: #fff; }
::selection { background: #A0C886; color: #fff; }

:focus {
  outline: 2px solid #A0C886;
  outline-offset: 2px;
}

[role="button"], button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  outline-style: none;
}

/* Hide elements visually (not needed in these templates but for accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------------------------------
   END OF MAIN STYLE.CSS
--------------------------------- */