/* ========== 
RESET CSS 
========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== 
VARIABLES- PRÉFIX 
========== */
:root {

  --surface: rgba(255,255,255,.96);
  --ink: #111;
  --muted-ink: rgba(0,0,0,.65);
  --brand: #ffb24d;

  --header-h: 80px;
  --top-gap: 16px;
  --bottom-gap: 6px;

  --qblue: rgba(8,64,92,.64);
  --qblue-border: rgba(8,64,92,.28);

  --gap: 14px;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0,0,0,.16);
}

/* =============================
   Topnav--------------------
==============================*/

/* ========== Topnav (desktop + mobile) ========== */
.topnav {
  width: 100%;
  background: var(--qblue, #08405C);
  border-bottom: 1px solid var(--qblue-border, rgba(8,64,92,.28));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 6px;
}
.topnav .links {
  display: flex;
  gap: 0;
}
.topnav .links a {
  display: flex;
  color: #fff;
  gap: 0;
  justify-content: center; /* centre les liens dans le conteneur */
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  text-decoration: none;
}
.topnav .links a:hover {
  background: var(--brand, #ffb24d);
  color: #111;
}
.topnav .links a.active {
  background: #c88809;
  color: #fff;
}
.topnav .icon {
  display: none;
  color: #fff;
  font-size: 26px;
  padding: 16px;
  cursor: pointer;
}

/* ========== Mobile ========== */
@media (max-width: 800px) {
  .topnav .links {
    display: none;
  }
  .topnav .icon {
    display: block;
  }
  .topnav.responsive .links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h, 80px);
    left: 0;
    right: 0;
    align-items: center; /* centre les liens verticalement */
    background: var(--qblue, #08405C);
    border-top: 1px solid var(--qblue-border, rgba(8,64,92,.28));
    z-index: 1100;
  }
  .topnav.responsive .links a {
    text-align: left;
    border-top: 1px solid var(--qblue-border, rgba(8,64,92,.28));
  }
}


/* =============================
   body--------------------
==============================*/
html, body {
  height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  background-color: var(--bg);
  color: var(--ink);
}



/* ========== BASE ELEMENTS ========== */
img, video, iframe {max-width: 100%;height: auto;display: block;}
ul, ol {list-style: none;}
a {text-decoration: none;color: inherit;}
table {border-collapse: collapse;width: 100%;}
button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ========== LAYOUT ========== */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + var(--top-gap));
  padding-bottom: var(--bottom-gap);
}
.center-wrap {
  max-width: 1120px;
  margin: 24px auto;
  padding: 0 1px;
}

/* ========== HEADER FIXE ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--qblue);
  color: #fff;
  border-bottom: 1px solid var(--qblue-border);
  z-index: 1000;
  padding: 0 12px;
  backdrop-filter: blur(10px);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--qblue);
  color: #fff;
  border-top: 1px solid var(--qblue-border);
  position: relative;
  z-index: 1;
}

.footer-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.site-footer a {
  color: var(--brand);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ========== FOND FIXE ========== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-url, url("../media/fond.jpg")) center/cover no-repeat;
  pointer-events: none;
  transform: translateZ(0);
}

/* ========== MOBILE ADAPTATION ========== */
@media (max-width: 600px) {
  :root {
    --header-h: 52px;
    --top-gap: 14px;
  }

  .site-header {
    padding: 0 2px;
  }

  #menu {
    gap: 3px;
  }

  .site-header a,
  .btn {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* ========== SAFARI FIX ========== */
@supports (-webkit-touch-callout: none) {
  .page {
    min-height: 100vh;
  }
}

.center-wrap:last-of-type {
  margin-bottom: var(--bottom-gap);
}


