/* RESET & BASELINE ------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #fff;
  color: #22253f;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #313467;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.76,.01,.65,1);
}
a:hover, a:focus {
  color: #E94E3F;
  outline: none;
}

ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 0.5em;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}

button, .btn-primary {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 8px;
  padding: 0.75em 2em;
  font-weight: 700;
  font-size: 1.0625rem;
  background: #313467;
  color: #fff;
  transition: background 0.2s cubic-bezier(.76,.01,.65,1), box-shadow 0.2s cubic-bezier(.76,.01,.65,1), color 0.2s cubic-bezier(.76,.01,.65,1), transform 0.2s;
  box-shadow: 0 2px 12px 0 rgba(49,52,103,0.07);
  margin: 8px 0;
  display: inline-block;
  min-width: 180px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus, button:hover, button:focus {
  background: #E94E3F;
  color: #fff;
  box-shadow: 0 4px 20px 0 rgba(49,52,103,0.11);
  transform: translateY(-2px) scale(1.03);
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #313467;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.015em;
  color: #313467;
}
h3 {
  font-size: 1.375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  margin-bottom: 6px;
}
h4 {
  font-size: 1.0625rem;
  font-weight: 700;
}

p, .subheadline, .tagline {
  margin-bottom: 14px;
  font-size: 1.077rem;
}
.tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #E94E3F;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.19rem;
}
.subheadline {
  color: #313467;
}

blockquote {
  font-style: italic;
  background: #f5f5f7;
  color: #22253f;
  border-left: 6px solid #FCD462;
  margin: 0 0 1em 0;
  padding: 14px 24px 14px 18px;
  border-radius: 12px;
  font-size: 1.1rem;
}


/* STRUCTURE & LAYOUT ---------------------- */
.container {
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

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

.card-container, .card-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(49,52,103,0.07);
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
  background: #fffbe7;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 12px 0 rgba(49,52,103,0.09);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 340px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(49,52,103,0.06);
  padding: 26px 22px 18px 22px;
  max-width: 302px;
  min-width: 220px;
  flex: 1 1 220px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #FCD46233;
  padding: 6px;
}

