/* ---------------- CSS RESET & NORMALIZATION ---------------- */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f5f4f1 url('../assets/bg-organic-texture.jpg') repeat;
  color: #232816;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-blend-mode: lighten;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}
a {
  color: #254b2c;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8a6934;
  text-decoration: underline;
  outline: none;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/* ----------------- FONT IMPORTS & BASE TYPOGRAPHY -------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@300;400;700&display=swap');

:root {
  --color-primary: #232946;
  --color-secondary: #eebbc3;
  --color-accent: #f7f7f7;
  --color-earth-bg: #f5f4f1;
  --color-earth-text: #232816;
  --color-green: #354c39;
  --color-green-light: #aacbb0;
  --color-brown: #8a6934;
  --color-sand: #e6e2d3;
  --color-shadow: rgba(53, 76, 57, 0.07);
  --shadow-soft: 0 4px 14px var(--color-shadow);
  --radius-large: 32px;
  --radius-small: 12px;
  --transition-main: all 0.25s cubic-bezier(.4,1,.6,1);
  --border-card: 1.5px solid #ecebe1;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--color-green);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.13;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
p, li, address {
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 1rem;
  color: var(--color-earth-text);
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: var(--color-green);
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* -------------------- HEADER & NAVIGATION ------------------- */
header {
  background: var(--color-earth-bg);
  box-shadow: 0 2px 6px -2px var(--color-shadow);
  border-bottom: 1px solid #edeace;
  padding: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
header nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
header nav a {
  color: var(--color-green);
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: none;
  position: relative;
  transition: var(--transition-main);
}
header nav a:hover,
header nav a:focus {
  background: var(--color-green-light);
  color: #174522;
  text-decoration: none;
}
header nav a.cta {
  background: var(--color-green);
  color: #fff;
  border-radius: 24px 18px 24px 18px;
  font-weight: 700;
  padding: 7px 22px;
  margin-left: 10px;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  transition: var(--transition-main);
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: var(--color-brown);
  color: #fff;
}
header img[alt="Galerie Virtuose"] {
  height: 48px;
  width: auto;
}

/* -------------------- MOBILE NAVIGATION --------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  background-color: var(--color-green);
  border-radius: 99px;
  color: #fff;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-brown);
  color: #fff;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245, 244, 241, 0.97);
  z-index: 999;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.4,1,.6,1), opacity 0.3s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--color-green);
  border-radius: 99px;
  color: #fff;
  width: 38px;
  height: 38px;
  font-size: 1.8rem;
  margin: 18px 18px 0 auto;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-brown);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 34px 30px 20px 30px;
}
.mobile-nav a {
  color: var(--color-green);
  background: var(--color-green-light);
  font-size: 1.24rem;
  border-radius: 18px;
  padding: 14px 8px;
  font-weight: 700;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-brown);
  color: #fff;
  outline: none;
}

/* ------------- SPACING, SECTIONS, FLEX CONTAINERS ------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  background: var(--color-accent);
  border: var(--border-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
}
.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: #ffffff;
  border-radius: var(--radius-large);
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  margin-bottom: 20px;
  min-width: 0; /* For flex overflow */
  border: 1px solid var(--color-green-light);
  flex-direction: row;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.short-stats p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-green);
  font-weight: 400;
  margin-bottom: 0;
}

/* -------------------- BUTTONS & CALLS-TO-ACTION ------------- */
.cta {
  appearance: none;
  display: inline-block;
  font-family: var(--font-title);
  background: var(--color-green);
  color: #fff !important;
  box-shadow: 0 4px 16px 0 var(--color-shadow);
  border-radius: 28px 20px 28px 28px / 16px 20px 28px 20px;
  padding: 13px 38px;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  margin-top: 18px;
  margin-bottom: 10px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  cursor: pointer;
  text-align: center;
}
.cta:hover, .cta:focus {
  background: var(--color-brown);
  color: #fff;
  box-shadow: 0 8px 28px 2px var(--color-shadow);
  outline: none;
}

