/* =========================================================
   CSS RESET & BASE NORMALIZATION
========================================================= */
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #fff;
  color: #181818;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  font-size: 16px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
}
input, textarea, select {
  font-family: inherit;
  color: inherit;
  font-size: 16px;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  margin: 0;
}

/* =========================================================
   FONT FACE (Google Fonts recommended)
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

:root {
  --color-primary: #13416a;
  --color-dark: #181818;
  --color-bg: #fff;
  --color-bg-2: #f4f4f7;
  --color-border: #e1e3e7;
  --color-secondary: #e6ecf2;
  --color-accent: #238a58;
  --color-link: #13416a;
  --color-link-hover: #238a58;
  --shadow-1: 0 2px 12px rgba(30,45,66,0.07);
  --shadow-card: 0 6px 24px rgba(30,45,66,0.13);
  --radius: 14px;
  --radius-sm: 7px;
  --transition: 0.2s cubic-bezier(.45,0,.55,1);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #101010;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.16;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}
p, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #232323;
}
strong {
  font-weight: 700;
}
.text-section h2 {
  margin-top: 28px;
}
.text-section ul, .text-section ol {
  margin-left: 22px;
  margin-bottom: 26px;
}
.text-section li {
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
}

/* =========================================================
   LAYOUT & CONTAINER
========================================================= */
.container {
  width: 100%;
  max-width: 1116px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .section { padding: 32px 10px; margin-bottom: 36px; }
  .content-wrapper { gap: 18px; }
}
@media (max-width: 600px) {
  .section { padding: 22px 3vw; margin-bottom: 24px; }
  .container { padding: 0 7px; }
  .content-wrapper { gap: 10px; }
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(20,20,20,0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 49;
  display: flex;
  align-items: center;
  justify-content: center;
}
header > a img {
  height: 38px;
  margin: 16px 22px 16px 0;
  display: block;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #232323;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  background: var(--color-secondary);
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 11px 28px;
  font-size: 1.07rem;
  font-weight: 700;
  box-shadow: var(--shadow-1);
  margin-left: 22px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.15s;
  border: none;
  outline: none;
  display: inline-block;
  line-height: 1.1;
  letter-spacing: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(19,65,106,0.13);
  transform: translateY(-2px) scale(1.016);
}
/* MOBILE HEADER NAVIGATION */
.mobile-menu-toggle {
  display: none;
  margin-left: 18px;
  background: none;
  color: var(--color-dark);
  border: none;
  font-size: 2.2rem;
  padding: 8px 12px 6px 12px;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}
.mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.51, 0.01, 0, 1);
    box-shadow: 2px 0 16px rgba(20,20,20,0.16);
    padding: 0;
  }
  .mobile-menu.open {
    transform: translateX(0);
    animation: mobileMenuIn 0.22s;
  }
  @keyframes mobileMenuIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }
  .mobile-menu-close {
    font-size: 2.2rem;
    color: #111;
    padding: 18px 18px 12px 18px;
    margin: 2px 0 12px 5px;
    align-self: flex-start;
    background: none;
    border: none;
    border-radius: 50%;
    transition: background var(--transition);
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: var(--color-secondary);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0 16px 32px 32px;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    transition: background var(--transition), color var(--transition);
    display: block;
  }
  .mobile-nav a:last-child {
    border-bottom: none;
  }
  .mobile-nav a:active,
  .mobile-nav a:focus,
  .mobile-nav a:hover {
    background: var(--color-secondary);
    color: var(--color-accent);
    outline: none;
  }
}

/*
========================================================= 
  HERO SECTIONS
========================================================= */
.hero {
  background: #fff;
  width: 100%;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 250px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero h1 {
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 2.5rem;
  line-height: 1.08;
}
.hero p {
  color: #232323;
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.hero .cta-btn {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .hero {
    padding-top: 4vw;
    padding-bottom: 4vw;
  }
  .hero h1 { font-size: 1.4rem; }
}

/* =========================================================
   FLEX PATTERNS: CARDS, FEATURES, SECTION LAYOUTS
========================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  min-width: 260px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(0,0,0,0.11);
  transform: translateY(-3px) scale(1.022);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fafbfc;
  color: #232323;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(39,35,30,0.06);
  padding: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--color-border);
  font-style: italic;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card strong { font-style: normal; color: #111; }
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 22px rgba(39,35,30,0.075);
  border-color: var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-cards > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px 20px;
  min-width: 210px;
  flex: 1 1 210px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.service-cards > div:hover {
  box-shadow: 0 10px 40px rgba(19, 65, 106, 0.13);
  border-color: var(--color-primary);
  transform: translateY(-2px) scale(1.012);
}
@media (max-width:900px) {
  .card-container, .service-cards, .content-grid {
    gap: 14px;
  }
}
@media (max-width:700px) {
  .card-container, .service-cards, .content-grid {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* =========================================================
   SPECIAL LISTS & JOB LISTINGS
========================================================= */
.job-listings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.job-listings li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(39,35,30,0.04);
  padding: 21px 18px 18px 22px;
  margin-bottom: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.job-listings li:hover, .job-listings li:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(19, 65, 106, 0.08);
}
.job-listings h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
}
.job-listings a {
  align-self: flex-end;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 2px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  transition: background var(--transition), color var(--transition);
}
.job-listings a:hover {
  color: #fff;
  background: var(--color-accent);
}

