/* ====================================================
   LUMEN DRIFT – Scandinavian Clean Style CSS
   Author: Senior CSS Developer & UI Designer
   Style: scandinavian_clean – light, airy, modern, functional
   CRITICAL: Only Flexbox for all layouts (no grid/columns)
   ==================================================== */

/* RESET & BASELINE ---------------------------------- */

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,
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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #F5F6FA;
  color: #172336;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: .01em;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

ul, ol {
  list-style: none;
}

a {
  color: #172336;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #89CFF0;
  outline: none;
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: 1px solid #e3e7ef;
  outline: none;
  color: #172336;
  background: #fff;
  border-radius: 5px;
  padding: 10px 12px;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #89CFF0;
}

/* TYPOGRAPHY ----------------------------------- */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
  color: #172336;
}

h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #172336;
  line-height: 1.15;
}

h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: #172336;
}

h4, .h4, h5, .h5, h6, .h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: #172336;
}

p, .subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222a3a;
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.7;
}

.subheadline {
  font-size: 1.15rem;
  color: #555F74;
  margin-bottom: 28px;
  font-weight: 400;
}

blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #EEF3F8;
  border-left: 4px solid #89CFF0;
  color: #172336;
  padding: 18px 24px;
  border-radius: 7px;
  margin: 24px 0 24px 0;
  font-style: italic;
}

/* ================== MAIN LAYOUT ================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(23,35,54,0.04);
}

.section:last-child {
  margin-bottom: 0;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(23,35,54,0.06);
  padding: 32px 28px;
  min-width: 260px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.card:hover,
.card:focus {
  box-shadow: 0 4px 20px rgba(137,207,240,0.13);
  transform: translateY(-3px) scale(1.02);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F6FA;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.card img, .feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 8px;
}

ol, ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  list-style-position: outside;
}
ol {
  list-style-type: decimal;
  margin-left: 18px;
}
ul {
  list-style-type: disc;
  margin-left: 18px;
}
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #222a3a;
  font-size: 1rem;
}
ul li img, ol li img {
  width: 28px;
  height: 28px;
  margin-right: 9px;
  flex-shrink: 0;
}

dl {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
dl dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #172336;
  margin-bottom: 4px;
  margin-top: 8px;
}
dl dd {
  margin-left: 18px;
  color: #222a3a;
}

/* =========== BUTTONS & INTERACTIVE ============= */

.btn-primary,
.btn-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .03em;
  background: #172336;
  color: #fff;
  padding: 13px 32px;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(23,35,54,0.04);
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.18s, box-shadow 0.2s, transform 0.14s;
  margin-top: 8px;
  margin-bottom: 8px;
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #89CFF0;
  color: #172336;
  box-shadow: 0 4px 14px rgba(137,207,240,0.19);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #F5F6FA;
  border: 2px solid #172336;
  color: #172336;
  padding: 12px 27px;
  border-radius: 19px;
  font-weight: 500;
  transition: background 0.18s, color 0.16s, border-color 0.18s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #E8F4FC;
  border-color: #89CFF0;
  color: #172336;
}

.btn-tertiary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: transparent;
  color: #172336;
  border: 1.5px solid #e3e7ef;
  padding: 10px 22px;
  border-radius: 17px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.13s, color 0.15s;
}
.btn-tertiary:hover,
.btn-tertiary:focus {
  background: #F5F6FA;
  border-color: #89CFF0;
  color: #172336;
}

/* =============== HEADER & NAV =================== */

header {
  background: #fff;
  border-bottom: 1.5px solid #EEF3F8;
  box-shadow: 0 4px 21px rgba(137,207,240,0.04);
  position: sticky;
  top: 0; z-index: 30;
  width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  margin-right: 16px;
  display: flex;
  align-items: center;
}
.main-nav a:not(.logo):not(.btn-primary) {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #172336;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 5px;
  transition: color 0.17s, background 0.14s;
}
.main-nav a:not(.logo):hover,
.main-nav a:not(.logo):focus {
  color: #89CFF0;
  background: #F5F6FA;
}

.main-nav .btn-primary {
  margin-left: auto;
}

