/* ======================================================
   RESET & NORMALIZATION (Mobile First)
====================================================== */
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 { 
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F0F6F2;
  color: #154A49;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background 0.25s;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: #79B7A7;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
a:hover, a:focus {
  color: #154A49;
  background: #E0F7EE;
  border-radius: 6px;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 10px;
}
strong {
  font-weight: bold;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px 0 rgba(21,74,73,0.07);
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
th {
  background: #154A49;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
tbody td {
  border-bottom: 1px solid #E1E9E7;
  background: #F9FCFA;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* HEADERS & TYPOGRAPHY (Playful Dynamic) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #154a49;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.3rem;
  color: #154A49;
  margin-bottom: 24px;
  line-height: 1.2;
  animation: fadeUp 0.8s cubic-bezier(.8,-0.03,.32,1.02);
}
h2 {
  font-size: 1.6rem;
  color: #1F857C;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-size: 1.05rem;
}
p,
ul,
li {
  font-size: 1rem;
  color: #25594F;
}

/*
  -- Playful color accents & fonts
*/
::selection {
  background: #79B7A7;
  color: #fff;
}

/* LAYOUT UTILS (MATCH HTML STRUCTURE & FLEX REQS) */
.container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #F0F6F2;
  border-radius: 22px;
  box-shadow: 0 4px 20px 0 rgba(40,180,170,0.065);
  transition: box-shadow 0.3s;
}

/* CARDS, GRIDS, FLEX LAYOUTS */
.card-container,
.card-grid,
.course-list,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}
.card,
.course-item {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(21,74,73,0.08);
  margin-bottom: 20px;
  padding: 24px 18px;
  display: flex;  
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 220px;
  flex: 1 1 245px;
  transition: box-shadow 0.25s, transform 0.16s;
}
.card:hover, .course-item:hover {
  box-shadow: 0 8px 24px 0 rgba(21,74,73,0.17);
  transform: translateY(-5px) scale(1.025);
}

.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;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(40,180,170,0.09);
  font-size: 1.1rem;
  color: #154A49;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: #25594F;
}
.testimonial-card strong {
  color: #1F857C;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -- Home page list with images
     (Pourquoi choisir / bienfaits) */
ul li img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
}

/* BUTTONS (PRIMARY & SECONDARY, playful) */
.button-primary,
.button-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 30px;
  border: none;
  outline: none;
  cursor: pointer;
  background: #1F857C;
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(21,74,73,0.11);
  margin-top: 10px;
  margin-bottom: 8px;
  letter-spacing: .025em;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.button-primary:hover, .button-primary:focus {
  background: #154A49;
  color: #fff;
  box-shadow: 0 5px 28px 0 rgba(40,180,170,0.14);
  transform: translateY(-2px) scale(1.045);
}
.button-secondary {
  background: #fff;
  color: #1F857C;
  border: 2px solid #1F857C;
}
.button-secondary:hover,
.button-secondary:focus {
  background: #F0F6F2;
  color: #154A49;
  border-color: #154A49;
  box-shadow: 0 3px 12px 0 rgba(21,74,73,0.15);
}

/*
   HEADER & NAVIGATION
======================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 1px 9px 0 rgba(21,74,73,0.06);
  position: sticky;
  top: 0;
  z-index: 11;
}
header img {
  height: 46px; 
  width: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav .button-primary {
  margin-left: 10px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1F857C;
  padding: 6px 10px;
  border-radius: 7px;
  margin-bottom: 0;
  transition: color 0.14s, background 0.18s;
}
header nav a:hover,
header nav a:focus {
  color: #154A49;
  background: #E0F7EE;
}
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1F857C;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.16s;
  z-index: 30;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #154A49;
}
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/*
   MOBILE MENU (SLIDE ANIMATION)
============================================ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F0F6F2;
  z-index: 9900;
  padding: 32px 24px 0 24px;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.67,-0.15,.48,1.11);
  box-shadow: 2px 0 32px #79B7A733;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #fff;
  color: #1F857C;
  border: none;
  font-size: 2.2rem;
  width: 51px;
  height: 51px;
  border-radius: 50%;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px #1F857C22;
  transition: background 0.18s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #1F857C;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: #154A49;
  background: #fff;
  border-radius: 12px;
  padding: 18px 14px;
  font-weight: 600;
  text-align: left;
  min-width: 60vw;
  transition: box-shadow .16s, background .16s;
  box-shadow: 0 2px 14px 0 #79B7A72B;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E0F7EE;
  color: #1F857C;
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}
@media (max-width: 1023px) {
  header nav {
    display: none;
  }
}

/*
   MAIN CONTENT, GRIDS, CARDS
============================================ */
main {
  margin-top: 0;
  padding-bottom: 60px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container + .container {
  margin-top: 48px;
}
.card-container, .card-grid, .course-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #154A49;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(40,180,170,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*
   TABLETS & DESKTOPS
============================================ */
@media (min-width: 768px) {
  .content-wrapper {
    gap: 24px;
  }
  .card-container, .card-grid, .course-list {
    flex-direction: row;
    gap: 32px;
    justify-content: flex-start;
  }
}
@media (min-width: 1024px) {
  .section {
    padding: 60px 36px;
    margin-bottom: 80px;
  }
  .container {
    padding: 0 32px;
  }
  .content-wrapper {
    gap: 40px;
  }
  .text-image-section {
    flex-direction: row;
    gap: 48px;
  }
  .card-grid, .card-container, .course-list {
    gap: 36px;
  }
}

/*
 RESPONSIVENESS - MOBILE FIRST (smaller than 768px)
-------------------------------------------------- */
@media (max-width: 768px) {
  .section {
    padding: 30px 7px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 6px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/*
   FOOTER
============================================ */
footer {
  background: #154A49;
  color: #fff;
  padding: 36px 0 24px 0;
  font-size: 0.95rem;
  width: 100%;
}
.footer-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding: 0 16px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #fff;
  opacity: 0.83;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: none;
  border-radius: 5px;
  padding: 4px 7px;
  margin: 0;
  transition: background 0.16s, color 0.13s;
}
footer nav a:hover,
footer nav a:focus {
  background: #1F857C;
  color: #F0F6F2;
  opacity: 1;
}
.footer-contact {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #F0F6F2;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact img {
  width: 21px;
  height: 21px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-contact span {
  font-size: .95em;
  opacity: .77;
}
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 0 3px;
  }
}

/*
   ANIMATIONS (subtle, playful)
============================================ */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes buttonBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  60% { transform: scale(0.97); }
  80% { transform: scale(1.04); }
  90% { transform: scale(0.99); }
  100% { transform: scale(1); }
}
.button-primary:hover,
.button-primary:focus {
  animation: buttonBounce 0.36s cubic-bezier(.57,1.25,.65,.71);
}

