/* ==============================  
   CSS RESET & NORMALIZE (Mobile-First)
============================== */
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: #F6F6F8;
  color: #15151a;
  font-family: 'Roboto', Arial, sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  background: none;
  outline: none;
  border: none;
  font: inherit;
  color: inherit;
  box-shadow: none;
}
button {
  cursor: pointer;
}

/* =============================
   BASE TYPOGRAPHY
============================= */

body {
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  margin-bottom: 26px;
}
h2 {
  font-size: 1.8rem;
  line-height: 1.18;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 14px;
}
p, ul, ol, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222222;
  font-size: 1rem;
  margin-bottom: 14px;
}
p.tagline {
  font-style: italic;
  color: #686868;
  font-weight: 400;
  margin-bottom: 20px;
}
strong {
  font-weight: 700;
}
blockquote {
  font-size: 1.08rem;
  color: #545454;
  border-left: 4px solid #1a1a1a;
  margin: 18px 0 18px 0;
  padding: 12px 0 12px 22px;
  background: #F6F6F8;
}

/* =============================
   LAYOUT CONTAINERS
============================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(38, 38, 40, 0.09);
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 14px;
  }
}

/* =============================
   FLEXBOX PATTERNS & UTILITIES
============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 250px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(32,32,32,0.10);
  padding: 24px 20px;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(21,21,26,0.16);
  z-index: 2;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fafafd;
  color: #15151a;
  padding: 20px 24px;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(20,20,24,0.08);
  margin-bottom: 20px;
  border-left: 4px solid #21314D;
  min-width: 240px;
  flex: 1 1 344px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card .stars {
  font-size: 1.18rem;
  color: #F2B705;
  letter-spacing: 2.5px; 
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(21,21,21,0.14);
  transform: translateY(-6px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive Flex Adjustments */
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .feature-grid,
  .content-wrapper,
  .testimonial-slider,
  .service-categories,
  .detailed-service-list {
    flex-direction: column !important;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 0;
  }
}

/* =============================
   HEADER & NAVIGATION
============================= */
header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  padding: 0;
  z-index: 100;
}
header .container {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.desktop-nav a {
  color: #212121;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px 8px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.desktop-nav a.cta {
  background: #21314D;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  margin-left: 8px;
  border-radius: 24px;
  box-shadow: 0 1px 5px rgba(33,49,77,0.07);
  transition: background 0.18s, box-shadow 0.18s;
}
.desktop-nav a.cta:hover,
.desktop-nav a.cta:focus {
  background: #F2B705;
  color: #15151a !important;
  box-shadow: 0 4px 16px rgba(33,49,77,0.18);
}
.desktop-nav a:hover, .desktop-nav a:focus {
  background: #F6F6F8;
  color: #21314D;
}
.desktop-nav a.active {
  background: #F6F6F8;
  font-weight: bold;
}
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1050px) {
  header .container {
    height: 60px;
    padding: 0 8px;
  }
  .desktop-nav a {
    padding: 7px 12px 7px 7px;
    font-size: 0.98rem;
  }
}

@media (max-width: 890px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
    background: none;
    font-size: 2.3rem;
    color: #21314D;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    z-index: 103;
    transition: background 0.15s, color 0.2s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #F6F6F8;
    color: #F2B705;
  }
}

