/* 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,
b, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F8F9FB;
  color: #232668;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: inherit; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }

/* BRAND COLORS & NATURE PALETTE */
:root {
  --color-primary: #232668;
  --color-secondary: #FFD447;
  --color-accent: #F8F9FB;
  --color-green: #4caf50;
  --color-brown: #856243;
  --color-earth: #b3a074;
  --color-bg-card: #fff;
  --color-bg-section: #f4f6f2;
  --color-text-default: #232668;
  --color-text-dark: #232320;
  --color-success: #3fa97e;
  --color-error: #bd2323;
  --radius-s: 12px;
  --radius-m: 22px;
  --shadow-base: 0 2px 16px 0 rgba(81,105,58,.08);
  --shadow-soft: 0 2px 8px 0 rgba(135,137,103,0.12);
  --transition: all 0.22s cubic-bezier(.5,.1,.4,1);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 20px; line-height: 1.15; }
h2 { font-size: 1.85rem; font-weight: 600; margin: 32px 0 18px 0; }
h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: var(--color-brown); font-weight: 400; margin-bottom: 24px; }
p { margin-bottom: 18px; }
ul, ol { margin-left: 18px; margin-bottom: 18px; }
li { margin-bottom: 8px; line-height: 1.7; }
strong, b { font-weight: 600; }

/* GENERAL CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ORGANIC NATURE ACCENTS */
section {
  background: var(--color-bg-section);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  box-shadow: var(--shadow-base);
  margin-bottom: 60px;
  position: relative;
}
section:nth-child(even) {
  background: #eaece3;
}

/* MAIN NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(102,120,95,.09);
  padding-top: 4px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--color-secondary);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 0 6px 0;
  border-radius: 8px;
  position: relative;
  transition: background 0.15s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-green);
  outline: none;
}

header a img {
  height: 46px;
  width: auto;
  vertical-align: middle;
}

/* PRIMARY BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--color-green);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-s);
  box-shadow: 0 2px 14px 0 rgba(52,61,63,0.07);
  cursor: pointer;
  margin-left: 18px;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #357e50;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(76,175,80,0.13);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.18s;
  margin-top: 6px;
}
.btn-link:hover, .btn-link:focus {
  color: var(--color-green);
  text-decoration: underline wavy var(--color-secondary);
}

/* FLEX UTILITY CLASSES (MANDATORY PATTERNS) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-soft); overflow: hidden; }
.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; }
.testimonial-card { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px; background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-base); margin-bottom: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* FEATURE GRID (ex: Nos atouts, Programme) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 300px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 30px 20px 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-left: 6px solid var(--color-green);
  transition: box-shadow 0.17s, border-left 0.17s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 4px 24px 0 rgba(76,175,80,0.11);
  border-left: 8px solid var(--color-secondary);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.feature-grid h3 {
  margin-bottom: 7px;
}

/* TEAM GRID (A Propos) */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.team-member {
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 330px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 5px solid var(--color-earth);
}

/* VALUES LIST */
.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f4f7f3;
  padding: 17px 14px;
  border-radius: var(--radius-s);
  box-shadow: 0 2px 6px 0 rgba(36,80,27,0.03);
}
.values-list img { width: 30px; height: 30px; margin-top: 3px; }

/* EVENT CARD & LIST */
.event-card, .event-list li {
  background: #fff;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-m);
  margin-bottom: 20px;
  padding: 28px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 5px solid var(--color-green);
  transition: box-shadow 0.17s, border-left 0.17s;
}
.event-card:hover, .event-list li:hover {
  box-shadow: 0 8px 24px 0 rgba(76,175,80,0.11);
  border-left: 7px solid var(--color-secondary);
}
.event-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}

/* ARTICLES/RESOURCES LIST */
.articles-list, .downloadable-guides {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.articles-list li, .downloadable-guides a {
  padding: 14px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
}
.articles-list a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-green);
  font-size: 1.07rem;
  font-weight: 500;
  padding-left: 15px;
}
.articles-list a:hover, .downloadable-guides a:hover {
  color: var(--color-primary);
}
.downloadable-guides a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f7f3;
  padding: 15px 14px;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* VIDEO-TUTORIALS */
.video-tutorials p {
  background: #f2f9ee;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-weight: 500;
  font-size: 1rem;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.faq-accordion > div {
  background: #fff;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-soft);
  padding: 18px 14px;
  border-left: 5px solid var(--color-green);
  margin-bottom: 8px;
}
.faq-accordion strong {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--color-primary);
}

/* BADGES (Programme, Progression) */
.badges {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin: 10px 0 0 0;
}
.badges img {
  width: 54px;
  height: 54px;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-base);
  border-radius: var(--radius-m);
  font-size: 1.08rem;
  color: var(--color-primary);
  transition: box-shadow var(--transition);
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(52,61,63,0.10);
}
.testimonial-card strong, .testimonial-card .testi-info span {
  color: var(--color-green);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.testi-info {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  margin-top: 8px;
}
.testimonial-card p {
  font-style: italic;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

/* CONTACT DETAILS & MAP */
.contact-details, .map-location {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0 14px 0;
}
.contact-details span, .footer-contact span, .map-location p {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.07rem;
}
.contact-details img, .footer-contact img, .map-location img { width: 23px; height: 23px; }

/* FOOTER */
footer {
  background: #fff;
  border-top: 3px solid var(--color-green);
  padding: 30px 0 0 0;
  font-size: 1rem;
  margin-top: 40px;
}
footer .container { flex-direction: column; gap: 16px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-brown);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  padding: 3px 7px;
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-green);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 38px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.footer-copy {
  font-size: 0.97rem;
  color: #7b7b7b;
  margin-bottom: 4px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1200;
  margin-left: 12px;
  line-height: 1;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--color-secondary); }