/* ========== MOBILE NAV MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: #172336;
  color: #fff;
  font-size: 1.7rem;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23,35,54,0.08);
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 51;
  transition: background 0.13s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #89CFF0;
  color: #172336;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,35,54,0.88);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.76,.16,0,.99);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.1rem;
  margin: 18px 22px 0 0;
  padding: 6px 14px;
  border-radius: 7px;
  align-self: flex-end;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #89CFF0;
  color: #172336;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin-top: 48px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 10px 36px;
  border-radius: 8px;
  width: 85%;
  background: rgba(137,207,240,0.08);
  transition: background 0.16s, color 0.13s;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #89CFF0;
  color: #172336;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 14px;
    padding: 0 12px;
  }
  .main-nav a:not(.logo):not(.btn-primary) { font-size: .98rem; }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
    font-size: .97rem;
    padding: 0 5px;
  }
}

@media (max-width: 850px) {
  .main-nav a:not(.logo) { font-size: .94rem; }
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* =================== FOOTER ==================== */
footer {
  background: #fff;
  border-top: 1.5px solid #EEF3F8;
  box-shadow: 0 -2px 14px rgba(23,35,54,0.03);
  padding: 44px 0 28px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 13px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #172336;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 5px;
  transition: color 0.17s, background 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #89CFF0;
  background: #F5F6FA;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: .98rem;
  color: #172336;
  opacity: .85;
  text-align: center;
}
.footer-contact a {
  color: #89CFF0;
  transition: color 0.16s;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: #172336;
  text-decoration: underline;
}

footer img {
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
}