/* ---------------- ORGANIC & NATURAL ELEMENTS --------------------- */
section {
  background: var(--color-earth-bg);
  border-radius: var(--radius-large) var(--radius-small) var(--radius-large) var(--radius-small);
  margin-bottom: 40px;
  box-shadow: 0 2px 18px -4px var(--color-shadow);
  border: 1.5px solid var(--color-sand);
  position: relative;
}
section:nth-child(even) {
  background: #f7f7f3;
  border-radius: var(--radius-small) var(--radius-large) var(--radius-small) var(--radius-large);
}
/* Optional: organic overlays (SVG or PNG) could be absolutely positioned with lower z-index, if desired */

/* ------------------------ LISTS & ICONS ---------------------- */
.content-wrapper ul li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1rem;
  padding-left: 2px;
}
.content-wrapper ul li img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  margin-right: 4px;
  flex-shrink: 0;
  margin-top: 3px;
}
.content-wrapper ul {
  margin-bottom: 10px;
}

/* ----------------------- TESTIMONIALS ----------------------- */
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  margin-bottom: 6px;
  line-height: 1.6;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-green);
  font-weight: 700;
  margin-left: 10px;
  align-self: flex-end;
}

/* Ensure contrast */
.testimonial-card {
  background: #fff;
  color: #232818;
  border: 1.5px solid var(--color-green-light);
  box-shadow: 0 2px 16px 0 var(--color-shadow);
}