/* =============================
   MOBILE MENU
============================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 86vw;
  max-width: 390px;
  background: #fff;
  box-shadow: -4px 0 32px rgba(21,21,21,0.22);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 16px 0 0;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #21314D;
  border-radius: 50%;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 201;
  transition: background 0.15s, color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F6F6F8;
  color: #F2B705;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 36px 0 0 0;
  gap: 10px;
  padding-left: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 500;
  color: #15151a;
  padding: 13px 0 13px 0;
  border-radius: 9px;
  transition: color 0.18s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #21314D;
  color: #fff !important;
}
.mobile-nav a.cta {
  background: #21314D;
  color: #fff;
  padding: 13px 15px;
  border-radius: 22px;
  margin-top: 10px;
  font-weight: bold;
}
.mobile-nav a.cta:hover, .mobile-nav a.cta:focus {
  background: #F2B705;
  color: #15151a !important;
}

/* Backdrop overlay when menu open */
.mobile-menu-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33, 49, 77, 0.22);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.mobile-menu.open ~ .mobile-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 891px) {
  .mobile-menu,
  .mobile-menu-backdrop,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =============================
   HERO, CARDS & FEATURES
============================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 8px;
}
.feature {
  flex: 1 1 210px;
  min-width: 210px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(33,49,77,0.07);
  padding: 20px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.19s;
  border-left: 4px solid #21314D;
  margin-bottom: 20px;
}
.feature img {
  width: 40px;
  height: 40px;
}
.feature:hover {
  box-shadow: 0 8px 24px rgba(33,49,77,0.13);
  border-left: 4px solid #F2B705;
}

.service-list li, .service-categories li, .detailed-service-list li, .contact-info-snippet span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #232323;
  margin-bottom: 10px;
  line-height: 1.45;
}
.service-list strong, .service-categories strong, .detailed-service-list strong {
  color: #21314D;
  font-weight: 700;
}

.contact-info-snippet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}
.contact-info-snippet img {
  width: 20px;
  height: 20px;
  opacity: 0.92;
}

.badge-certifie {
  display: inline-block;
  padding: 5px 11px;
  background: #21314D;
  color: #fff;
  font-size: 0.92rem;
  border-radius: 16px;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* =============================
   CTA BUTTONS
============================= */
.cta, a.cta, button.cta,
input[type="submit"].cta, .content-wrapper .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #21314D;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
  border-radius: 28px;
  padding: 13px 28px;
  margin-top: 10px;
  box-shadow: 0 3px 16px rgba(33,49,77,0.09);
  border: none;
  transition: background 0.19s, color 0.18s, transform 0.19s;
  outline: none;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background: #F2B705;
  color: #15151a !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 15px rgba(33,49,77,0.10);
}

/* =============================
   TABLES (Tarifs)
============================= */
table {
  width: 100%;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  border-collapse: collapse;
  box-shadow: 0 1px 10px rgba(33,49,77,0.07);
  overflow: hidden;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
th, td {
  padding: 14px 10px;
  border-bottom: 1px solid #ececec;
  text-align: left;
}
th {
  background: #21314D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
}
tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  table, thead, tbody, tr, th, td {
    display: block;
    width: 100%;
  }
  th, td {
    padding: 12px 4px;
    border-bottom: none;
  }
  tr {
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e2e3;
  }
}

/* =============================
   FOOTER
============================= */
footer {
  background: #fff;
  border-top: 1px solid #e6e6e6;
  margin-top: 60px;
  padding-top: 38px;
  padding-bottom: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 13px;
}
.footer-nav a {
  color: #545454;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 9px;
  border-radius: 8px;
  transition: color 0.17s, background 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F6F6F8;
  color: #21314D;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #222;
  font-size: 0.98rem;
  margin-bottom: 7px;
}
.footer-contact img {
  width: 17px;
  height: 17px;
}
.footer-credit {
  color: #AAA;
  font-size: 0.93rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-top: 10px;
}
@media (max-width: 780px) {
  footer {
    padding: 28px 0 18px 0;
    margin-top: 30px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* =============================
   FORMS & INPUTS
============================= */
input, select, textarea {
  width: 100%;
  border: 1px solid #ececec;
  border-radius: 9px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  padding: 11px 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.15s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #21314D;
  box-shadow: 0 2px 10px rgba(33,49,77,0.09);
}
label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a1a1a;
}

/* =============================
   MONOCHROME VISUALS & SHADOWS
============================= */
/* For monochrome sophisticated look: high contrast, sharp edges, dramatic shadow/light, clean white space */
.section {
  box-shadow: 0 2px 24px rgba(38, 38, 40, 0.08), 0 1.5px 12px rgba(33,49,77,0.13);
  border: 1.5px solid #e5e5ea;
  background: #fff;
}
.card, .feature, .testimonial-card {
  border: 1.2px solid #e8e8ef;
  background: #fff;
  box-shadow: 0 2px 12px rgba(33,49,77,0.08);
}

/* =============================
   MICRO-INTERACTIONS & ANIMATIONS
============================= */
a, .cta, button, .mobile-menu-toggle, .mobile-menu-close {
  transition: color 0.17s, background 0.16s, box-shadow 0.18s, transform 0.19s;
}
.card:hover, .feature:hover, .testimonial-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.07), 0 4px 18px rgba(33,49,77,0.16);
  transform: translateY(-3px) scale(1.013);
}
.mobile-menu, .cookie-banner, .cookie-modal {
  transition: transform 0.33s cubic-bezier(.45,.98,.35,1.3), opacity 0.21s;
}

