/* --------------------------------------------------
   Éclat Intérieur – Minimalist Flexbox CSS Framework
   Brand: Élégant, moderne, chaleureux, artistique
   Colors: #334D5C (primary), #F9AA33 (secondary), #F2EFEA (accent)
   Fonts: Montserrat (display), Open Sans (body)
   -------------------------------------------------- */

/* 1. CSS RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-color: #F2EFEA;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #334D5C;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4, h5, h6 { font-size: 1rem; }

p, ul, ol, blockquote {
  margin-bottom: 18px;
  font-size: 1rem;
}

ul, ol {
  padding-left: 1.2em;
}

blockquote {
  font-style: italic;
  color: #334D5C;
  border-left: 3px solid #F9AA33;
  padding-left: 16px;
  margin-bottom: 10px;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

a {
  color: #334D5C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9AA33;
  outline: none;
}

/* 2. LAYOUT CONTAINERS & SPACING */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(51,77,92,0.04);
  transition: box-shadow 0.2s;
}
section:last-child {
  margin-bottom: 0;
}

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

/* 3. FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(51,77,92,0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(51,77,92,0.10);
  transform: translateY(-2px) scale(1.01);
}

.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;
}
.text-image-section img {
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 180px;
  box-shadow: 0 2px 12px rgba(51,77,92,0.08);
}
.text-image-section .content-wrapper {
  flex: 2 1 320px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F2EFEA;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(51,77,92,0.04);
  color: #222;
  font-size: 1.05rem;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(51,77,92,0.10);
}
.testimonial-card blockquote {
  color: #334D5C;
  border: none;
  padding-left: 0;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #888;
  font-size: 0.98em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 4. BRAND COLORS & BUTTONS */
.cta-btn, .btn, button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #334D5C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(51,77,92,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
  margin-top: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .btn:hover, button:hover, input[type="submit"]:hover {
  background: #F9AA33;
  color: #334D5C;
  box-shadow: 0 4px 16px rgba(249,170,51,0.10);
  transform: translateY(-1px) scale(1.01);
}

/* Secondary Button */
.btn-secondary {
  background: #F9AA33;
  color: #334D5C;
}
.btn-secondary:hover {
  background: #334D5C;
  color: #fff;
}

/* 5. NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(51,77,92,0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #334D5C;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
  font-size: 1rem;
}
header nav a:hover, header nav a:focus {
  color: #F9AA33;
  border-bottom: 2px solid #F9AA33;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 18px;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #334D5C;
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover {
  color: #F9AA33;
}

/* 6. MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(51,77,92,0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 32px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: #F9AA33;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin: 60px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F9AA33;
  border-bottom: 2px solid #F9AA33;
}

/* 7. FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #F2EFEA;
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 30px;
}
footer img {
  height: 32px;
  margin-bottom: 18px;
}
.footer-menu, .footer-contact, .footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
}
.footer-menu a {
  color: #334D5C;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: #F9AA33;
}
.footer-newsletter h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* 8. GALLERY & ARTICLE CARDS */
.image-slider, .image-grid, .article-cards, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 20px;
}
.image-slider img {
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(51,77,92,0.08);
  width: 220px;
  height: 140px;
  object-fit: cover;
  transition: box-shadow 0.2s, transform 0.2s;
}
.image-slider img:hover {
  box-shadow: 0 6px 24px rgba(51,77,92,0.12);
  transform: scale(1.03);
}
.image-grid > div, .article-cards > div, .feature-grid > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(51,77,92,0.04);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.image-grid > div:hover, .article-cards > div:hover, .feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(51,77,92,0.10);
  transform: translateY(-2px) scale(1.01);
}
.image-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* 9. FORMS & INPUTS */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 14px;
  transition: border 0.2s, box-shadow 0.2s;
  width: 100%;
  box-shadow: 0 1px 4px rgba(51,77,92,0.03);
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid #F9AA33;
  outline: none;
  box-shadow: 0 2px 8px rgba(249,170,51,0.08);
}
label {
  font-size: 1rem;
  color: #334D5C;
  margin-bottom: 6px;
  display: block;
}

/* 10. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #334D5C;
  box-shadow: 0 -2px 16px rgba(51,77,92,0.10);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 99999;
  border-radius: 18px 18px 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(.77,0,.18,1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner .accept {
  background: #334D5C;
  color: #fff;
}
.cookie-banner .accept:hover {
  background: #F9AA33;
  color: #334D5C;
}
.cookie-banner .reject {
  background: #F2EFEA;
  color: #334D5C;
  border: 1px solid #E0E0E0;
}
.cookie-banner .reject:hover {
  background: #F9AA33;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #334D5C;
  border: 1px solid #F9AA33;
}
.cookie-banner .settings:hover {
  background: #F9AA33;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(51,77,92,0.70);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(51,77,92,0.18);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #334D5C;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .modal-close:hover {
  color: #F9AA33;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #334D5C;
  margin-bottom: 0;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #F9AA33;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category .always-on {
  color: #888;
  font-size: 0.95em;
  margin-left: 6px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .modal-actions button {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal .modal-actions .accept {
  background: #334D5C;
  color: #fff;
}
.cookie-modal .modal-actions .accept:hover {
  background: #F9AA33;
  color: #334D5C;
}
.cookie-modal .modal-actions .reject {
  background: #F2EFEA;
  color: #334D5C;
  border: 1px solid #E0E0E0;
}
.cookie-modal .modal-actions .reject:hover {
  background: #F9AA33;
  color: #fff;
}

/* 11. MISCELLANEOUS */
::-webkit-scrollbar {
  width: 8px;
  background: #F2EFEA;
}
::-webkit-scrollbar-thumb {
  background: #E0E0E0;
  border-radius: 8px;
}

hr {
  border: none;
  border-top: 1px solid #F2EFEA;
  margin: 32px 0;
}

/* 12. RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  footer .container {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 12px 10px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 8px;
  }
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .image-slider, .image-grid, .article-cards, .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .image-slider img, .image-grid img {
    width: 100%;
    height: 120px;
  }
  .image-grid > div, .article-cards > div, .feature-grid > div {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px 14px 8px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-modal .modal-content {
    min-width: 0;
    width: 98vw;
    padding: 18px 8px 14px 8px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  .cookie-modal .modal-content {
    padding: 10px 4px 8px 4px;
  }
}

/* 13. ANIMATIONS */
@keyframes slideInMenu {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutMenu {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.mobile-menu.open {
  animation: slideInMenu 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu:not(.open) {
  animation: slideOutMenu 0.35s cubic-bezier(.77,0,.18,1);
}
.cookie-banner.visible {
  animation: fadeIn 0.4s;
}
.cookie-banner:not(.visible) {
  animation: fadeOut 0.4s;
}
.cookie-modal.open .modal-content {
  animation: fadeIn 0.3s;
}

/* 14. UTILITY CLASSES */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.text-center { text-align: center !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.gap-20 { gap: 20px; }

/* 15. ACCESSIBILITY */
:focus {
  outline: 2px solid #F9AA33;
  outline-offset: 2px;
}

/* 16. PRINT */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container { box-shadow: none !important; background: #fff !important; }
}

/* END OF CSS */
