/* ============================ CSS 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 {
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: #F5F8FA;
  color: #23405C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

a {
  color: #23405C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B6C2CE;
  outline: none;
}

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

/* ==================== BRAND TYPOGRAPHY ======================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@700&family=Montserrat:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: #23405C;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 { font-size: 1.3rem; margin-bottom: 12px; }
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #36495B;
  margin-bottom: 18px;
  font-weight: 500;
  line-height: 1.4;
}

p, ul, ol, li {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #23405C;
  line-height: 1.7;
}

strong {
  color: #23405C;
  font-weight: 700;
}

/* ===================== CONTAINER & LAYOUT =============== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1160px;
  display: flex;
  flex-direction: column;
}

.content-wrapper, .text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===================== SECTIONS & SPACING =============== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(35,64,92,0.07);
}
section {
  margin-bottom: 40px;
  padding: 32px 0 0 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  padding: 28px 22px;
  border-radius: 16px;
  box-shadow: 0 3px 18px 0 rgba(35,64,92,0.15);
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 10px 32px 0 rgba(35,64,92,0.18);
}

.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;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F5F8FA;
  border-left: 5px solid #23405C;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(35,64,92,0.09);
  min-width: 240px;
  max-width: 480px;
  color: #23405C;
  font-size: 1.08rem;
  transition: transform 0.16s, box-shadow 0.18s;
}
.testimonial-card p {
  color: #23405C;
  font-size: 1rem;
  margin-bottom: 3px;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: #36495B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.014);
  box-shadow: 0 6px 24px 0 rgba(35,64,92,0.15);
}

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

/* ===================== FLEXBOX UTILITIES =============== */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= BRAND BUTTONS ===================== */
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #23405C;
  color: #fff;
  border-radius: 22px;
  padding: 12px 28px;
  font-size: 1.11rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid #23405C;
  box-shadow: 0 2px 8px 0 rgba(35,64,92,0.10);
  letter-spacing: 0.04em;
  margin-top: 12px;
  margin-bottom: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.20s, border 0.18s, transform 0.14s;
  position: relative;
  overflow: hidden;
}
.cta-button:hover, .cta-button:focus {
  background: #fff;
  color: #23405C;
  border: 2px solid #B6C2CE;
  box-shadow: 0 6px 24px 0 rgba(35,64,92,0.19);
  transform: translateY(-2px) scale(1.03);
}

button, .button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 12px;
  padding: 8px 24px;
  background: #B6C2CE;
  color: #23405C;
  border: 2px solid #B6C2CE;
  font-weight: 600;
  margin-right: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1.5px 4px 0 rgba(35,64,92,0.08);
  transition: background 0.19s, color 0.19s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #23405C;
  color: #fff;
  border: 2px solid #23405C;
}

/* ==================== HEADER AND NAV =================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(35,64,92,0.09);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 50;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px 16px;
  gap: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  padding: 7px 0;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.17s;
  border-bottom: 2.5px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #B6C2CE;
  border-bottom: 2.5px solid #B6C2CE;
}

header img[alt='Borde Calan Immobilier'] {
  height: 41px;
  width: auto;
  margin-right: 14px;
}

/* Responsive Nav */
.mobile-menu-toggle {
  display: none;
  background: #23405C;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 100;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #B6C2CE;
  color: #23405C;
}

/* .mobile-menu -- fixed overlay + animation */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,64,92,0.96);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.65,.05,.36,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: #23405C;
  border-radius: 38px;
  font-size: 2.3rem;
  width: 55px;
  height: 55px;
  box-shadow: 0 2.5px 9px rgba(35,64,92,0.14);
  margin: 22px 30px 0 0;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #B6C2CE;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 36px;
  gap: 26px;
  width: 100%;
  padding-left: 42px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.34rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 2.5rem;
  letter-spacing: 0.03em;
  padding: 0 6px 0 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-bottom 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #B6C2CE;
  border-bottom: 2px solid #B6C2CE;
}

@media (max-width: 1025px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ======================= FOOTER ========================= */
footer {
  width: 100%;
  background: #eee;
  border-top: 2.5px solid #23405C;
  margin-top: 70px;
  padding: 0 0 16px 0;
  box-shadow: 0 -2px 8px 0 rgba(35,64,92,0.04);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 32px 16px 0 16px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  color: #23405C;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B6C2CE;
  border-bottom: 2px solid #23405C;
}
footer p {
  font-size: 0.96rem;
  color: #36495B;
}

/* ===================== CONTENT & LISTS ======================= */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  font-size: 1rem;
}
ul li img, ol li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.text-section h3 {
  margin-top: 18px;
}