/* =============================
   COOKIE CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #15151a;
  box-shadow: 0 -2px 16px rgba(33,49,77,0.11);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  z-index: 300;
  padding: 19px 16px;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s, transform 0.29s;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button, .cookie-banner .cta {
  font-size: 1rem;
  border-radius: 20px;
  padding: 8px 22px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.17s, transform 0.17s;
}
.cookie-banner .accept-all {
  background: #21314D;
  color: #fff;
}
.cookie-banner .accept-all:hover, .cookie-banner .accept-all:focus {
  background: #F2B705;
  color: #15151a;
  transform: translateY(-2px);
}
.cookie-banner .reject-all {
  background: #e5e5ea;
  color: #525252;
}
.cookie-banner .reject-all:hover, .cookie-banner .reject-all:focus {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 5px rgba(33,49,77,0.08);
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: #21314D;
  text-decoration: underline;
  box-shadow: none;
  font-weight: 500;
  padding: 8px 4px;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  color: #F2B705;
  background: none;
}

@media (max-width: 621px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 6px;
  }
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,49,77,0.36);
  z-index: 399;
  display: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-backdrop.open {
  display: block;
  opacity: 1;
}
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  bottom: 0; 
  margin: auto;
  width: 98%;
  max-width: 420px;
  background: #fff;
  z-index: 400;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 48px rgba(33,49,77,0.17);
  padding: 27px 23px 21px 23px;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.55,1,.31,1.11), opacity 0.22s;
}
.cookie-modal.open {
  transform: translateY(0);
  opacity: 1;
}
.cookie-modal h3 {
  font-size: 1.24rem;
  margin-bottom: 11px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #21314D;
  width: 19px;
  height: 19px;
}
.cookie-modal .essential-label {
  opacity: 0.71;
  color: #7e7e7e;
  cursor: default;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 19px;
  justify-content: flex-end;
}
.cookie-modal button, .cookie-modal .cta {
  font-size: 1rem;
  border-radius: 18px;
  padding: 8px 22px;
  font-weight: 600;
  background: #21314D;
  color: #fff;
  border: none;
  transition: background 0.17s, color 0.17s, transform 0.17s;
}
.cookie-modal button.cancel {
  background: #F6F6F8;
  color: #525252;
}
.cookie-modal button.cancel:hover {
  background: #e5e5ea;
  color: #15151a;
}
.cookie-modal button.submit:hover {
  background: #F2B705;
  color: #15151a;
  transform: translateY(-2px);
}

/* =============================
   ACCESSIBILITY & SELECTION
============================= */
:focus {
  outline: 2px solid #F2B705;
  outline-offset: 2px;
}
::selection {
  background: #F2B705;
  color: #1a1a1a;
}

/* Hide visually but accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =============================
   PRINT STYLES (OPTIONAL)
============================= */
@media print {
  header, footer, nav, .cta, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  .section, .container {
    box-shadow: none !important;
    padding: 0 !important;
  }
}
