/* --- 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;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
}
html {
  height: 100%;
  font-size: 16px;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  background: #FFFFFF;
  color: #162042;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #26357D;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.18s;
}
 a:hover, a:focus { color: #F5B900; text-decoration: none; }
ul, ol {
  padding-left: 32px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
  list-style-type: disc;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #162042;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
}
p {
  margin-bottom: 18px;
  color: #23325C;
}

/* --- CONTAINER & SECTION BASE --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FCFCFC;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(38,53,125,0.05), 0 1.5px 16px rgba(38,53,125,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- FLEX BOX LAYOUTS --- */
.card-container, .card-grid, .features, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(38,53,125,0.06);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 18px rgba(38,53,125,0.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F7F9FC;
  padding: 16px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: background 0.16s;
}
.feature-item:hover { background: #EEF1F7; }
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #EEF1F7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(38,53,125,0.08);
  margin-bottom: 20px;
  max-width: 550px;
  transition: box-shadow 0.17s;
}
.testimonial-card p {
  color: #162042;
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #26357D;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(38,53,125,0.11);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(38,53,125,0.05);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 16px;
}
header img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: #26357D;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.12s, color 0.12s;
}
nav a:hover, nav a:focus {
  background: #EEF1F7;
  color: #F5B900;
}
.cta {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  margin-left: 16px;
  transition: background 0.19s, color 0.17s, box-shadow 0.14s;
  box-shadow: 0 2px 8px rgba(38,53,125,0.06);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.cta.primary {
  background: #26357D;
  color: #FFF;
}
.cta.primary:hover, .cta.primary:focus {
  background: #162042;
  color: #F5B900;
}
.cta.secondary {
  background: #F5B900;
  color: #162042;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #26357D;
  color: #FFF;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #26357D;
  cursor: pointer;
  margin-left: 12px;
  z-index: 102;
  transition: color 0.14s;
}
.mobile-menu-toggle:focus { outline: 2px solid #26357D; }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,53,125,0.96);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #FFF;
  align-self: flex-end;
  padding: 24px 28px 12px 16px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding-left: 28px;
  padding-top: 8px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 7px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.1s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5B900;
  color: #26357D;
}

@media (max-width: 992px) {
  header .container nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/* --- FOOTER --- */
footer {
  background: #26357D;
  color: #FFF;
  margin-top: 60px;
  padding: 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 38px 16px 20px 16px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  font-size: 0.98rem;
  color: #EEF1F7;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #EEF1F7;
  text-decoration: underline;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F5B900;
}
.brand-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: #919191;
  font-size: 0.98rem;
}
.brand-contact img {
  height: 32px;
  width: auto;
  margin-bottom: 4px;
}
.brand-contact a {
  color: #F5B900;
  text-decoration: underline;
}
.brand-contact a:hover { color: #FFF; }


/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #FFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(38,53,125,0.08);
}
th, td {
  padding: 16px 18px;
  text-align: left;
}
th {
  background: #26357D;
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
tr + tr { border-top: 1px solid #EEF1F7; }
td { color: #23325C; font-size: 1.06rem; }

/* --- SPACING AND LAYOUT CONSISTENCY --- */
.section, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.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 {
  margin-bottom: 20px;
}

/* --- BUTTONS --- */
button, .cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s, box-shadow 0.16s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(38,53,125,0.06);
}
button:active, .cta:active {
  transform: scale(0.97);
}

/* --- MICRO-INTERACTIONS --- */
.card:hover, .feature-item:hover, .cta:hover, .cta:focus {
  box-shadow: 0 4px 20px rgba(38,53,125,0.14);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #EEF1F7;
  box-shadow: 0 -1px 12px rgba(38,53,125,0.09);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  font-size: 1rem;
  color: #162042;
  animation: slideUpCookie 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cookie-banner .btn,
.cookie-banner .cookie-settings-btn {
  padding: 10px 22px;
  font-size: 1.06rem;
  border-radius: 6px;
  min-width: 116px;
  margin: 0 2px;
  border: none;
  transition: background 0.18s, color 0.13s, box-shadow 0.13s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-banner .btn-primary {
  background: #26357D;
  color: #FFF;
}
.cookie-banner .btn-primary:hover, .cookie-banner .btn-primary:focus {
  background: #F5B900;
  color: #26357D;
}
.cookie-banner .btn-secondary {
  background: #EEF1F7;
  color: #26357D;
  border: 1px solid #26357D;
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: #26357D;
  color: #FFF;
}
.cookie-settings-btn {
  background: #F5B900;
  color: #162042;
  border: none;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #26357D;
  color: #FFF;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,53,125, 0.34);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeCookieModal 0.4s;
}
@keyframes fadeCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFFFFF;
  border-radius: 14px;
  max-width: 380px;
  width: 95vw;
  padding: 36px 24px 28px 24px;
  box-shadow: 0 8px 40px rgba(38,53,125, 0.18);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 301;
  animation: popInCookie 0.34s;
}
@keyframes popInCookie {
  from { transform: translateY(46px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  color: #26357D;
  font-size: 1.55rem;
  cursor: pointer;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F5B900;
  width: 17px;
  height: 17px;
}
.cookie-category label {
  font-size: 1.06rem;
  color: #162042;
}
.cookie-category .cookie-essential {
  color: #26357D;
  font-weight: 500;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section {
    padding: 22px 5vw;
    margin-bottom: 36px;
  }
  .content-wrapper, .text-section {
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  .brand-contact {
    font-size: 0.99rem;
  }
  .card-container, .features, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card, .feature-item, .testimonial-card {
    padding: 16px 12px;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  .footer-nav {
    font-size: 0.95rem;
  }
}

/* --- UTILITY CLASSES --- */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.text-center { text-align: center !important; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* --- ACCESSIBILITY --- */
:focus {
  outline: 2px solid #F5B900;
  outline-offset: 1px;
}

/* --- SPECIAL ICON ALIGNMENTS --- */
.brand-contact img[alt^="Dazzle Code"], .brand-contact img[src*="logo"] {
  margin-right: 8px;
  margin-bottom: 2px;
}
.brand-contact img[alt^="Adresse"],
.brand-contact img[alt^="Téléphone"],
.brand-contact img[alt^="Email"],
.brand-contact img[alt^="Horaires"],
.brand-contact img[src*="icon-"] {
  vertical-align: middle;
  margin-right: 5px;
  height: 1rem;
  width: 1rem;
  display: inline-block;
}

/* --- PRINT MOD --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section { box-shadow: none; padding: 0; }
  body { color: #000; background: #FFF; }
}
