/*=======================
  CSS RESET & BASE STYLES
========================*/
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFFFFF;
  color: #17304D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
a {
  text-decoration: none;
  color: #17304D;
  transition: color 0.2s cubic-bezier(.68,.01,.59,.99);
}
a:hover, a:focus {
  color: #CB3C15;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  line-height: 1.25;
  outline: none;
  border: none;
  background: none;
}
strong {
  font-weight: 600;
}

/*============================================
  BRAND TYPOGRAPHY & GEOMETRIC STRUCTURE FONTS
=============================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: 0.03em;
  color: #17304D;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
p, li, span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #17304D;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #17304D;
  font-weight: 400;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

/*==================
      CONTAINERS
===================*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/*==========================================
   HEADER & MAIN NAVIGATION (DESKTOP FIRST)
==========================================*/
header {
  background: #17304D;
  box-shadow: 0 2px 10px rgba(23,48,77,0.07);
  position: relative;
  z-index: 101;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 30px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  background: #CB3C15;
  width: 0;
  margin: 4px auto 0 auto;
  transition: width 0.18s cubic-bezier(.23,.96,.57,.97);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 70%;
}
.btn-primary {
  background: #CB3C15;
  color: #fff;
  padding: 13px 30px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(23,48,77,0.09);
  cursor: pointer;
  border: none;
  display: inline-block;
  transition: background 0.18s cubic-bezier(.23,.96,.57,.97), box-shadow 0.21s;
  margin-left: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #17304D;
  color: #fff;
  box-shadow: 0 7px 22px rgba(23,48,77,0.13);
}
.link-arrow {
  color: #CB3C15;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.015em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: color 0.15s;
}
.link-arrow:after {
  content: '→';
  font-size: 1.1em;
  margin-left: 6px;
  transition: transform 0.18s cubic-bezier(.47,.28,.45,.97);
}
.link-arrow:hover:after, .link-arrow:focus:after {
  transform: translateX(4px);
}

/*============================
      HERO & SECTION STYLES
=============================*/
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.hero-section {
  background: #E5E6E8;
  padding-top: 40px;
  padding-bottom: 40px;
  border-bottom: 8px solid #CB3C15;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-section h1,
.hero-section .subheadline {
  color: #17304D;
}
.hero-section .btn-primary {
  margin-top: 15px;
}

/*============================
FLEX GEOMETRIC LAYOUT PATTERNS
=============================*/
.feature-grid, .feature-icons, .case-study-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 12px;
}
.feature-grid > div, .feature-icons > div, .case-study-summary > div {
  background: #fff;
  padding: 28px 24px;
  border-radius: 16px;
  border: 2.2px solid #E5E6E8;
  min-width: 220px;
  flex: 1 1 200px;
  max-width: 315px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 1.5px 16px 0 rgba(23,48,77,0.06);
  transition: box-shadow 0.18s, border-color 0.16s;
}
.feature-grid > div:hover, .feature-icons > div:hover, .case-study-summary > div:hover {
  border-color: #CB3C15;
  box-shadow: 0 7px 26px 0 rgba(23,48,77,0.12);
  z-index: 2;
}

/* CARDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(23,48,77,0.07);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1.5px solid #E5E6E8;
}

.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;
}

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

/* Testimonial Cards */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(23,48,77,0.07);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 250px;
  max-width: 340px;
  border: 2px solid #E5E6E8;
  margin-bottom: 20px;
  transition: box-shadow 0.13s, border-color 0.14s;
}
.testimonial-card:hover {
  border-color: #CB3C15;
  box-shadow: 0 8px 22px 0 rgba(23,48,77,0.16);
  z-index:1;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #17243E;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card span, .testimonial-card strong {
  color: #17304D;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card img[alt*='étoile'] {
  height: 20px;
  display: inline-block;
  margin-right: 2px;
}
.star-rating-summary {
  margin-top: 16px;
  font-size: 1.09rem;
  font-weight: 500;
  color: #17304D;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Contact snippets */
.contact-info-snippet, .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  background: #F8F9FB;
  border-radius: 10px;
  padding: 20px 18px;
  margin: 16px 0 24px 0;
  font-size: 1.03rem;
}
.contact-info > div, .contact-info-snippet > span, .contact-info-snippet img {
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-info-snippet img, .contact-info img {
  height: 20px;
}

.map-location, .operating-hours {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  background: #F8F9FB;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 1.01rem;
}

/*====================
    LISTS, OL/UL
=====================*/
ul {
  margin-bottom: 8px;
  margin-left: 0;
}
ul li {
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
  color: #17304D;
  line-height: 1.6;
}
ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  background: #CB3C15;
  width: 12px;
  height: 4px;
  border-radius: 2px;
  transform: translateY(-50%) skew(-18deg);
}
ol {
  padding-left: 20px;
  margin-bottom: 8px;
}
ol li {
  font-size: 1rem;
  margin-bottom: 7px;
  color: #17304D;
  line-height: 1.6;
}

