/* ===============================
   Élan Numérique - style.css
   Minimalist Responsive CSS (Flexbox Only!)
   =============================== */

/* --- CSS Reset & Normalize --- */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
figure,
form,
input,
button,
nav,
section,
main,
footer,
header,
div,
a,
span {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #1F2937;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input, textarea {
  font: inherit;
}

/* --- Brand Typography Hierarchy --- */
h1, .cta-headline {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1F2937;
  line-height: 1.13;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  h1, .cta-headline {
    font-size: 1.7rem;
  }
}
h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 14px;
  line-height: 1.3;
}
h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  color: #1F2937;
}
p, li, span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #1F2937;
}
.subheadline {
  font-size: 1.22rem;
  color: #5B9BD5;
  margin-bottom: 25px;
}
strong {
  font-weight: 600;
  color: #1F2937;
}

/* --- Main Layout Containers --- */
.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
}

/* --- Flexbox Collections & Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 16px 0 rgba(31,41,55,0.04);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 260px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(31,41,55,0.10);
}
.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: stretch;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F5F8FA;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(31,41,55,0.04);
  padding: 20px 32px;
  margin-bottom: 20px;
  max-width: 560px;
  width: 100%;
  transition: box-shadow 0.20s, background 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(91,155,213,0.12);
  background: #fff;
}
.testimonial-name {
  font-size: 0.98rem;
  color: #1F2937;
  font-style: italic;
  text-align: right;
}
.star-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #5B9BD5;
  margin-top: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Nav/Header --- */
header {
  background: #fff;
  border-bottom: 1px solid #E7EBEF;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  gap: 24px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #1F2937;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 0;
  opacity: 0.86;
  position: relative;
  transition: color 0.2s, opacity 0.22s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #5B9BD5;
  opacity: 1;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 135px;
  background: #1F2937;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 11px 23px;
  box-shadow: 0 2px 8px 0 rgba(31,41,55,0.09);
  cursor: pointer;
  transition: background 0.22s, color 0.14s, box-shadow 0.22s;
  border: none;
  outline: none;
  margin-left: 18px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #5B9BD5;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(91,155,213,0.15);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1F2937;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.03rem;
  font-weight: 500;
  background: transparent;
  padding: 11px 24px;
  border: 1.5px solid #5B9BD5;
  border-radius: 8px;
  transition: background 0.2s, border 0.22s, color 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #5B9BD5;
  color: #fff;
  border-color: #5B9BD5;
}

/* --- Mobile Nav/Hamburger --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #1F2937;
  background: none;
  border: none;
  margin-left: 20px;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 202;
  transition: background 0.1s, color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F5F8FA;
  color: #5B9BD5;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(31,41,55,0.15);
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.63,.06,.51,.9);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 18px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: #F5F8FA;
  color: #1F2937;
  padding: 6px 16px;
  border-radius: 8px;
  margin-right: 24px;
  margin-bottom: 14px;
  border: none;
  transition: background 0.20s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #5B9BD5;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}
.mobile-nav a {
  display: inline-flex;
  color: #1F2937;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.22rem;
  padding: 11px 32px;
  border-radius: 4px;
  transition: background 0.23s, color 0.18s;
  width: 100%;
  justify-content: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #5B9BD5;
  color: #fff;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none!important;
  }
}

/* --- Footer --- */
footer {
  background: #F5F8FA;
  border-top: 1px solid #E7EBEF;
  padding: 46px 0 36px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
}
.footer-brand img {
  max-width: 56px;
  margin-bottom: 8px;
  opacity: 0.91;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 15px;
}
.footer-nav a {
  font-family: 'Montserrat', sans-serif;
  color: #1F2937;
  opacity: 0.66;
  font-size: 0.98rem;
}
.footer-nav a:hover {
  color: #5B9BD5;
  opacity: 1;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: #1F2937;
  opacity: 0.90;
}
@media (max-width: 600px) {
  footer {
    padding: 33px 0 24px 0;
  }
  .footer-brand img {
    max-width: 44px;
  }
}

/* --- Blog, Cards, Tags --- */
.tag, .category-tag {
  background: #F5F8FA;
  color: #5B9BD5;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.93rem;
  border-radius: 6px;
  padding: 2px 11px;
  margin-left: 8px;
  margin-bottom: 2px;
  display: inline-block;
  font-weight: 500;
}
.topic-filters {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top: 3px;
}
.dates-filters {
  color: #5B9BD5;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}
.blog-list > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(31,41,55,0.03);
  padding: 20px 18px;
  transition: box-shadow 0.16s;
  border-left: 4px solid #5B9BD5;
}
.blog-list > div:hover {
  box-shadow: 0 4px 20px 0 rgba(91,155,213,0.09);
}
.blog-list h3 a {
  color: #1F2937;
  font-weight: 600;
}
.blog-list h3 a:hover, .blog-list h3 a:focus {
  color: #5B9BD5;
}
.category-tag {
  float: right;
  margin-top: -6px;
}
/* Search Bar */
.search-bar {
  width: 100%;
  border: 1px solid #E7EBEF;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1rem;
  background: #F5F8FA;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.search-bar:focus {
  border-color: #5B9BD5;
  background: #fff;
  outline: none;
}