/* HERO BANNER ------------------------------- */
.hero {
  background: #FCD462;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  border-bottom: 10px solid #313467;
  padding-top: 44px;
  padding-bottom: 32px;
  margin-bottom: 44px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 240px;
}
.hero h1 {
  color: #313467;
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero .btn-primary {
  margin-top: 12px;
}

/* HEADER ----------------------------------- */
header {
  background: #fff;
  border-bottom: 2.5px solid #FCD462;
  z-index: 101;
  position: relative;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 26px;
}
header img {
  max-height: 52px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.main-nav a {
  padding: 8px 18px;
  border-radius: 16px 16px 4px 4px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FCD462;
  color: #313467;
  box-shadow: 0 2px 10px 0 rgba(249, 205, 68,0.17);
}

.mobile-menu-toggle {
  display: none;
  background: #313467;
  color: #fff;
  font-size: 2rem;
  padding: 8px 18px;
  border-radius: 10px;
  margin-left: 12px;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 220;
}

/* MOBILE MENU ------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #313467;
  color: #fff;
  z-index: 5000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 42px;
  min-width: 210px;
  max-width: 98vw;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FCD462;
  font-size: 2.3rem;
  padding: 16px 0 6px 0;
  margin-top: 18px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 44px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FCD462;
  padding: 12px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid #444874;
  transition: color .19s, font-weight .19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  font-weight: 800;
}

/* FOOTER ----------------------------------- */
footer {
  background: #313467;
  color: #fff;
  padding: 0 0 18px 0;
  margin-top: 48px;
  border-top: 4px solid #FCD462;
}
.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 16px 0;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.footer-nav a {
  color: #FCD462;
  transition: color .18s;
  border-radius: 6px;
  padding: 2px 10px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E94E3F;
  background: #fff;
}
.footer-details {
  font-size: 0.95rem;
  color: #fffbe7;
  margin-top: 10px;
  display: flex;
}

footer .btn-primary {
  background: #E94E3F;
  color: #fff;
  box-shadow: none;
  border-radius: 7px;
}
footer .btn-primary:hover {
  background: #fff;
  color: #E94E3F;
}

/* COOKIE CONSENT BANNER ---------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe7;
  color: #313467;
  box-shadow: 0 -2px 24px 0 rgba(49,52,103,0.12);
  z-index: 9999;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  animation: bannerDrop 0.5s cubic-bezier(.45,.03,.23,1.12);
}
@keyframes bannerDrop {
  0% { transform: translateY(90px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-banner button, .cookie-banner .btn-primary {
  font-size: 0.98rem;
  min-width: 110px;
  padding: 0.63em 1.3em;
  border-radius: 10px;
  background: #313467;
  color: #fff;
  border: none;
}
.cookie-banner .btn-primary {
  background: #E94E3F;
}
.cookie-banner button:hover, .cookie-banner .btn-primary:hover {
  background: #FCD462;
  color: #313467;
}

/* COOKIE SETTINGS MODAL ---------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(49,52,103,0.38);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #313467;
  border-radius: 16px;
  box-shadow: 0 6px 36px 0 rgba(49,52,103,0.13);
  padding: 32px 26px 22px 26px;
  min-width: 320px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  font-size: 1.08rem;
  animation: modalPop 0.14s cubic-bezier(.5,1.8,.15,.87);
}
@keyframes modalPop {
  0% { transform: scale(.84); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  color: #E94E3F;
  border: none;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0 8px 0;
  font-weight: 600;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  background: #22253f11;
  border-radius: 16px;
  transition: background .15s;
}
.cookie-switch input { display: none; }
.cookie-slider {
  position: absolute;
  left: 3px; top: 2.8px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #FCD462;
  transition: left 0.15s, background 0.15s;
  box-shadow: 0 1px 3px 0 rgba(49,52,103,0.06);
}
.cookie-switch input:checked + .cookie-slider {
  left: 23px;
  background: #E94E3F;
}
.cookie-category[aria-disabled="true"], .cookie-switch[aria-disabled="true"] {
  opacity: .69;
}

/* ABOUT / PAGE STRUCTURES -------------------------- */
.text-section ul {
  margin-top: 3px;
  margin-left: 20px;
}
.text-section li {
  font-size: 1.05rem;
  color: #313467;
}

.feature-grid {
  flex-wrap: wrap;
  gap: 26px;
  align-items: stretch;
}

/* Recette Contact List */
.text-section ul img {
  vertical-align: middle;
  margin-right: 8px;
  width: 28px;
  height: 28px;
}
.text-section a {
  color: #E94E3F;
  font-weight: 700;
  text-decoration: underline;
  transition: color .19s;
}
.text-section a:hover {
  color: #313467;
}

/* TESTIMONIAL CARD OVERRIDES ---------------------- */
.testimonial-card {
  background: #fff;
  border: 2px solid #FCD462;
  color: #22253f;
  font-size: 1.11rem;
  font-family: 'Roboto', Arial, sans-serif;
  min-width: 230px;
  box-shadow: 0 4px 24px 0 rgba(252,212,98,0.09);
  margin-bottom: 20px;
}
.testimonial-card strong {
  color: #313467;
}
.testimonial-card p {
  margin: 0 0 0 6px;
  font-weight: 600;
  font-size: 1rem;
}

/* RESPONSIVE DESIGN ------------------------------ */
@media (max-width: 1169px) {
  .container {
    max-width: 97vw;
    padding: 0 10px;
  }
  .card-container, .feature-grid, .card-grid {
    gap: 18px;
  }
}
@media (max-width: 990px) {
  .card-grid, .feature-grid {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .footer-flex, .header-flex {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-flex > *, .header-flex > * {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hero h1 {
    font-size: 2.05rem;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-flex {
    gap: 6px;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-nav {
    gap: 10px;
    flex-direction: column;
    font-size: 0.99rem;
  }
  .card-grid, .feature-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-item, .card {
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 36px;
  }
  .hero {
    margin-bottom: 26px;
    padding-top: 36px;
    padding-bottom: 17px;
    border-width: 7px;
  }
}
@media (max-width: 430px) {
  html {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 1.33rem;
  }
  .btn-primary, button {
    padding: 0.65em 1em;
    font-size: 0.97rem;
    min-width: 130px;
  }
}

/* GEOMETRIC DECOR (OPTIONAL, NOT ABSOLUTE) --------- */
.hero::after {
  display: block;
  content: "";
  width: 90px;
  height: 90px;
  position: absolute;
  right: 30px;
  top: 30px;
  background: #E94E3F44;
  border-radius: 20% 70% 46% 60% / 59% 53% 36% 60%;
  z-index: 1;
  opacity: 0.17;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero::after { display:none; }
}

/* OVERRIDES FOR COOKIE CONSENT AND MODAL BUTTONS */
.cookie-banner .btn-primary {
  background: #E94E3F;
  color: #fff;
  font-size: 1rem;
}
.cookie-banner .btn-primary:hover {
  background: #313467;
  color: #fff;
}

/* ICONS LIST */
ul li img {
  vertical-align: middle;
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

/* Utilitaires/classes utilitaires ----------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

/* SHADOWS & HOVER EFFECTS ------------------------------------ */
.card, .feature-item {
  border: 2px solid transparent;
  transition: box-shadow 0.18s, border-color 0.16s, transform 0.2s;
}
.card:hover, .feature-item:hover {
  border-color: #FCD462;
  box-shadow: 0 8px 32px 0 rgba(49,52,103,0.14);
  transform: translateY(-5px) scale(1.015);
}

/* SELECTION ----------------------------- */
::selection {
  color: #fff;
  background: #313467;
}

/* INPUTS ---------------------- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #eee;
  padding: 10px 14px;
  background: #f7f7fd;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px 0 rgba(49,52,103,0.07);
  transition: border-color .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FCD462;
  outline: none;
}

label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 7px;
}

/* FORMS BUTTONS */
form .btn-primary {
  min-width: 154px;
}

/* ANIMATIONS ------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card, .feature-item, .testimonial-card {
  animation: fadeIn 0.35s cubic-bezier(.42,1.25,.25,1.3);
}

/* ENSURE TOUCH & ACCESSIBILITY */
.btn-primary, button, .mobile-nav a, .footer-nav a, .main-nav a {
  touch-action: manipulation;
  user-select: none;
}

/* -------------- END -------------- */
