/* RESET & NORMALIZE (modern reset, wide browser support) */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body, html { width: 100%; height: 100%; }
body { min-height: 100vh; font-size: 16px; -webkit-font-smoothing: antialiased; background: #F1F6F9; color: #22303C; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 8px; }

/* TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css?family=Raleway:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  background: #F1F6F9;
}
h1, h2, h3, h4 {
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  line-height: 1.13;
  color: #22303C;
  font-weight: 700;
}
h1 { font-size: 2.2rem; margin-bottom: 16px; letter-spacing: -1px; }
h2 { font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -0.5px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; }
h4 { font-size: 1rem; margin-bottom: 6px; }
p { font-size: 1rem; margin-bottom: 12px; color: #22303C; }
ul, ol { margin-bottom: 16px; }

/* CORE CONTAINER & LAYOUTS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* NATURAL/ORGANIC DESIGN ELEMENTS */
:root {
  --color-primary: #22303C;
  --color-secondary: #80B918;
  --color-accent: #F1F6F9;
  --color-earth1: #78634E;
  --color-earth2: #F3E7D2;
  --color-organic-bg: #EEF6EA;
  --color-green-leaf: #AACD6E;
  --radius-organic: 22px;
  --radius-card: 18px;
  --shadow-soft: 0 4px 16px 0 rgba(34,49,60,0.10);
  --shadow-card: 0 2px 10px 0 rgba(34,49,60,0.07);
}

/* HEADER & NAVIGATION */
header {
  background: #EEF6EA;
  box-shadow: 0 1px 8px 0 rgba(120,99,78,0.07);
  border-bottom-left-radius: 38px 28px;
  border-bottom-right-radius: 38px 28px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img[alt="Brisk Mash Affûtage"] {
  width: 124px;
  height: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: 18px;
}
.main-nav a {
  font-family: 'Raleway';
  font-weight: 600;
  font-size: 1.02rem;
  color: #22303C;
  padding: 6px 10px;
  border-radius: 14px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #D1E7C4;
  color: #365C23;
}
header .btn-primary {
  margin-left: 18px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #365C23;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #D1E7C4;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;left: 0;right: 0;bottom: 0;
  background: rgba(240,246,234,0.96);
  z-index: 200;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.71,1.5,.49,1), opacity 0.25s;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0); opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none; border: none;
  color: #22303C;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
  padding: 6px 12px;
  z-index: 202;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #D1E7C4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  margin-top: 42px;
  padding: 0 36px 24px 36px;
}
.mobile-nav a {
  font-family: 'Raleway';
  font-size: 1.3rem;
  padding: 13px 0 13px 12px;
  border-radius: 12px;
  color: #22303C;
  transition: background 0.15s, color 0.17s;
  background: none;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #D1E7C4;
  color: #4c7413;
}

/* HERO & CTA BANNER */
.hero, .cta-banner {
  background: var(--color-organic-bg);
  border-radius: var(--radius-organic);
  box-shadow: 0 2px 22px 0 rgba(120,99,78,0.07);
  margin-top: 16px;
  margin-bottom: 50px;
  position: relative;
}
.hero .container,
.cta-banner .container {
  display: flex; flex-direction: column;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: -1.3px;
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 18px;
}
.cta-banner {
  background: #E3F5DD;
  padding: 36px 0 44px 0;
}
.cta-banner h2 {
  font-size: 1.7rem;
  color: #15361A;
  margin-bottom: 28px;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway';
  font-weight: 700;
  border-radius: 100px;
  padding: 0.85em 2.2em;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: filter 0.18s, background 0.16s, box-shadow 0.18s;
  box-shadow: 0 2px 9px 0 rgba(128,185,24,0.07);
  margin-right: 10px;
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 3px 14px 0 rgba(128,185,24,0.09);
}
.btn-primary:hover, .btn-primary:focus {
  background: #6ba210;
  color: #f6faee;
  filter: brightness(0.97);
}
.btn-secondary {
  background: #fff;
  border: 2px solid var(--color-secondary);
  color: #365C23;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #d7e7c4;
  border-color: #6ba210;
  color: #406012;
}