/* --- Custom Styles for Team, Certifications, Expertise (about) --- */
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.team-profiles > div {
  background: #fff;
  padding: 20px 20px 14px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(31,41,55,0.04);
  flex: 1 1 230px;
  min-width: 200px;
}
.certifications {
  font-size: 1rem;
  color: #5B9BD5;
  font-weight: 500;
  margin-bottom: 8px;
}
.expertise-summary {
  font-size: 1.06rem;
  color: #1F2937;
  background: #F5F8FA;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-block;
  margin-bottom: 10px;
}

/* --- Forms/Contact --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}
.text-section li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1F2937;
  font-size: 1rem;
}
@media (max-width: 800px) {
  .team-profiles {
    flex-direction: column;
    gap: 14px;
  }
}

/* --- Utility Spacing --- */
.mb-0 { margin-bottom:0!important; }
.mb-10 { margin-bottom: 10px!important; }
.mb-20 { margin-bottom: 20px!important; }
.mt-20 { margin-top: 20px!important; }

/* --- Subtle Animations and Transitions --- */
section, .testimonial-card, .card, .blog-list > div,
.team-profiles > div, footer, header, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.22s, background 0.25s, opacity 0.32s, transform 0.31s;
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #1F2937;
  color: #fff;
  padding: 21px 10px 14px 10px;
  box-shadow: 0 -2px 18px 0 rgba(31,41,55,0.07);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(.66,.07,.26,.92), opacity 0.35s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 15px;
  margin-top: 4px;
}
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  background: #fff;
  color: #1F2937;
  border: none;
  border-radius: 7px;
  padding: 8px 22px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 6px 0 rgba(31,41,55,0.03);
  font-size: 1rem;
  margin-right: 0px;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #5B9BD5;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #5B9BD5;
  color: #fff;
}
.cookie-btn.settings {
  background: #F5F8FA;
  color: #1F2937;
  border: 1px solid #E7EBEF;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31,41,55,0.55);
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #1F2937;
  border-radius: 14px;
  box-shadow: 0 6px 36px 0 rgba(31,41,55,0.13);
  padding: 32px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  animation: modalIn 0.39s cubic-bezier(.62,.12,.34,.84);
}
@keyframes modalIn {
  0%   { transform: translateY(66px) scale(0.93); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.27rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F5F8FA;
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 6px;
}
.cookie-modal .category label,
.cookie-modal .category span {
  font-size: 1.05rem;
  font-family: 'Montserrat', sans-serif;
}
.cookie-modal .cookie-switch {
  appearance: none;
  width: 36px; height: 20px;
  border-radius: 10px;
  background: #E7EBEF;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-modal .cookie-switch:checked {
  background: #5B9BD5;
}
.cookie-modal .cookie-switch::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px; left: 3px;
  transition: transform 0.22s;
}
.cookie-modal .cookie-switch:checked::before {
  transform: translateX(16px);
}
.cookie-modal .actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .actions .cookie-btn {
  flex: 1;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px; right: 24px;
  background: #F5F8FA;
  color: #1F2937;
  border-radius: 50%;
  font-size: 1.7rem;
  padding: 6px 11px;
  transition: background 0.15s, color 0.13s;
  border: none;
}
.cookie-modal .cookie-modal-close:hover {
  background: #5B9BD5;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 20px 8px 16px 8px;
  }
}

/* --- Responsive Queries --- */
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  .main-nav {
    gap: 18px;
    margin-left: 7px;
  }
}
@media (max-width: 650px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    gap: 15px;
  }
}

/* --- Accessibility & Misc --- */
:focus {
  outline: 2px solid #5B9BD5;
  outline-offset: 2px;
}
::-webkit-input-placeholder, ::-moz-placeholder, :-ms-input-placeholder, ::placeholder {
  color: #989898;
  opacity: 1;
}

/* --- Custom Scrollbar for Brand (Optional) --- */
::-webkit-scrollbar {
  width: 8px;
  background: #fff;
}
::-webkit-scrollbar-thumb {
  background: #E7EBEF;
  border-radius: 7px;
}

/* --- Hide empty gaps and fix overspacing --- */
.card:last-child, .testimonial-card:last-child, .team-profiles > div:last-child {
  margin-bottom: 0;
}

/* --- Hide Scroll for Cookie Modal Background --- */
body.cookie-modal-open {
  overflow: hidden;
}