/* ------------------- CONTACT DETAILS IN FOOTER + PAGE ----- */
footer {
  background: #e6e2d3;
  padding: 34px 0 18px 0;
  border-top: 1.5px solid var(--color-sand);
}
footer .container {
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-brown);
  margin-bottom: 6px;
  margin-top: 0;
}
footer nav a {
  color: var(--color-green);
  text-decoration: none;
  font-weight: 600;
  padding: 2px 6px;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-brown);
  text-decoration: underline;
  background: var(--color-green-light);
  border-radius: 8px;
}
footer address {
  font-style: normal;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 1rem;
}
footer img[alt='Adresse'] {
  width: 22px;
  height: 22px;
}
footer span {
  font-size: 0.97rem;
  font-weight: 400;
  color: #232818b0;
  margin-top: 6px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  color: var(--color-green);
  font-size: 1rem;
}
.contact-details img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* ------------------- COOKIE CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #e3e7dc;
  border-top: 2px solid var(--color-green-light);
  box-shadow: 0 -4px 18px 0 var(--color-shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 4010;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookie-banner-slidein 0.40s cubic-bezier(.4,1,.6,1);
}
@keyframes cookie-banner-slidein {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__desc {
  color: var(--color-green);
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner__actions button {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 7px 22px;
  border-radius: 18px;
  background: var(--color-green);
  color: white;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  border: none;
  margin: 0 3px;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner__actions button.cookie-settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-banner__actions button.cookie-reject {
  background: var(--color-brown);
}
.cookie-banner__actions button:hover,
.cookie-banner__actions button:focus {
  background: var(--color-green-light);
  color: var(--color-green);
  outline: none;
}
.cookie-banner__actions button.cookie-settings:hover {
  background: var(--color-green);
  color: #fff;
}

/* ----------------- COOKIE MODAL POPUP ----------------------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(53,76,57,0.18);
  z-index: 4020;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.25s cubic-bezier(.4,1,.6,1);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fafeef;
  border-radius: var(--radius-large);
  box-shadow: 0 6px 36px 2px var(--color-shadow);
  padding: 30px 20px 24px 20px;
  min-width: 310px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cookie-modal-zoom 0.35s cubic-bezier(.4,1,.6,1);
}
@keyframes cookie-modal-zoom {
  from {transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal__title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-green);
  margin-bottom: 14px;
}
.cookie-modal__desc {
  font-size: 1rem;
  color: var(--color-earth-text);
  margin-bottom: 20px;
  text-align: center;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  background: #ebf5ea;
  border-radius: 13px;
  padding: 10px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-width: 210px;
}
.cookie-category__label {
  color: var(--color-green);
  font-size: 1rem;
}
.cookie-category__toggle {
  margin-left: 12px;
  display: flex;
  align-items: center;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: var(--color-green-light);
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px 0 var(--color-shadow);
  transition: left 0.2s, background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle::before {
  background: var(--color-green);
  left: 19px;
}
/* Fallback for vanilla toggles: Show checked state with a modifier class as well as input selector */
.cookie-toggle.checked::before {
  background: var(--color-green);
  left: 19px;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal__actions button {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 7px 22px;
  border-radius: 16px;
  border: none;
  background: var(--color-green);
  color: #fff;
  font-weight: 700;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal__actions button.cookie-reject {
  background: var(--color-brown);
}
.cookie-modal__actions button.cookie-cancel {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-modal__actions button:hover,
.cookie-modal__actions button:focus {
  background: var(--color-green-light);
  color: var(--color-green);
  outline: none;
}

/* ------------- FORM ELEMENTS ------------------- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-green-light);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  margin-bottom: 14px;
  box-sizing: border-box;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-green);
  outline: none;
}
label {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 7px;
  font-family: var(--font-body);
}

/* ------------- ANIMATIONS & MICRO-INTERACTIONS ------------ */
.card, .testimonial-card, section, .cta, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s, background 0.22s, transform 0.22s;
}
.card:hover, .testimonial-card:hover, section:hover {
  box-shadow: 0 8px 44px 0 rgba(53,76,57,0.12);
  transform: translateY(-2px) scale(1.012);
}

@media (hover: none) {
  .card:hover, .testimonial-card:hover, section:hover { transform: none; }
}

.cta { transition: var(--transition-main); }
.cta:active { transform: scale(0.97); }

/* ------------- RESPONSIVE DESIGN (MOBILE FIRST) ------------ */
@media (max-width: 950px) {
  .container { max-width: 99vw; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section,
  section {
    padding: 28px 7px 28px 7px;
    margin-bottom: 36px;
    border-radius: var(--radius-large);
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .testimonials {
    flex-direction: column;
    gap: 19px;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  h1 {
    font-size: 1.38rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.12rem;
    margin-bottom: 10px;
  }
  h3 {
    font-size: 1.01rem;
    margin-bottom: 7px;
  }
  .cta {
    font-size: 1rem;
    padding: 11px 18px;
  }
  .cookie-banner {
    padding: 13px 5px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    padding: 16px 6px 12px 6px;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .text-image-section,
  .content-grid,
  .card-container {
    flex-direction: column !important;
    gap: 15px !important;
  }
}
@media (max-width: 500px) {
  .testimonial-card { padding: 12px; font-size: 0.99rem; }
  .short-stats p, .footer nav, .footer address, .footer span {
    font-size: 0.92rem;
  }
}

/* -------- UTILITY CLASSES & OVERRIDES FOR FLEXBOX --------- */
.flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.flex-col {
  flex-direction: column !important;
}
.gap-20px { gap: 20px !important; }
.gap-30px { gap: 30px !important; }

/* --------- Z-INDEX MANAGEMENT FOR MOBILE/UI --------- */
header,
footer,
.mobile-menu,
.cookie-banner,
.cookie-modal,
.cookie-modal-overlay {
  z-index: 50;
}
.mobile-menu { z-index: 999; }
.cookie-banner { z-index: 4010; }
.cookie-modal-overlay { z-index: 4020; }

/* ---------- ACCESSIBILITY FOCUS OUTLINE CLEANUP ---------- */
a:focus, button:focus, .cta:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-brown);
  outline-offset: 2px;
}

/* ----------- MISC FIXES FOR ORGANIC LOOK  --------------- */
section, .card, .testimonial-card, .cookie-modal {
  border-radius: 32px 20px 30px 16px / 28px 20px 28px 22px;
}

/* -------------- END OF CSS --------------- */