/*==================
    FOOTER STYLES
===================*/
footer {
  background: #E5E6E8;
  border-top: 6px solid #CB3C15;
  padding: 38px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
footer img {
  height: 44px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin: 0 auto 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #17304D;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  text-transform: uppercase;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #CB3C15;
}
footer p {
  color: #17304D;
  font-size: 0.96rem;
}

/*==================================
MOBILE BURGER MENU (Off-canvas nav)
====================================*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 18px;
  background: #CB3C15;
  padding: 7px 15px;
  border-radius: 6px;
  color: #fff;
  font-size: 1.9rem;
  border: none;
  cursor: pointer;
  z-index: 9999;
  transition: background 0.17s, color 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #17304D;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #17304D;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.62,.01,.36,1.02);
  box-shadow: -6px 0 32px 0 rgba(23,48,77,0.77);
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 23px;
  background: #CB3C15;
  color: #fff;
  padding: 8px 15px;
  font-size: 1.7rem;
  border-radius: 6px;
  border: none;
  z-index: 20002;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #E5E6E8;
  color: #CB3C15;
}
.mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 15px 0;
  width: 70vw;
  text-align: center;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(229,230,232,0.09);
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #CB3C15;
  color: #fff;
}

/* Hide desktop nav on small screens, show mobile menu toggle */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .btn-primary {
    display: none;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==============
   COOKIE BANNER
================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #17304D;
  color: #fff;
  z-index: 10050;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 24px 15px 20px 15px;
  box-shadow: 0 -2px 18px rgba(23,48,77,0.17);
  font-size: 1rem;
}
.cookie-banner p {
  margin: 0;
  font-family: 'Roboto', Arial;
  color: #fff;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-actions button {
  background: #CB3C15;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 7px;
  padding: 8px 25px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.13s;
}
.cookie-actions .cookie-settings {
  background: #E5E6E8;
  color: #17304D;
  border: 2px solid #CB3C15;
  padding: 8px 22px;
}
.cookie-actions .cookie-settings:hover, .cookie-actions .cookie-settings:focus {
  background: #CB3C15;
  color: #fff;
}
.cookie-actions button:hover, .cookie-actions button:focus {
  background: #17304D;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10060;
  inset: 0;
  background: rgba(23,48,77,0.31);
  transition: opacity 0.2s cubic-bezier(.33,1,.68,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  color: #17304D;
  border-radius: 17px;
  padding: 32px 30px;
  min-width: 320px;
  max-width: 92vw;
  box-shadow: 0 8px 35px 0 rgba(23,48,77,0.22);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: modalIn 0.28s cubic-bezier(.68,.01,.59,.99);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.93);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-modal .cookie-category {
  margin-bottom: 10px;
}
.cookie-modal .switch {
  width: 34px; height: 19px;
  background: #E5E6E8;
  border-radius: 12px;
  position: relative;
  transition: background 0.13s;
  flex-shrink: 0;
}
.cookie-modal .switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  top: 3px; left: 3px;
  width: 13px; height: 13px;
  background: #17304D;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-modal .switch input:checked + .slider {
  left: 17px; background: #CB3C15;
}
.cookie-modal .switch[disabled],
.cookie-modal .switch input:disabled + .slider {
  background: #ddd;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
}
.cookie-modal .cookie-modal-actions button {
  background: #CB3C15;
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .cookie-modal-actions button.secondary {
  background: #E5E6E8;
  color: #17304D;
}
.cookie-modal .cookie-modal-actions button.secondary:hover, .cookie-modal .cookie-modal-actions button.secondary:focus {
  background: #CB3C15;
  color: #fff;
}
.cookie-modal .cookie-modal-actions button:hover, .cookie-modal .cookie-modal-actions button:focus {
  background: #17304D;
  color: #fff;
}

/* Default: Hide cookie modal */
.cookie-modal-overlay {
  display: none;
}
.cookie-modal-overlay.open {
  display: flex !important;
}

/*==================
 MEDIA QUERIES
===================*/
@media (max-width: 992px) {
  header .container {
    gap: 12px;
    padding: 0 12px;
    min-height: 52px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .feature-icons, .case-study-summary {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 8px;
    max-width: 98vw;
  }
  .content-wrapper {
    gap: 12px;
  }
  .hero-section {
    padding: 30px 0 30px 0;
    border-bottom: 5px solid #CB3C15;
  }
  section {
    margin-bottom: 32px;
    padding: 22px 0 22px 0;
  }
  .feature-grid, .feature-icons, .case-study-summary, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div, .feature-icons > div, .case-study-summary > div {
    max-width: unset;
    min-width: 0;
    width: 100%;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .contact-info-snippet, .contact-info {
    gap: 12px 10px;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 11px;
    border-radius: 7px;
  }
  footer .container {
    gap: 16px;
    padding: 0 7px;
  }
  .footer-nav {
    gap: 10px;
  }
  .map-location, .operating-hours {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 5px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.37rem; }
  .btn-primary, .cookie-modal-actions button, .cookie-actions button { font-size: 0.98rem; padding: 8px 15px; }
  .cookie-modal { padding: 18px 12px; }
}

/*===============================
MICRO-INTERACTIONS & TRANSITIONS
===============================*/
.card, .feature-grid > div, .testimonial-card, .footer-nav a, .main-nav a, .btn-primary, .link-arrow, .mobile-nav a, .cookie-actions button, .cookie-modal-actions button {
  transition: box-shadow 0.17s cubic-bezier(.46,.6,.47,1),
              border-color 0.17s cubic-bezier(.45,.53,.5,.99),
              transform 0.13s cubic-bezier(.22,.87,.62,1),
              color 0.14s cubic-bezier(.6,.05,.34,1),
              background 0.17s cubic-bezier(.68,.01,.59,.99);
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .main-nav a:hover, .footer-nav a:hover, .mobile-nav a:hover {
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}
.btn-primary:active, .cookie-actions button:active, .cookie-modal-actions button:active {
  transform: scale(0.97); 
}

/* Highlight geometric corners/angles */
.feature-grid > div, .feature-icons > div, .case-study-summary > div {
  box-shadow: 0 7px 30px 0 rgba(23,48,77,0.09);
  border-radius: 16px 16px 6px 6px;
  border-bottom-width: 4px;
}

/*===========================
  SCROLLBAR & SELECTION STYLE
============================*/
::-webkit-scrollbar {
  width: 9px;
  background: #E5E6E8;
}
::-webkit-scrollbar-thumb {
  background: #CB3C15;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #17304D;
}
::selection {
  color: #fff;
  background: #CB3C15;
}

/* Accessibility: Focus rings */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, input:focus-visible, .mobile-menu-toggle:focus-visible {
  outline: 3px solid #CB3C15;
  outline-offset: 2px;
}

/* Miscellaneous */
.hero-section {
  overflow: hidden;
  /* accent geometric shape decor */
}

/* Ensure no content overlaps by spacing between cards/sections adequately */
.card, .feature-grid > div, .case-study-summary > div, .content-grid > *, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.section, section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}

/* Utility: hide visually only */
.visually-hidden {
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