@media (min-width: 900px) {
  .content-wrapper, .text-section {
    gap: 44px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .section, section { padding: 26px 0 0 0; }
  .container { padding: 0 8px; }
  .testimonial-card { min-width: unset; max-width: 100%; }
  .footer-nav { gap: 12px; }
}

/* =================== COOKIE CONSENT (BANNER & MODAL) =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  color: #23405C;
  box-shadow: 0 -3px 21px 0 rgba(35,64,92,0.22);
  padding: 20px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 2px;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 5px;
}
.cookie-banner .cookie-btn-accept {
  background: #23405C;
  color: #fff;
  border: 2px solid #23405C;
  border-radius: 22px;
  padding: 11px 26px;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 7px;
  transition: background 0.16s, color 0.15s, border 0.13s;
}
.cookie-banner .cookie-btn-accept:focus, .cookie-banner .cookie-btn-accept:hover {
  background: #fff;
  color: #23405C;
}
.cookie-banner .cookie-btn-reject {
  background: #fff;
  color: #23405C;
  border: 2px solid #B6C2CE;
  border-radius: 22px;
  padding: 11px 24px;
  font-weight: 600;
}
.cookie-banner .cookie-btn-reject:hover, .cookie-banner .cookie-btn-reject:focus {
  background: #B6C2CE;
  color: #23405C;
}
.cookie-banner .cookie-btn-settings {
  background: transparent;
  color: #23405C;
  border: 2px solid #23405C;
  border-radius: 22px;
  padding: 10px 21px;
  margin-left: 7px;
  font-weight: 600;
  transition: background 0.14s, color 0.13s;
}
.cookie-banner .cookie-btn-settings:hover, .cookie-banner .cookie-btn-settings:focus {
  background: #23405C;
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 3100;
  background: rgba(35,64,92,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: fadeIn .33s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 36px 0 rgba(35,64,92,0.19);
  padding: 37px 38px 26px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 290px; max-width: 420px;
}
.cookie-modal-content h2, .cookie-modal-content h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type='checkbox'] {
  accent-color: #23405C;
  width: 18px; height: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: transparent;
  color: #23405C;
  font-size: 1.9rem;
  border-radius: 22px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #B6C2CE;
  color: #fff;
}
@media (max-width: 560px) {
  .cookie-modal-content { padding: 21px 12px 16px 12px; }
}

/* ===================== GEOMETRIC/STRUCTURED SHAPES =================== */
.section, .card, .testimonial-card, .cookie-modal-content {
  border-radius: 14px;
  /* extra geometric container shape */
}
.cta-button, .cookie-banner .cookie-btn-accept,
.cookie-banner .cookie-btn-settings, .cookie-banner .cookie-btn-reject {
  border-radius: 22px;
}

ul li:before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: #B6C2CE;
  margin-right: 10px;
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  vertical-align: middle;
}
ul li img + *:not(img) {
  margin-left: 2px;
}

/* ============== MICRO-INTERACTIONS & HOVER ANIMATIONS ========== */
.cta-button, .card, .testimonial-card, .main-nav a, .footer-nav a {
  transition: box-shadow 0.16s, background 0.14s, color 0.14s, transform 0.13s;
}

.cta-button:active {
  background: #B6C2CE;
  color: #23405C;
  box-shadow: 0 4px 18px 0 rgba(182,194,206,0.21);
}

.card:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.013);
  box-shadow: 0 10px 32px 0 rgba(35,64,92,0.18);
}

/* ============== GEOMETRIC/ANGULAR FONTS (Montserrat, Lora headline) ========== */

h1, h2, h3, .cta-button, .main-nav a, .mobile-nav a, .footer-nav a {
  text-transform: none;
  letter-spacing: .018em;
  font-family: 'Lora', 'Montserrat', Arial, sans-serif;
}

/* ================ RESPONSIVE FLEX & MOBILE STYLE ============ */
@media (max-width: 768px) {
  .container {
    max-width: 97vw;
    padding: 0 6px;
  }
  .section, section { padding: 18px 0 0 0; }
  .card-container, .content-grid {
    gap: 12px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 100%;
    padding: 14px;
  }
  .main-nav, .footer-nav {
    gap: 12px;
  }
  h1 { font-size: 1.65rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.11rem; }
  h2 { font-size: 0.98rem; }
  .container { padding: 0 2.5vw; }
}

/* ============== ACCESSIBLE FOCUS VISIBLE ========== */
:focus {
  outline: 2px dashed #23405C;
  outline-offset: 3px;
}

/* ============== SPACING FIXES & FLEX GAPS ========== */
.section, section {
  margin-bottom: 60px !important;
}
.card-container, .content-grid, .testimonial-cards {
  gap: 24px !important;
}
.content-wrapper {
  gap: 22px;
}
.text-section {
  gap: 17px;
}

/* ========== FORM FIELDS (for contact forms, estimation) ========== */
input[type='text'], input[type='email'], input[type='tel'], textarea, select {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid #B6C2CE;
  background: #F5F8FA;
  outline: none;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #23405C;
}

/* ========== Hide visually but present for screen readers ========== */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  top: auto;
  overflow: hidden;
}

/* ======================== STRUCTURED/GEOMETRIC HIERARCHY =============== */
section, .section {
  border-radius: 16px 44px 12px 26px;
  box-shadow: 0 2px 16px 0 rgba(35,64,92,0.06);
  background: #fff;
  padding: 40px 20px;
}

/* slight structural accent bar left on important sections */
.section, section {
  border-left: 6px solid #23405C;
}

/* Override for fine-tuning on cards inside sections to avoid double border */
.section .card, section .card, .card {
  border-left: none;
}
.testimonial-card {
  border-left: 5px solid #B6C2CE;
  background: #F5F8FA;
}

/* =================== Print Styles for Clean Export =================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .section, .card, .testimonial-card {
    box-shadow: none !important; border-radius: 0 !important;
  }
}

/* =================== OVERRIDES FOR STRICT FLEX LAYOUT - CRITICAL =================== */
/* Never use grid (forbidden) */
/* Always use display: flex for multi-item containers */
/* All content grids/layouts are in flex, no overlap due to enforced padding & gap */

/* ================= THE END =================== */
