/* ====== VARIABLES ====== */
:root {
  --bg: #f2f4f7;
  --bg-light: #ffffff;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0f9ed5;
  --accent-light: rgba(15, 158, 213, 0.08);
  --border: rgba(15, 23, 42, 0.08);
  --footer: #111;
  --radius: 14px;
  --shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
  --font: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ====== RESET ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ====== LAYOUT ====== */
.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ====== HEADER ====== */
.site-header {
  width: 100%;
  padding: 10px 0; /* augmente la hauteur du bandeau */
  border-bottom: 1px solid rgba(15,23,42,0.04);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.logo-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.main-nav ul {
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  display: block;
  padding: 18px 0; /* plus de hauteur pour les liens */
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: #0f172a;
  border-color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #0f172a;
  display: block;
}

/* ====== HERO ====== */
.hero {
  padding: 5.5rem 0 4.5rem;
  background: radial-gradient(circle at top, #ffffff 0%, #f2f4f7 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  margin-bottom: 1.25rem;
}
.hero p {
  color: var(--muted);
  max-width: 38rem;
}
.hero-sub {
  margin-top: 1rem;
  background: rgba(15, 158, 213, 0.06);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 8px;
}
.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: 0.2s ease-out;
  font-size: 0.9rem;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: #12ace7;
}
.btn.ghost {
  border: 1px solid rgba(0,0,0,0.05);
  background: #fff;
  color: #0f172a;
}
.btn.ghost:hover {
  background: #eff1f3;
}
.btn.small {
  padding: 0.45rem 1.15rem;
  font-size: 0.78rem;
}

/* image décorative à droite */
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* ====== SECTIONS ====== */
.section {
  padding: 3.8rem 0;
  background: transparent;
}
.section.light {
  background: #f4f5f7; /* gris clair propre et sobre */
  padding: 3rem 0;
}
.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.section-intro {
  max-width: 45rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}
.card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.04);
  border-radius: 14px;
  padding: 1.3rem 1.3rem 1.15rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}
.card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.two-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: flex-start;
}

/* ancienne "security note" devenue image */
.image-box {
  background: none;
  border: none;
  padding: 0;
}
.image-box img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* ====== LISTS ====== */
.list-check {
  margin-top: 1.2rem;
}
.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
}

/* ====== FOOTER (FORCÉ NOIR) ====== */
.site-footer {
  background: #111 !important;
  padding: 1.6rem 0;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #fff;
}
.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-flex p {
  color: rgba(231, 237, 243, 0.5);
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer-links a {
  color: rgba(231, 237, 243, 0.5);
}
.footer-links a:hover {
  color: #fff;
}

/* ====== COOKIE BANNER (version propre) ====== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.6rem;
  z-index: 9999;
  flex-wrap: wrap;
  backdrop-filter: blur(6px);
}
.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
}
.cookie-banner a {
  color: #6ed7ff;
  text-decoration: underline;
}
.cookie-banner .btn {
  background: #3cbef2;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.cookie-banner .btn:hover {
  background: #66d2ff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
  .main-nav {
    padding: 0.8rem 1.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr; /* plus de 2 colonnes en mobile */
  }
/* .hero-image {
  display: none;
} */
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
  .main-nav {
    position: absolute;
    top: 64px;
    right: 20px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 12px;
    padding: 0.5rem 1.2rem;
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
  }
  .nav-toggle {
    display: flex;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.legal-hero {
  background: #ffffff;
  padding: 5rem 0 4rem;
}
.single-col {
  grid-template-columns: 1fr !important;
}

/* Formulaire contact */

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0;
}

.form-box {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0077ff;
  outline: none;
}

.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

button.btn.primary {
  margin-top: 1rem;
  width: 100%;
}

/* ====== Footer collé uniquement sur les pages courtes ====== */
.page-short,
.page-short html {
  height: 100%;
}

.page-short body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-short main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 75vh; /* au lieu de 60vh */
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