/* FEATURES */
.features .content-wrapper > h2,
.about .content-wrapper > h2,
.values .content-wrapper > h2,
.pricing .content-wrapper > h2 {
  margin-bottom: 16px;
}
.feature-grid, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.feature, .service {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 22px 28px 22px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 350px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.20s, transform 0.19s;
  border: 1.5px solid #ebeddd;
}
.feature:hover, .service:hover,
.feature:focus-within, .service:focus-within {
  box-shadow: 0 6px 32px 0 rgba(128,185,24,0.17);
  transform: translateY(-3px) scale(1.018);
  border-color: #AACD6E;
}
.feature img {
  width: 40px; height: 40px; margin-bottom: 8px;
}
.price-badge {
  display: inline-block;
  margin-top: 12px;
  background: #E7F3D6;
  color: #365C23;
  padding: 7px 16px;
  border-radius: 22px;
  font-size: 1rem;
  font-family: 'Open Sans';
  font-weight: 600;
}

/**** LIST & CARD CONTAINERS ****/
.card-container, .service-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 240px;
}

/**** FLEX SPACING PATTERNS ****/
.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;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  border-left: 5px solid var(--color-earth1);
  min-width: 220px;
  max-width: 410px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #22303C;
}
.testimonial-name {
  margin-top: 10px;
  font-family: 'Raleway';
  font-weight: 600;
  color: #365C23;
  font-size: 1rem;
}
.star-ratings {
  color: #80B918;
  margin-top: 2px;
  font-size: 1.2em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TESTIMONIAL SLIDER (index) */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 18px 0;
}

/**** SECTION BACKGROUNDS (ORGANIC SHAPES) ****/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 32px 22px 54px 28px/38px 18px 38px 22px;
}
.about,
.values,
.faq,
.advantages,
.legal-section,
.contact-section,
.thank-you-section {
  background: #FAF8F3;
  border-radius: var(--radius-organic);
  box-shadow: var(--shadow-soft);
}

/**** PRICING TABLE ****/
.pricing-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 1px 8px 0 rgba(120,99,78,0.05);
  margin-bottom: 28px;
  overflow: hidden;
  font-size: 1.02rem;
}
.pricing-table thead tr {
  background: #EEF6EA;
  color: #365C23;
}
.pricing-table th {
  font-family: 'Raleway';
  font-weight: 700;
  padding: 16px 10px;
}
.pricing-table td {
  padding: 13px 10px;
}
.pricing-table tr:nth-child(even) td {
  background: #F7FAF2;
}

/**** TEXT-SECTIONS ****/
.text-section {
  margin: 12px 0 26px 0;
  font-size: 1.06rem;
  color: #22303C;
}
.text-section ul {
  margin-left: 1.4em;
  list-style: disc;
  color: #365C23;
  font-family: 'Open Sans';
}
.text-section li {
  margin-bottom: 9px;
}

/**** CONTACT INFO ****/
.contact-info ul {
  margin-left: 1.4em;
}
.contact-info li {
  margin-bottom: 13px;
  font-size: 1.04rem;
}
.contact-info a {
  color: #80B918;
  font-weight: 600;
  text-decoration: underline;
}
.contact-info a:hover, .contact-info a:focus { color: #406012; }

/**** MAP-EMBED ****/
.map-embed {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: #EEF6EA;
  border-radius: 14px;
  color: #A69C89;
  font-style: italic;
  font-size: 1.04rem;
  padding: 18px 10px;
}

/**** FAQ LIST ****/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px 0 rgba(128,185,24,0.06);
  padding: 20px 18px 18px 18px;
  margin-bottom: 8px;
  transition: box-shadow 0.14s;
}
.faq-item h3 {
  color: #365C23;
  font-size: 1.11rem;
  margin-bottom: 7px;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 7px 28px 0 rgba(80,185,24,0.12);
}

/**** FOOTER ****/
footer {
  background: #22303C;
  color: #FAF8F3;
  border-top-left-radius: 32px 16px;
  border-top-right-radius: 32px 16px;
  margin-top: 55px;
  padding: 36px 0 20px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #f3fae3;
  font-size: 1.02rem;
  font-family: 'Raleway';
  padding: 5px 12px;
  border-radius: 8px;
  transition: background 0.17s, color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #80B918;
  color: #22303C;
}
footer p {
  font-size: 1rem;
  color: #F3F7F3;
}

