/* =======================================================
   Maison Futée Grenoble - Vintage Retro Style Main CSS
   STRICTLY FLEXBOX (NO GRID!), Responsive, Brand-compliant
   ======================================================= */

/* === 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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #faf6f0;
  color: #23495B;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:focus { outline: 2px dashed #A8BB3C; outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin-left: 1.2em; margin-bottom: 1em; }
li { margin-bottom: 0.5em; }

/* === VINTAGE RETRO COLOR PALETTE (with brand colors) === */
:root {
  --primary: #23495B;
  --secondary: #F2F5F7;
  --accent: #A8BB3C;
  --vintage-bg: #faf6f0;
  --vintage-orange: #E3AB63;
  --vintage-red: #D7695B;
  --vintage-blue: #356985;
  --vintage-brown: #746257;
  --vintage-yellow: #FBE999;
  --vintage-green: #8AA899;
  --text-dark: #23495B;
  --text-light: #fff;
  --shadow: 0 2px 12px 0 rgba(80,51,32,0.09);
  --radius: 14px;
  --retro-pattern: repeating-linear-gradient(
    -45deg,
    #FBE999 0px,
    #FBE999 8px,
    #fff 8px,
    #fff 16px
  );
  /* Retro font fallbacks */
  --font-display: 'Montserrat', 'Bebas Neue', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', 'Open Sans', Arial, sans-serif;
}

body {
  background-color: var(--vintage-bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  min-width: 320px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-shadow: 1px 2px 0px #FBE999, 0 1px 4px #fff7c370;
}
h1 { font-size: 2.4rem; margin-bottom: 10px; }
h2 { font-size: 1.7rem; margin-bottom: 8px; }
h3 { font-size: 1.24rem; }
h4 { font-size: 1.12rem; }

p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary);
}
strong { color: var(--vintage-brown); font-weight: 700; }
blockquote {
  font-family: var(--font-display);
  font-size: 1.14rem;
  background: var(--vintage-yellow);
  border-left: 6px solid var(--vintage-orange);
  margin: 0;
  padding: 14px 20px 12px 24px;
  border-radius: var(--radius);
  color: var(--primary);
  line-height: 1.5;
}

.text-section, .content-wrapper {
  font-size: 1rem;
  color: var(--primary);
}
.text-section h2, .text-section h3 { margin-top: 24px; margin-bottom: 8px; }
.text-section ul { margin-bottom: 18px; margin-left: 2em; }


/* === CONTAINER, CONTENT, SECTION === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffbe6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #f7e3ad;
  position: relative;
}
@media (max-width: 768px) {
  .section { padding: 24px 4vw; margin-bottom: 40px; }
  .container { padding-left: 8px; padding-right: 8px; }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  min-width: 260px;
  flex: 1 1 280px;
  position: relative;
  border: 1.5px solid #e5dab3;
  padding: 28px 24px 20px 24px;
}
@media (max-width: 560px) {
  .card { min-width: 180px; padding: 16px 10px; }
  .card-container { gap: 14px; }
}

.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;
}
@media (max-width: 768px)  {
  .content-grid,
  .text-image-section { flex-direction: column; align-items: flex-start !important; gap: 16px; }
}
.section:not(:first-child) { margin-top: 30px; }


/* === HERO SECTIONS === */
.hero {
  background: var(--retro-pattern), linear-gradient(90deg, #FBE999 80%, #E3AB63 100%);
  padding: 56px 0 36px 0;
  position: relative;
  border-bottom: 4px solid #f7e3ad;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 620px;
  gap: 11px;
}
.hero h1 {
  font-size: 2.6rem;
  color: var(--vintage-red);
  text-shadow: 2px 2px 0 #fffbe6, 0 1px 2px #fffbed88;
}
.hero h2 {
  font-size: 1.38rem;
  color: var(--vintage-brown);
  font-weight: 700;
}
.hero p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.hero .cta {
  margin-top: 8px;
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 26px 0;
    min-height: auto;
  }
  .hero .content-wrapper { max-width: 100%; }
  .hero h1 { font-size: 1.7rem; }
}


/* === HEADER, NAVIGATION === */
header {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 20px 0 #dde2e633;
  position: relative;
  z-index: 100;
}
header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  position: relative;
}
.logo-link img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  margin-left: 12px;
}
.main-nav a {
  color: var(--text-light);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background-color 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background-color: var(--accent);
  color: var(--primary);
}
.cta.primary {
  background-color: var(--vintage-red);
  color: #fff;
  border-radius: var(--radius);
  padding: 11px 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  border: 2px solid #d5693f;
  box-shadow: 0 0 0 #fff;
  transition: background 0.18s, color 0.14s, box-shadow 0.2s;
  margin-left: 24px;
  letter-spacing: 0.04em;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--vintage-orange);
  color: var(--primary);
  box-shadow: 0 3px 15px #ead19560;
  border-color: var(--vintage-orange);
}

/* Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: var(--vintage-orange);
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  border-radius: 6px;
  padding: 2px 16px 4px 16px;
  margin-left: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #b191323a;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--vintage-red);
  color: #fff;
}

/* Responsive Nav */
@media (max-width: 991px) {
  .main-nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 440px) {
  .logo-link img { height: 38px; }
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #faf6f0cc;
  box-shadow: 0 1px 19px 0 #24322f63;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.82,0.15,0.36,1.06);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--vintage-red);
  color: #fff;
  border: none;
  font-size: 2rem;
  margin: 18px 18px 0 0;
  padding: 4px 18px 4px 18px;
  border-radius: 10px;
  transition: background 0.18s;
  cursor: pointer;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--vintage-orange);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  align-items: flex-start;
  margin-top: 32px;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: var(--primary);
  background: transparent;
  padding: 10px 5px 9px 2px;
  border-radius: 0;
  border-left: 7px solid var(--vintage-yellow);
  transition: background 0.1s, color 0.2s;
  min-width: 180px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--vintage-red);
  background: var(--vintage-yellow);
}
@media (max-width: 440px) {
  .mobile-nav { padding-left: 18px; }
  .mobile-nav a { font-size: 1rem; min-width: 120px; }
}

/* === FOOTER === */
footer {
  background: var(--vintage-blue);
  color: #fff;
  font-family: var(--font-body);
  padding: 0;
}
footer .container {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav.footer-nav {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fffbe6;
  font-weight: 600;
  text-decoration: underline dotted;
  padding-right: 7px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
footer .cta {
  background: var(--vintage-orange);
  color: var(--primary);
  border-radius: 12px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-left: 0;
  border: none;
  box-shadow: 0 1px 7px 0 #8371412f;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 14px;
}
footer .cta:hover, footer .cta:focus {
  background: var(--vintage-yellow);
  color: var(--primary);
}
footer address {
  font-style: normal;
  font-size: 1rem;
  margin-top: 12px;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 0;
}
footer address a {
  color: #fffbe6;
  text-decoration: underline;
}
@media (max-width: 800px) {
  footer .content-wrapper { flex-direction: column; gap: 20px; align-items: flex-start; }
}


/* === BUTTONS & CTA === */
.cta {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.01rem;
  box-shadow: 0 0 0 #fff;
  padding: 10px 26px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.12s, box-shadow 0.17s;
  outline: none;
  margin-top: 2px;
  margin-bottom: 2px;
  letter-spacing: 0.03em;
  display: inline-block;
}
.cta:hover, .cta:focus {
  background: var(--vintage-red);
  color: #fff;
  box-shadow: 0 2px 9px #e3ab637c;
}

/* Accessibility */
.cta:active {
  box-shadow: 0 0 0 2px var(--primary);
}

/* === FEATURE ICONS === */
.feature-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.feature-icons img {
  width: 54px; height: 54px;
  background: #fffdfa;
  border-radius: 50%;
  box-shadow: 0 2px 5px #ded1b647;
  border: 2.5px solid #f7e3ad;
  padding: 5px;
  transition: transform 0.19s;
}
.feature-icons img:hover, .feature-icons img:focus {
  transform: rotate(-8deg) scale(1.07);
}
@media (max-width: 520px) {
  .feature-icons img { width: 40px; height: 40px; }
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  background: #fffbe6;
  border-radius: var(--radius);
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px 0 #fbe9992a;
  border: 1.5px solid #f7e3ad;
  font-size: 1.11rem;
  color: var(--primary);
  max-width: 700px;
  transition: box-shadow 0.18s, background 0.16s;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.12rem;
  padding: 0;
  margin-right: 18px;
  color: var(--text-dark);
  line-height: 1.4;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: var(--vintage-brown);
  font-size: 0.98rem;
  white-space: nowrap;
  margin-left: 10px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  background: var(--vintage-yellow);
  box-shadow: 0 8px 24px #e3ab6360;
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 11px; }
  .testimonial-card blockquote { margin-right: 0; }
}


/* === LISTS === */
ul, ol {
  list-style-position: outside;
  margin-left: 1.18em;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
ul ul, ol ol, ul ol, ol ul {
  margin-left: 1.44em;
  margin-bottom: 0;
}
li strong { font-weight: 700; color: var(--vintage-red); }


/* === FORM (if present) === */
input, textarea, select {
  background: #fffbe6;
  border: 1.6px solid #E3AB63;
  border-radius: var(--radius);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
  width: 100%;
  outline: none;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}
label {
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

/* === UTILS: GRID STYLING MANDATE === */
/*
.section { Already handled above }
.card-container { Already handled above }
.card { Already handled above }
.content-grid { Already handled above }
.text-image-section { Already handled above }
.testimonial-card { Already handled above }
.feature-item { see below }
*/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* === SPACING & WHITE SPACE === */
.section, .card, .testimonial-card, .card-container, .content-grid,
.text-section, .feature-item {
  margin-bottom: 20px;
}
@media (max-width: 650px) {
  .section, .card, .testimonial-card, .card-container, .content-grid, .feature-item {
    margin-bottom: 14px;
  }
}


/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #fffbe6;
  color: var(--primary);
  box-shadow: 0 2px 14px #947f3f3a;
  border: 2px solid #f7e3ad;
  border-radius: 18px;
  padding: 24px 24px 18px 24px;
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
  z-index: 11111;
  min-width: 280px;
  max-width: 530px;
  font-size: 1rem;
  animation: banner-slide-in 0.5s cubic-bezier(.63,.15,.14,.94);
}
@keyframes banner-slide-in {
  from { transform: translateX(-50%) translateY(60px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-banner.hide {
  display: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  padding: 8px 18px;
  margin-right: 4px;
  font-size: 0.97rem;
  transition: background 0.16s, color 0.14s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--vintage-green);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--vintage-blue);
  color: #fffbe6;
}
.cookie-btn.reject {
  background: var(--vintage-red);
  color: #fffbe6;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b94824; color: #fffbe6;
}
.cookie-btn.settings {
  background: var(--vintage-orange);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--vintage-yellow);
  color: var(--primary);
}

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 11px 14px 11px;
    max-width: 92vw;
    gap: 12px;
  }
  .cookie-banner .cookie-buttons { gap: 7px; }
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: #23495b60;
  z-index: 11112;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fffbe6;
  padding: 32px 38px 18px 38px;
  border-radius: 18px;
  box-shadow: 0 2px 20px #69533e40;
  min-width: 290px;
  max-width: 470px;
  color: var(--primary);
  animation: modal-fadein 0.33s cubic-bezier(.72,.01,.39,.99);
  font-size: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
@keyframes modal-fadein {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal .close-modal {
  position: absolute;
  right: 24px; top: 18px;
  background: var(--vintage-red);
  color: #fff;
  border: none;
  font-size: 1.44rem;
  border-radius: 8px;
  padding: 2px 12px 3px 12px;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--vintage-orange);
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-cat label {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-cat input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--accent);
}
.cookie-cat .switch {
  position: relative;
  width: 44px;
  height: 26px;
  display: inline-block;
}
.cookie-cat .switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-cat .slider {
  position: absolute;
  cursor: pointer;
  top: 2px; left: 0;
  right: 0; bottom: 1px;
  background-color: #e6dfa3;
  border-radius: 18px;
  transition: .2s;
}
.cookie-cat .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 2px; bottom: 2.3px;
  background-color: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 2px 4px #e3ab6337;
}
.cookie-cat .switch input:checked + .slider {
  background-color: var(--accent);
}
.cookie-cat .switch input:checked + .slider:before {
  transform: translateX(17px);
}
.cookie-cat .cat-always-on {
  color: var(--vintage-brown);
  font-weight: 700;
  padding-left: 15px;
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 22px 8vw 14px 8vw;
    min-width: 160px;
    max-width: 97vw;
    font-size: 0.97rem;
  }
  .cookie-cat label { font-size: 0.98rem; }
  .cookie-modal .close-modal { right: 7px; top: 7px; }
}

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.card, .testimonial-card, .card-container .card, .section {
  transition: box-shadow 0.19s, background 0.16s, border 0.19s;
}
.card:hover, .card:focus-within {
  background: var(--vintage-yellow);
  box-shadow: 0 3px 15px #ead19560;
  border-color: var(--accent);
}