/* Micro-interactions for testimonials/cards */
.testimonial-card:hover {
  box-shadow: 0 10px 34px 0 #1F857C17;
  background: #E0F7EE;
  transition: box-shadow .2s, background .18s;
}

/*
   COOKIE CONSENT BANNER & MODAL
============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 9950;
  background: #154A49;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 16px 18px 16px;
  box-shadow: 0 -2px 24px 0 #0002;
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.64,-0.13,.52,1.09);
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.17s;
  margin-left: 0;
  margin-right: 0;
  margin-top: 2px;
}
.cookie-banner .accept {
  background: #1F857C;
  color: #fff;
  box-shadow: 0 2px 9px 0 #1F857C21;
}
.cookie-banner .accept:hover {
  background: #1aa79c;
}
.cookie-banner .reject {
  background: #fff;
  color: #1F857C;
  border: 2px solid #1F857C;
}
.cookie-banner .reject:hover {
  background: #e0f7ee;
}
.cookie-banner .settings {
  background: #79B7A7;
  color: #154A49;
}
.cookie-banner .settings:hover {
  background: #154A49;
  color: #fff;
}

.cookie-modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(21,74,73, 0.21);
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal {
  background: #fff;
  color: #154A49;
  border-radius: 20px;
  box-shadow: 0 8px 56px 0 rgba(21,74,73,0.13);
  width: 95vw;
  max-width: 360px;
  padding: 28px 24px 22px 24px;
  position: relative;
  z-index: 10001;
  animation: fadeUp 0.33s cubic-bezier(.53,-0.28,.51,1.27);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #1F857C;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin: 14px 0 9px 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.cookie-modal input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #1F857C;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  width: 100%;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 18px;
  transition: background 0.18s, color 0.13s;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal {
  background: #fff;
  color: #1F857C;
  border: 2px solid #1F857C;
}
.cookie-modal .close-modal:hover {
  background: #1F857C;
  color: #fff;
}
.cookie-modal .save {
  background: #1F857C;
  color: #fff;
}
.cookie-modal .save:hover {
  background: #79B7A7;
  color: #154A49;
}
@media (max-width: 480px) {
  .cookie-modal {
    max-width: 95vw;
    padding: 15px 6px 7px 6px;
  }
  .cookie-modal .modal-buttons {
    flex-direction: column;
    gap: 7px;
  }
}

/*
   MISC - FORMS and OTHERS
============================================ */
input,
select,
textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1.5px solid #CED8D3;
  background: #fff;
  color: #154A49;
  margin-bottom: 16px;
  outline: none;
  transition: border 0.19s;
  box-shadow: 0 1px 6px #1F857C13;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #79B7A7;
}
::-webkit-input-placeholder { color: #88B399; opacity: 1; }
::-moz-placeholder { color: #88B399; opacity: 1; }
:-ms-input-placeholder { color: #88B399; opacity: 1; }
::placeholder { color: #88B399; opacity: 1; }

/* Error messages, highlights */
.error {
  color: #E65B5B;
  background: #FDE5E3;
  padding: 8px 16px;
  border-radius: 6px;
  margin: 8px 0 12px 0;
}

/*
   PLAYFUL ACCENTS & DETAILS
=============================================== */
/* Decorative dashes below main headings */
h1:after {
  content: '';
  display: block;
  width: 46px;
  height: 7px;
  border-radius: 8px;
  background: #79B7A7;
  margin-top: 7px;
  margin-bottom: 2px;
  animation: fadeUp 0.7s .09s both;
}
h2:after {
  content: '';
  display: block;
  width: 34px;
  height: 5px;
  border-radius: 6px;
  background: #1F857C;
  margin-top: 3px;
  margin-bottom: 0;
  animation: fadeUp 0.5s .10s both;
}

/* Fun icon bounce on hover */
ul li img, .course-item img {
  transition: transform 0.22s cubic-bezier(.63,1.71,.24,.98);
}
ul li:hover img, .course-item:hover img {
  transform: scale(1.15) rotate(-6deg);
}

/* Fun playful drop shadow on section hover */
.section:hover {
  box-shadow: 0 8px 38px 0 #79B7A711;
}

/*
   MOBILE ENHANCEMENTS
=============================================== */
@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.10rem; }
  h3 { font-size: 1rem; }
  body, p, table, th, td { font-size: 0.94rem; }
  .button-primary, .button-secondary { font-size: .94rem; }
  .footer-contact { font-size: .92rem; }
  .testimonials .testimonial-card, .card, .course-item {
    padding: 16px 8px;
  }
}