/* Filters & Sorting (offres-emplois.html) */
.filters, .sorting-options {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filters span, .sorting-options span {
  font-weight: 500;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.filters button, .sorting-options button {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 5px 18px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filters button:hover, .sorting-options button:hover, .filters button.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-accent);
}
input[type="search"] {
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  padding: 12px 16px;
  background: #fafaff;
  min-width: 0;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 14px;
  color: #181818;
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  box-shadow: none;
}
input[type="search"]:focus {
  border-color: var(--color-primary);
  background: #fff;
}

/* =========================================================
   ICONS IN LISTS
========================================================= */
ul li img, ol li img {
  width: 27px;
  margin-right: 14px;
  vertical-align: middle;
  display: inline-block;
  filter: grayscale(0.9) contrast(1.18);
}
ul li, ol li {
  display: flex;
  align-items: center;
  margin-bottom: 9px;
  gap: 10px;
}

/* ===================
   SECTION PADDING  
=================== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 800px) {
  section { padding: 28px 0; margin-bottom: 38px; }
}
@media (max-width: 600px) {
  section { padding: 19px 0; margin-bottom: 16px; }
}

/* =======================================
   FOOTER
======================================= */
footer {
  background: #f7f8fa;
  border-top: 1.5px solid var(--color-border);
  padding: 0 0 0 0;
  margin-top: 40px;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 10px;
  gap: 11px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 11px;
}
footer nav a {
  color: #2b2b2b;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: background 0.12s, color 0.12s;
}
footer nav a:hover,footer nav a:focus {
  color: #fff;
  background: var(--color-primary);
}
footer p {
  color: #232323;
  font-size: 0.96rem;
  text-align: center;
}

/* ===================
   LINKS & BUTTONS   
==================== */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-link-hover);
  outline: none;
}

/* =======
   CTA
======= */
.cta-btn {
  background: var(--color-dark);
  color: #fff;
  padding: 11px 28px;
  border-radius: var(--radius);
  border: none;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-1);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.16s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(19,65,106,0.13);
  transform: translateY(-2px) scale(1.016);
}

/* ================================================
   COOKIE CONSENT BANNER + MODAL
================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #111;
  color: #fff;
  z-index: 10050;
  box-shadow: 0 -2px 20px rgba(15,19,33,0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  font-size: 1rem;
  border-top: 1.5px solid #222a34;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.45,0,.55,1);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  animation: cookieBannerSlideIn 0.22s;
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(100px); }
  to { transform: translateY(0); }
}
.cookie-banner-text {
  flex: 1 1 320px;
  font-size: 0.98rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-button,
.cookie-settings-btn {
  background: #fff;
  color: #111;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  padding: 10px 22px;
  margin: 0;
  font-size: 1rem;
  transition: background .18s, color .18s, box-shadow .18s;
  box-shadow: 0 0.5px 9px rgba(97,107,113,0.06);
}
.cookie-button:hover, .cookie-settings-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-button.reject {
  background: #232323;
  color: #fff;
}
.cookie-button.reject:hover {
  background: #fff;
  color: #232323;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 19px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner-actions { gap: 6px; }
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 11000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,33,39,0.53);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s linear;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #181818;
  border-radius: var(--radius);
  box-shadow: 0 10px 48px rgba(10,14,25,0.19);
  max-width: 400px;
  width: 97vw;
  padding: 30px 26px 26px 26px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.21s linear;
}
@keyframes cookieModalIn {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.15rem;
  margin: 0 0 12px 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category label {
  margin-right: 9px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 19px;
  height: 19px;
  margin-right: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 13px;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  right: 12px; top: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #111;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.13s;
}
.cookie-modal .close-modal-btn:hover {
  background: var(--color-secondary);
}

@media (max-width:600px) {
  .cookie-modal { padding: 18px 9px 14px 9px; margin-bottom: 8vw; }
}

/* =============================
   MISC MODAL ACCESSIBILITY
============================= */
[aria-modal="true"]:focus {
  outline: 2px solid var(--color-accent) !important;
}

/* =====================
   ANIMATIONS
===================== */
.cta-btn, .cookie-button, .service-cards > div, .card, header nav a, .job-listings li, .testimonial-card {
  transition: box-shadow var(--transition), color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

/* ====================================
   UTILITY: FLEX LAYOUTS & SPACING
==================================== */
.flex-center {display: flex; justify-content: center; align-items: center;}
.flex-col {display: flex; flex-direction: column;}
.flex-wrap {display: flex; flex-wrap: wrap;}
.mt-1 {margin-top: 8px;}
.mt-2 {margin-top: 20px;}
.mb-1 {margin-bottom: 14px;}
.mb-2 {margin-bottom: 24px;}
.my-2 {margin: 24px 0;}
.ml-1 {margin-left: 8px;}
.gap-1 {gap: 12px;}
.gap-2 {gap: 20px;}

/* ====================================
   FORMS & INPUTS
==================================== */
input, textarea, select {
  border-radius: var(--radius-sm);
  border: 1.3px solid var(--color-border);
  padding: 8px 13px;
  background: #f7f7fa;
  color: #232323;
  margin-bottom: 12px;
  transition: border-color var(--transition), background var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  background: #fff;
}

/* ====================================
   ERROR STATES, ALERTS
==================================== */
.alert {
  padding: 12px 18px;
  margin-bottom: 18px;
  background: #f7cfcf;
  color: #a62828;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid #f5bdbd;
}

/* ===================
   PRINTING
==================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {display: none!important;}
  .container, .content-wrapper, main, section { width: 100vw !important; padding: 0 !important; margin: 0 !important; }
}

/* ====================================
   SPECIAL: ACCESSIBILITY HIGHLIGHTS
==================================== */
:focus-visible {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 2px;
}

/* ====================================
   END OF FILE
==================================== */
