/* === CSS RESET & NORMALIZE (Mobile-first) === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F1EFEA;
  color: #2E3C5D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}
a {
  color: #CF6C1C;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E68C49;
}

/* === BRAND VARIABLES === */
:root {
  --primary: #2E3C5D;
  --primary-dark: #243056;
  --secondary: #F1EFEA;
  --secondary-light: #FFFFFF;
  --accent: #CF6C1C;
  --accent-dark: #E68C49;
  --neutral: #E7D7C5;
  --shadow: 0 2px 12px rgba(46, 60, 93, 0.07);
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --text-dark: #2E3C5D;
  --text-light: #FFFFFF;
}

/* === CONTAINER AND GENERIC LAYOUTS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 992px) {
  .section {
    padding: 56px 32px;
    margin-bottom: 80px;
  }
}


/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 0.5em;
  font-weight: 700;
  letter-spacing: 0.005em;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.1;
}
@media (min-width: 600px) {
  h1 { font-size: 3rem;}
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}
.lead {
  font-size: 1.15rem;
  color: var(--primary);
  font-family: var(--font-body);
  margin-bottom: 1em;
  font-weight: 400;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1.25em;
}
strong {
  font-weight: 700;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 1.2em;
  color: var(--text-dark);
}
li {
  margin-bottom: 0.7em;
}


/* === BUTTON, CTA, and INTERACTIVE === */
.cta-btn,
button[type="submit"],
.mobile-menu-toggle,
.cookie-banner-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 26px;
  color: var(--text-light);
  background: var(--accent);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 2px 6px rgba(207, 108, 28, 0.13);
  cursor: pointer;
  transition: background 0.25s, transform 0.13s, box-shadow 0.2s;
  margin-top: 8px;
  margin-bottom: 8px;
  outline: none;
  letter-spacing: 0.03em;
}
.cta-btn:hover,
.cta-btn:focus,
button[type="submit"]:hover,
button[type="submit"]:focus,
.cookie-banner-btn:hover,
.cookie-banner-btn:focus,
.mobile-menu-toggle:hover {
  background: var(--accent-dark);
  color: var(--text-light);
  transform: translateY(-2px) scale(1.027);
  box-shadow: 0 6px 18px rgba(207, 108, 28, 0.11);
}
button[type="submit"] {
  margin-top: 18px;
}


/* === HEADER & NAVIGATION === */
header {
  background: var(--secondary-light);
  border-bottom: 1.5px solid var(--neutral);
  box-shadow: 0 2px 8px rgba(46, 60, 93, 0.07);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
header a img {
  width: 140px;
  height: auto;
  border-radius: 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
nav a {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1.04rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: var(--accent);
  color: var(--secondary-light);
}

/* --- Hide mobile menu button on desktop --- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  padding: 0 16px;
  background: none;
  color: var(--accent);
  border-radius: var(--radius-md);
  border: none;
  transition: background 0.2s;
  margin-left: 12px;
  margin-bottom: 2px;
  cursor: pointer;
  z-index: 201;
}
.mobile-menu-toggle:focus {
  background: var(--neutral);
}
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- Main navigation: hidden behind mobile menu on mobile --- */
@media (max-width: 991px) {
  header nav {
    display: none;
  }
}


/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46, 60, 93, 0.93);
  transform: translateX(-100%);
  z-index: 300;
  transition: transform 0.38s cubic-bezier(.69,.06,.57,1.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 28px 28px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent);
  color: #FFF;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 310;
  cursor: pointer;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 70px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #FFF;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.22s, color 0.22s;
  text-align: left;
  width: 100%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #FFF;
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === MAIN SECTIONS, FLEX LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px 24px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px rgba(46, 60, 93, 0.11);
  transform: translateY(-3px) scale(1.015);
}
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --- Feature grid --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px 20px;
  min-width: 220px;
  flex: 1 1 180px;
  font-size: 1rem;
  color: var(--primary-dark);
  transition: box-shadow 0.18s;
}
.feature-grid li img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.feature-grid li strong {
  color: var(--accent);
  font-size: 1.08rem;
}
.feature-grid li:hover {
  box-shadow: 0 6px 18px rgba(46,60,93,0.09);
}


/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #FFF;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(46, 60, 93, 0.07);
  color: var(--primary);
  max-width: 650px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-style: italic;
  margin-bottom: 0;
  text-align: center;
}
.testimonial-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 1rem;
  font-style: normal;
  font-family: var(--font-display);
}
.testimonial-footer strong {
  color: var(--accent);
}
@media (min-width: 780px) {
  .testimonial-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
  }
}