/**** COOKIE CONSENT BANNER ****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: #F6FBEA;
  border-top: 2px solid #AACD6E;
  box-shadow: 0 -3px 25px 0 rgba(34,49,60,0.09);
  z-index: 900;
  padding: 30px 14px 30px 16px;
  font-size: 1.02rem;
  color: #22303C;
  border-radius: 25px 25px 0 0;
  animation: cookie-slidein 0.32s cubic-bezier(0.42,0,0.58,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(140%); }
  to { transform: translateY(0); }
}
.cookie-banner p {
  flex: 1 1 180px;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 8px 19px;
  font-size: 1.02rem;
  border-radius: 100px;
  border: none;
  background: #80B918;
  color: #fff;
  font-family: 'Raleway';
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1.5px 7px 0 rgba(128,185,24,0.07);
  transition: filter 0.18s, background 0.16s, color 0.17s;
  margin-right: 6px;
}
.cookie-banner button.cookie-reject {
  background: #E7A359;
  color: #22303C;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #365C23;
  border: 2px solid #80B918;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  filter: brightness(0.95);
}

/**** COOKIE MODAL ****/
.cookie-modal-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  background: rgba(34,48,60,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FAF8F3;
  border-radius: 20px;
  box-shadow: 0 10px 48px 0 rgba(128,185,24,0.10);
  min-width: 312px;
  max-width: 96vw;
  padding: 30px 20px 28px 22px;
  position: relative;
  animation: modalUp 0.34s cubic-bezier(.21,1.13,.32,1);
}
@keyframes modalUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 7px;
  letter-spacing: -.1px;
}
.cookie-modal ul {
  list-style: none;
  margin-bottom: 14px;
}
.cookie-modal li {
  margin-bottom: 13px;
  font-size: 1.05rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-toggle {
  accent-color: #80B918;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 16px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: #365C23;
  cursor: pointer;
  border-radius: 50%;
  padding: 4px 8px;
  transition: background 0.13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #D1E7C4;
}

/**** RESPONSIVE ****/
@media (max-width: 1020px) {
  .container { max-width: 97vw; }
  .content-wrapper { gap: 16px; }
  section { padding: 32px 8px; }
  .feature, .service, .card { max-width: 100%; }
}
@media (max-width: 810px) {
  header .container { flex-wrap: wrap; padding-top:8px; padding-bottom: 8px; }
  .main-nav { flex: 1 1 100%; gap: 13px; margin-left: 0; margin-top: 6px; justify-content: flex-start; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 1.45rem; }
  .cta-banner h2 { font-size: 1.20rem; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.10rem; }
  .container { padding: 0 6px; }
  .main-nav { display: none; }
  header .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
  .feature-grid, .service-grid, .testimonial-slider, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card,
  .feature, .service, .card {
    min-width: unset;
    max-width: none;
    width: 100%;
  }
  .testimonials .testimonial-card {
    width: 100%;
  }
  .text-image-section { flex-direction: column; gap: 14px; }
  .content-grid { flex-direction: column; gap: 12px; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; }
  header .btn-primary { display: inline-flex; }
}
@media (max-width: 560px) {
  .footer-nav { flex-direction: column; gap: 7px; align-items: center; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 9px; font-size: 0.98rem; }
  .cookie-banner .cookie-actions { flex-direction: column; gap: 7px; }
}

/**** MICRO-ANIMATIONS ****/
a, .btn-primary, .btn-secondary, .footer-nav a, .main-nav a, .mobile-nav a {
  transition: all 0.18s cubic-bezier(.57,1.5,.49,1);
}
.feature, .service {
  transition: box-shadow 0.20s, border-color 0.20s, transform 0.17s;
}
.testimonial-card {
  transition: box-shadow 0.16s, border-color 0.18s, transform 0.13s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 7px 30px 0 rgba(34,49,60,0.12);
  border-left: 5px solid #80B918;
  transform: translateY(-1.5px) scale(1.013);
}

/**** UTILITY CLASSES ****/
.d-none { display: none !important; }
.text-center { text-align: center; }
.rounded { border-radius: var(--radius-card); }
.shadow-soft { box-shadow: var(--shadow-soft); }

/****** END ******/