.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(71,88,77,0.97);
  box-shadow: 0 2px 26px 0 rgba(53, 101, 55, 0.25);
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.5,.2,.2,1);
  overflow-y: auto;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  animation: menuIn 0.33s cubic-bezier(.5,.2,.2,1);
}
@keyframes menuIn {
  from { transform: translateX(-100vw); }
  to   { transform: translateX(0); }
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 18px 0 24px 22px;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus { outline: 2px solid var(--color-secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 0;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  text-align: left;
  background: none;
  transition: color .18s, background .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-green);
}
/* Hide main nav on mobile */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}

/* Only show main nav on desktop */
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* RESPONSIVE LAYOUT & FLEX ADJUSTMENTS */
@media (max-width: 980px) {
  .header .container, header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .team-grid, .feature-grid, .footer-contact {
    flex-direction: column;
    align-items: stretch;
  }
  .badges {
    justify-content: flex-start;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.23rem; }
  .btn-primary, .btn-link { font-size: 1rem; padding: 12px 18px; }
  .feature-grid, .team-grid, .event-list, .footer-contact, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    padding: 25px 8px;
    margin-bottom: 34px;
    border-radius: var(--radius-s);
  }
  header .container {
    gap: 12px;
  }
  .lead { font-size: 1rem; }
  .testimonial-card { font-size: 1rem; padding: 12px; }
  .feature-grid li, .team-member, .event-card, .event-list li, .faq-accordion > div {
    padding: 18px 10px;
    min-width: 0;
    max-width: 100%;
  }
  .badges img { width: 38px; height: 38px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* FINE TUNING SPACING */
section, .section, .card, .card-container > *, .testimonial-card, .feature-grid li, .event-card, .event-list li, .team-member, .faq-accordion > div {
  margin-bottom: 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 16px;
}

/* MICROLEVEL ORGANIC EFFECTS */
.card, .event-card, .team-member, .testimonial-card, .faq-accordion > div, .feature-grid li {
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.card::before, .event-card::before, .team-member::before, .testimonial-card::before, .feature-grid li::before {
  content: '';
  display: block;
  position: absolute;
  left: -40px; top: -40px;
  width: 110px; height: 90px;
  background: radial-gradient(ellipse 48px 35px at 80% 20%, #e1f2d8 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* MODALS & OVERLAYS (Cookie etc) */
.overlay {
  background: rgba(22,42,26,0.36);
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 20001;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeinOverlay 0.19s cubic-bezier(.5,.1,.5,1);
}
@keyframes fadeinOverlay {
  from { background: rgba(22,42,26,0); }
  to { background: rgba(22,42,26,0.36); }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20010;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8faf3;
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 -2px 24px 0 rgba(59,80,28,0.13);
  padding: 22px 24px;
  font-size: 1rem;
  min-height: 60px;
  animation: slideUpCookie 0.23s cubic-bezier(.5,.1,.5,1);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  color: var(--color-text-dark);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 10px 19px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .15s, color .13s, transform .12s;
  box-shadow: 0 1px 6px 0 rgba(76,175,80,0.05);
}
.cookie-btn.accept {
  background: var(--color-green);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #438d57;
  transform: scale(1.04);
}
.cookie-btn.reject {
  background: #f2ece6;
  color: var(--color-brown);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eaddca;
}
.cookie-btn.settings {
  background: none;
  color: var(--color-brown);
  text-decoration: underline;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: var(--color-green);
  background: #f0f8ef;
}

/* COOKIE MODAL */
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: 0 8px 36px 2px rgba(36,80,27,0.21);
  padding: 32px 27px;
  max-width: 340px;
  width: 95%;
  z-index: 20030;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUpCookieModal 0.3s cubic-bezier(.5,.2,.3,1);
}
@keyframes fadeUpCookieModal {
  from { transform: translateY(120px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  background: #f8faf3;
  border-radius: 8px;
  padding: 11px 8px;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0 0 0 5px;
  accent-color: var(--color-green);
}
.cookie-category .essential {
  color: var(--color-brown);
  font-weight: 700;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 9px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-earth);
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--color-brown);
}
@media (max-width: 600px) {
  .cookie-moadl, .cookie-modal { max-width: 97vw; padding: 15px 5px; }
  .cookie-banner { flex-direction: column; gap: 13px; padding: 19px 8px;font-size:.98rem; }
  .cookie-banner .cookie-actions { flex-direction: row; gap: 7px; }
}

/* ACCESSIBILITY: Focus styles */
a:focus, button:focus, .btn-primary:focus, .btn-link:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}

/* OTHER: Hide visually if needed */
.sr-only { position: absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* .map-location and .contact-details icon styling */
.map-location img, .contact-details img { filter: hue-rotate(-27deg) brightness(0.9) saturate(1.12); }

/* Prevent content overlap/scroll-bar issues on small screens */
@media (max-width: 400px) {
  html { font-size: 15px; }
  .btn-primary, .cookie-btn { font-size:.97rem; padding: 10px 10px; }
}