/* === ACCESSIBILITY & FOCUS === */
a:focus, .cta:focus, .cookie-btn:focus, .cookie-modal .close-modal:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === Retro Patterns for Decor (optional) === */
.section:before {
  content: "";
  display: block;
  position: absolute;
  top: -13px; left: 22px;
  width: 44px; height: 12px;
  background: var(--retro-pattern);
  border-radius: 6px 6px 0 0;
  opacity: 0.7;
  z-index: 0;
}
@media (max-width: 700px) {
  .section:before { display: none; }
}

/* === CUSTOM SCROLLBAR (subtle) === */
::-webkit-scrollbar {
  width: 10px;
  background: #fbe999ae;
}
::-webkit-scrollbar-thumb {
  background: #e3ab6380;
  border-radius: 17px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vintage-brown);
}

/* === SPECIAL CLASSES === */
.text-section {
  background: #fffdfa;
  border-radius: var(--radius);
  padding: 16px 16px 13px 16px;
  border-left: 5px solid #e3ab63cc;
  box-shadow: 0 0px 14px #fbe99912;
}

ul.contact-info li {
  display: flex;
  align-items: center;
  gap: 13px;
}
ul.contact-info li img {
  width: 28px; height: 28px;
}

/* === RESPONSIVE TYPOGRAPHY & SPACING === */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.13rem; }
  .footer-nav { gap: 10px; }
}

/* Prevent overlap everywhere */
*, *:before, *:after {
  box-sizing: border-box !important;
}

/* === END OF MAIN CSS === */