/* === TEXT-SECTIONS & MISC === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: var(--primary-dark);
  align-items: flex-start;
}
.text-section img {
  display: inline;
  vertical-align: middle;
  margin-right: 8px;
  width: 20px;
  height: 20px;
}

.team-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 22px;
}
.team-list li {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary-dark);
}

.confirmation-message {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

/* === FORMS === */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 2px;
  background: var(--secondary-light);
  border-radius: var(--radius-md);
}
label {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 1rem;
}
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--neutral);
  background: #FFFDF8;
  color: var(--primary-dark);
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(207, 108, 28, 0.13);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #FFF;
  padding: 40px 0 12px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
}
footer a img {
  width: 54px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
footer nav a {
  color: #FFF;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: background .15s, color .15s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--accent);
  color: #FFF;
}
footer .text-section {
  color: #FFF;
  font-size: 1rem;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #FFF8F1;
  color: var(--primary-dark);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -2px 16px rgba(46, 60, 93, 0.10);
  z-index: 5000;
  padding: 22px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.01rem;
  animation: cookie-pop 0.7s 0.05s cubic-bezier(.24,1.22,.41,.95);
}
@keyframes cookie-pop {
  0% { transform: translateY(85px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner-btn {
  font-size: 1rem;
  font-family: var(--font-display);
  background: var(--accent);
  color: #FFF;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  margin: 2px 2px 2px 0;
  transition: background 0.18s, transform 0.08s;
}
.cookie-banner-btn:hover,
.cookie-banner-btn:focus {
  background: var(--accent-dark);
}
.cookie-banner-btn.secondary {
  background: #E7D7C5;
  color: var(--primary-dark);
}
.cookie-banner-btn.secondary:hover,
.cookie-banner-btn.secondary:focus {
  background: #CF6C1C;
  color: #FFF;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 60, 93, 0.38);
  z-index: 5100;
  align-items: center;
  justify-content: center;
  animation: cookie-fade-in 0.28s;
}
.cookie-modal-overlay.open { display: flex; }
@keyframes cookie-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal {
  background: #FFF8F1;
  color: var(--primary-dark);
  padding: 34px 22px 28px 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 32px rgba(46, 60, 93, 0.12);
  width: 96vw;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.35s cubic-bezier(.65,.14,.44,1.01);
  position: relative;
}
@keyframes cookie-modal-in {
  from { transform: scale(0.84); opacity: 0.3; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 18px;
  border: none;
  background: #FFF5E5;
  color: var(--accent);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
  color: #FFF;
}

.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 8px 0;
  border-bottom: 1px solid #E7D7C5;
}
.cookie-pref-item:last-child { border-bottom: none; }
.cookie-pref-label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary-dark);
}
.cookie-toggle {
  width: 36px; height: 22px;
  background: #E7D7C5;
  border-radius: 18px;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--accent);
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 2px;
  width: 18px; height: 18px;
  background: #FFF;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 2px 8px rgba(46,60,93,0.09);
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-slider {
  left: 15px;
}
.cookie-pref-item .cookie-toggle[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 991px) {
  .container {
    padding-inline: 12px;
  }
  .content-wrapper {
    gap: 19px;
  }
  .section {
    padding: 28px 6px;
  }
}
@media (max-width: 780px) {
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.38rem; }
}

/* ==== MISCELLANEOUS & UTILITY ==== */
::-webkit-input-placeholder { color: #A79383 !important; }
::-moz-placeholder { color: #A79383 !important; }
:-ms-input-placeholder { color: #A79383 !important; }
::placeholder { color: #A79383 !important; }

.hidden { display: none !important; }

/* GIVE SPACE BETWEEN CARDS & SECTIONS */
.card, .testimonial-card, .feature-grid li, .team-list li {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px !important;
}

/* PREVENT OVERLAPPING: no absolute except decorative menu icons */

/* === FOCUS OUTLINE FOR A11Y === */
a:focus, button:focus, input:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(207,108,28,0.18);
  outline: none;
}

/* === SOFT SHADOWS & CURVES === */
.card, .testimonial-card, .info-card, .feature-item, .cookie-modal, .confirmation-message, .section {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* === TABLES (for RGPD, CGU, etc) === */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #FFF;
  margin-bottom: 1.5em;
  box-shadow: var(--shadow);
}
th, td {
  border-bottom: 1px solid #ece6de;
  padding: 13px 10px;
  font-size: 1rem;
  color: var(--primary-dark);
}
th { background: #F8F4ED; }

/* Feature item spacing for future expansions */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: #FFFDF8;
  box-shadow: var(--shadow);
}

/* === UTILITY CLASSES === */
.flex {
  display: flex;
  gap: 16px;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.mb-20 { margin-bottom: 20px; }

/***********************************************************
 * STRICTLY NO display: grid OR columns used anywhere!     *
 ***********************************************************/