/* ================== TESTIMONIALS =============== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #EEF3F8;
  box-shadow: 0 2px 12px rgba(23,35,54,0.09);
  border-radius: 15px;
  margin-bottom: 20px;
  color: #172336;
  min-width: 220px;
  max-width: 540px;
  transition: box-shadow 0.24s, transform 0.14s;
}
.testimonial-card p {
  margin-bottom: 6px;
  color: #172336;
  font-style: italic;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #555F74;
  font-size: .98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .03em;
}
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 4px 19px rgba(137,207,240,0.12);
  transform: scale(1.015);
}

/* ================== BLOG =================== */
nav[aria-label="Catégories du blog"] {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: .98rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
nav[aria-label="Catégories du blog"] a {
  border-radius: 8px;
  padding: 2px 10px;
  background: #EEF3F8;
}
nav[aria-label="Catégories du blog"] a:hover,
nav[aria-label="Catégories du blog"] a:focus {
  background: #89CFF0;
  color: #172336;
}

/* ================= COOKIE CONSENT =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0; z-index: 999;
  width: 100vw;
  background: #fff;
  color: #172336;
  box-shadow: 0 -2px 21px rgba(23,35,54,0.12);
  padding: 23px 18px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform 0.37s cubic-bezier(.6,.03,.36,1.04), opacity 0.2s;
}
.cookie-banner.closed {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 17px;
  flex: 1 1 auto;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-left: 10px;
}
.cookie-banner .btn-primary {
  padding: 10px 22px;
  font-size: 1rem;
}
.cookie-banner .btn-secondary {
  padding: 10px 20px;
  font-size: 1rem;
}
.cookie-banner .btn-tertiary {
  padding: 10px 18px;
  font-size: 1rem;
}

/* === Cookie Modal Popup === */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,35,54, 0.44);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: opacity 0.21s, transform 0.17s;
}
.cookie-modal.closed {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.07);
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 18px;
  padding: 34px 32px 22px 32px;
  max-width: 370px;
  width: 90%;
  box-shadow: 0 2px 32px rgba(23,35,54, 0.15);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: cookie-fade-in .37s;
}
@keyframes cookie-fade-in {
  from { opacity: 0; transform: scale(.97) translateY(32px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  color: #172336;
  font-size: 2rem;
  border-radius: 5px;
  padding: 3px 11px;
  transition: background 0.13s, color 0.14s;
  outline: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #EEF3F8;
  color: #89CFF0;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 14px;
  font-size: 1.04rem;
}
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-right: 6px;
}
.cookie-toggle {
  border-radius: 22px;
  width: 40px; height: 24px;
  background: #EEF3F8;
  position: relative;
  margin-right: 6px;
  display: inline-block;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle-slider {
  position: absolute; left: 3px; top: 3px; bottom: 3px;
  width: 18px; height: 18px;
  background: #172336;
  border-radius: 50%;
  transition: left 0.24s, background 0.18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 19px;
  background: #89CFF0;
}
.cookie-category-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* =============== RESPONSIVE DESIGN ================ */
@media (max-width: 1040px) {
  .container { max-width: 900px; }
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.55rem; }
}
@media (max-width: 900px) {
  .section { padding: 38px 10px; }
}
@media (max-width: 760px) {
  .container { padding: 0 4vw; }
  .section { padding: 26px 4vw; border-radius: 12px; }
  h1, .h1 { font-size: 1.54rem; }
  h2, .h2 { font-size: 1.21rem; }
  .content-wrapper { gap: 11px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 16px; gap: 9px; }
  .card, .feature-item { padding: 15px 12px; border-radius: 9px; }
}
@media (max-width: 700px) {
  .footer-nav { gap: 15px; }
}
@media (max-width: 650px) {
  .container { max-width: 99vw; padding: 0 10px; }
  .footer-contact { font-size: .93rem; gap: 7px; }
  .testimonial-card { max-width: 100%; }
}
@media (max-width: 600px) {
  .section { padding: 15px 3vw; border-radius: 7px; }
  .card-container, .content-grid { gap: 12px; }
  .card { min-width: 160px; padding: 12px 7px; }
  .feature-item { padding: 8px 7px; gap: 7px; }
}
@media (max-width: 530px) {
  nav[aria-label="Catégories du blog"] { gap: 7px; font-size: .89rem; }
  .btn-primary, .btn-secondary, .btn-tertiary { font-size: .97rem; padding: 9px 13px; }
}
@media (max-width: 480px) {
  .container { padding: 0 2vw; }
  .card { padding: 8px 3vw; border-radius: 5px; }
  .testimonial-card { padding: 7px 4px; }
  .section { margin-bottom: 36px; }
  footer { padding: 24px 0 16px 0; margin-top: 29px; }
}

/* ============== FLEXBOX ADJUSTMENTS ============== */
.text-image-section,
.card-container,
.feature-list,
.content-grid,
.footer-nav,
.footer-contact {
  flex-wrap: wrap;
  gap: 20px;
}
.text-image-section,
.content-grid {
  flex-direction: row;
  align-items: center;
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ============= MISC VISUAL MICRO-INTERACTIONS ============= */
.card,
.testimonial-card,
.btn-primary,
.btn-secondary,
.btn-tertiary,
.cookie-banner,
.cookie-modal-dialog {
  transition: box-shadow 0.18s, background 0.23s, color 0.18s, transform 0.13s;
}
.card:active,
.testimonial-card:active {
  transform: scale(0.991);
  box-shadow: 0 2px 9px rgba(137,207,240,0.11);
}

ul li:before {
  display: none;
}

/* ========== BRAND ACCENT ELEMENTS ========== */
hr {
  border: none;
  border-top: 2px solid #EEF3F8;
  margin: 30px 0;
}

/* =========== SCATTERED SPACING ============= */
.section,
.card-container > *,
.card,
.feature-item,
.content-grid > *,
.testimonial-card {
  margin-bottom: 20px;
}

::-webkit-input-placeholder { color: #B9BFC9; opacity: 1; }
::-moz-placeholder { color: #B9BFC9; opacity: 1; }
:-ms-input-placeholder { color: #B9BFC9; opacity: 1; }
::placeholder { color: #B9BFC9; opacity: 1; }

/* ========== ACCESSIBILITY: FOCUS ============= */
a:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-tertiary:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.cookie-modal-close:focus {
  box-shadow: 0 0 0 2px #89CFF0;
  outline: 1.5px solid #172336;
  outline-offset: 2px;
}

/* =========== PRINT CLEANUP ========== */
@media print {
  header, .mobile-menu, footer, .cookie-banner, .cookie-modal { display: none !important; }
  .section, .container { box-shadow: none !important; border: none !important; background: #fff !important; }
}

/* ================= FONT-FACE Fallbacks ============= */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular'), url('https://fonts.gstatic.com/s/montserrat/v20/JTUQjIg1_i6t8kCHKm45_QpRyS7j.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Me4WxP.woff2') format('woff2');
}
